bgp_peers
Creates, updates, deletes, gets or lists a bgp_peers
resource.
Overview
Name | bgp_peers |
Type | Resource |
Id | azure.k8s_runtime.bgp_peers |
Fields
- vw_bgp_peers
- bgp_peers
Name | Datatype | Description |
---|---|---|
bgpPeerName | text | field from the properties object |
my_asn | text | field from the properties object |
peer_address | text | field from the properties object |
peer_asn | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Details of the BgpPeer. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | bgpPeerName, resourceUri | Get a BgpPeer |
list | SELECT | resourceUri | List BgpPeer resources by parent |
create_or_update | INSERT | bgpPeerName, resourceUri | Create a BgpPeer |
delete | DELETE | bgpPeerName, resourceUri | Delete a BgpPeer |
SELECT
examples
List BgpPeer resources by parent
- vw_bgp_peers
- bgp_peers
SELECT
bgpPeerName,
my_asn,
peer_address,
peer_asn,
provisioning_state,
resourceUri
FROM azure.k8s_runtime.vw_bgp_peers
WHERE resourceUri = '{{ resourceUri }}';
SELECT
properties
FROM azure.k8s_runtime.bgp_peers
WHERE resourceUri = '{{ resourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new bgp_peers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.k8s_runtime.bgp_peers (
bgpPeerName,
resourceUri,
properties
)
SELECT
'{{ bgpPeerName }}',
'{{ resourceUri }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: myAsn
value: integer
- name: peerAsn
value: integer
- name: peerAddress
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified bgp_peers
resource.
/*+ delete */
DELETE FROM azure.k8s_runtime.bgp_peers
WHERE bgpPeerName = '{{ bgpPeerName }}'
AND resourceUri = '{{ resourceUri }}';