peer_asns
Creates, updates, deletes, gets or lists a peer_asns
resource.
Overview
Name | peer_asns |
Type | Resource |
Id | azure.peering.peer_asns |
Fields
- vw_peer_asns
- peer_asns
Name | Datatype | Description |
---|---|---|
id | text | The ID of the resource. |
name | text | The name of the resource. |
error_message | text | field from the properties object |
peerAsnName | text | field from the properties object |
peer_asn | text | field from the properties object |
peer_contact_detail | text | field from the properties object |
peer_name | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. |
validation_state | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the resource. |
name | string | The name of the resource. |
properties | object | The properties that define a peer's ASN. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | peerAsnName, subscriptionId | Gets the peer ASN with the specified name under the given subscription. |
list_by_subscription | SELECT | subscriptionId | Lists all of the peer ASNs under the given subscription. |
create_or_update | INSERT | peerAsnName, subscriptionId | Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription. |
delete | DELETE | peerAsnName, subscriptionId | Deletes an existing peer ASN with the specified name under the given subscription. |
SELECT
examples
Lists all of the peer ASNs under the given subscription.
- vw_peer_asns
- peer_asns
SELECT
id,
name,
error_message,
peerAsnName,
peer_asn,
peer_contact_detail,
peer_name,
subscriptionId,
type,
validation_state
FROM azure.peering.vw_peer_asns
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure.peering.peer_asns
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new peer_asns
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.peering.peer_asns (
peerAsnName,
subscriptionId,
properties
)
SELECT
'{{ peerAsnName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: properties
value:
- name: peerAsn
value: integer
- name: peerContactDetail
value:
- - name: role
value: string
- name: email
value: string
- name: phone
value: string
- name: peerName
value: string
- name: validationState
value: string
- name: errorMessage
value: string
DELETE
example
Deletes the specified peer_asns
resource.
/*+ delete */
DELETE FROM azure.peering.peer_asns
WHERE peerAsnName = '{{ peerAsnName }}'
AND subscriptionId = '{{ subscriptionId }}';