Virtual Router Peerings - Get

Gets the specified Virtual Router Peering.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}?api-version=2024-03-01

URI Parameters

Name In Required Type Description
peeringName
path True

string

The name of the Virtual Router Peering.

resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

virtualRouterName
path True

string

The name of the Virtual Router.

api-version
query True

string

Client API version.

Responses

Name Type Description
200 OK

VirtualRouterPeering

Request successful. The operation returns a Virtual Router Peering resource.

Other Status Codes

Error

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Get Virtual Router Peering

Sample request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualRouters/virtualRouter/peerings/peering1?api-version=2024-03-01

Sample response

{
  "name": "peering1",
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualRouters/virtualRouter/peerings/peering1",
  "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"",
  "properties": {
    "provisioningState": "Succeeded",
    "peerIp": "192.168.1.5",
    "peerAsn": 20000
  }
}

Definitions

Name Description
Error

Common error representation.

ErrorDetails

Common error details representation.

ProvisioningState

The current provisioning state.

VirtualRouterPeering

Virtual Router Peering resource.

Error

Common error representation.

Name Type Description
code

string

Error code.

details

ErrorDetails[]

Error details.

innerError

string

Inner error message.

message

string

Error message.

target

string

Error target.

ErrorDetails

Common error details representation.

Name Type Description
code

string

Error code.

message

string

Error message.

target

string

Error target.

ProvisioningState

The current provisioning state.

Name Type Description
Deleting

string

Failed

string

Succeeded

string

Updating

string

VirtualRouterPeering

Virtual Router Peering resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

id

string

Resource ID.

name

string

Name of the virtual router peering that is unique within a virtual router.

properties.peerAsn

integer

Peer ASN.

properties.peerIp

string

Peer IP.

properties.provisioningState

ProvisioningState

The provisioning state of the resource.

type

string

Peering type.