Peer Asns - Create Or Update
Létrehoz egy új társ-ASN-t, vagy frissít egy meglévő társ-ASN-t a megadott névvel az adott előfizetés alatt.
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}?api-version=2021-01-01
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
peer
|
path | True |
string |
A társ ASN-neve. |
subscription
|
path | True |
string |
Az Azure-előfizetés azonosítója. |
api-version
|
query | True |
string |
Az ügyfél API-verziója. |
Kérelem törzse
Name | Típus | Description |
---|---|---|
properties.peerAsn |
integer (int32) |
A társ autonóm rendszerszáma (ASN). |
properties.peerContactDetail |
A társ kapcsolattartási adatai. |
|
properties.peerName |
string |
A társ neve. |
properties.validationState |
A társhoz társított ASN érvényesítési állapota. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
OKÉ |
|
201 Created |
Létrehozott |
|
Other Status Codes |
Hibaválasz, amely leírja, hogy a művelet miért nem sikerült. |
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow.
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
Name | Description |
---|---|
user_impersonation | a felhasználói fiók megszemélyesítése |
Példák
Create a peer ASN
Mintakérelem
PUT https://management.azure.com/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName?api-version=2021-01-01
{
"properties": {
"peerAsn": 65000,
"peerContactDetail": [
{
"role": "Noc",
"email": "noc@contoso.com",
"phone": "+1 (234) 567-8999"
},
{
"role": "Policy",
"email": "abc@contoso.com",
"phone": "+1 (234) 567-8900"
},
{
"role": "Technical",
"email": "xyz@contoso.com",
"phone": "+1 (234) 567-8900"
}
],
"peerName": "Contoso"
}
}
Mintaválasz
{
"properties": {
"peerAsn": 65000,
"peerContactDetail": [
{
"role": "Noc",
"email": "noc@contoso.com",
"phone": "+1 (234) 567-8999"
},
{
"role": "Policy",
"email": "abc@contoso.com",
"phone": "+1 (234) 567-8900"
},
{
"role": "Technical",
"email": "xyz@contoso.com",
"phone": "+1 (234) 567-8900"
}
],
"peerName": "Contoso",
"validationState": "Pending"
},
"name": "peerAsnName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
"type": "Microsoft.Peering/peerAsns"
}
{
"properties": {
"peerAsn": 65000,
"peerContactDetail": [
{
"role": "Noc",
"email": "noc@contoso.com",
"phone": "+1 (234) 567-8999"
},
{
"role": "Policy",
"email": "abc@contoso.com",
"phone": "+1 (234) 567-8900"
},
{
"role": "Technical",
"email": "xyz@contoso.com",
"phone": "+1 (234) 567-8900"
}
],
"peerName": "Contoso",
"validationState": "Pending"
},
"name": "peerAsnName",
"id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
"type": "Microsoft.Peering/peerAsns"
}
Definíciók
Name | Description |
---|---|
Contact |
A kapcsolatfelvételi osztály. |
Error |
A művelet sikertelen voltát leíró hibarészlet. |
Error |
A hibaválasz, amely azt jelzi, hogy egy művelet miért hiúsult meg. |
Peer |
A társ ASN-jével kapcsolatos alapvető információk. |
role |
A partner szerepe. |
validation |
A társhoz társított ASN érvényesítési állapota. |
ContactDetail
A kapcsolatfelvételi osztály.
Name | Típus | Description |
---|---|---|
string |
A kapcsolattartó e-mail címe. |
|
phone |
string |
A kapcsolat telefonszáma. |
role |
A partner szerepe. |
ErrorDetail
A művelet sikertelen voltát leíró hibarészlet.
Name | Típus | Description |
---|---|---|
code |
string |
A hibakód. |
message |
string |
A hibaüzenet. |
ErrorResponse
A hibaválasz, amely azt jelzi, hogy egy művelet miért hiúsult meg.
Name | Típus | Description |
---|---|---|
error |
A művelet sikertelen voltát leíró hibarészlet. |
PeerAsn
A társ ASN-jével kapcsolatos alapvető információk.
Name | Típus | Description |
---|---|---|
id |
string |
Az erőforrás azonosítója. |
name |
string |
Az erőforrás neve. |
properties.errorMessage |
string |
Az érvényesítési állapot hibaüzenete |
properties.peerAsn |
integer (int32) |
A társ autonóm rendszerszáma (ASN). |
properties.peerContactDetail |
A társ kapcsolattartási adatai. |
|
properties.peerName |
string |
A társ neve. |
properties.validationState |
A társhoz társított ASN érvényesítési állapota. |
|
type |
string |
Az erőforrás típusa. |
role
A partner szerepe.
Érték | Description |
---|---|
Escalation | |
Noc | |
Other | |
Policy | |
Service | |
Technical |
validationState
A társhoz társított ASN érvényesítési állapota.
Érték | Description |
---|---|
Approved | |
Failed | |
None | |
Pending |