Registered Asns - Create Or Update
Creates a new registered ASN with the specified name under the given subscription, resource group and peering.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns/{registeredAsnName}?api-version=2021-01-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
peering
|
path | True |
string |
The name of the peering. |
registered
|
path | True |
string |
The name of the ASN. |
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
path | True |
string |
The Azure subscription ID. |
api-version
|
query | True |
string |
The client API version. |
Request Body
Name | Type | Description |
---|---|---|
properties.asn |
integer (int32) |
The customer's ASN from which traffic originates. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Created |
|
Other Status Codes |
Error response describing why the operation has 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
Create or update a registered ASN for the peering
Sample request
Sample response
{
"properties": {
"asn": 65000,
"peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
"provisioningState": "Succeeded"
},
"name": "registeredAsnName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName",
"type": "Microsoft.Peering/registeredAsns"
}
{
"properties": {
"asn": 65000,
"peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
"provisioningState": "Succeeded"
},
"name": "registeredAsnName",
"id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName",
"type": "Microsoft.Peering/registeredAsns"
}
Definitions
Name | Description |
---|---|
Error |
The error detail that describes why an operation has failed. |
Error |
The error response that indicates why an operation has failed. |
Peering |
The customer's ASN that is registered by the peering service provider. |
provisioning |
The provisioning state of the resource. |
ErrorDetail
The error detail that describes why an operation has failed.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
message |
string |
The error message. |
ErrorResponse
The error response that indicates why an operation has failed.
Name | Type | Description |
---|---|---|
error |
The error detail that describes why an operation has failed. |
PeeringRegisteredAsn
The customer's ASN that is registered by the peering service provider.
Name | Type | Description |
---|---|---|
id |
string |
The ID of the resource. |
name |
string |
The name of the resource. |
properties.asn |
integer (int32) |
The customer's ASN from which traffic originates. |
properties.peeringServicePrefixKey |
string |
The peering service prefix key that is to be shared with the customer. |
properties.provisioningState |
The provisioning state of the resource. |
|
type |
string |
The type of the resource. |
provisioningState
The provisioning state of the resource.
Value | Description |
---|---|
Succeeded | |
Updating | |
Deleting | |
Failed |