Skip to main content

bgp_peers

Creates, updates, deletes, gets or lists a bgp_peers resource.

Overview

Namebgp_peers
TypeResource
Idazure.k8s_runtime.bgp_peers

Fields

NameDatatypeDescription
bgpPeerNametextfield from the properties object
my_asntextfield from the properties object
peer_addresstextfield from the properties object
peer_asntextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbgpPeerName, resourceUriGet a BgpPeer
listSELECTresourceUriList BgpPeer resources by parent
create_or_updateINSERTbgpPeerName, resourceUriCreate a BgpPeer
deleteDELETEbgpPeerName, resourceUriDelete a BgpPeer

SELECT examples

List BgpPeer resources by parent

SELECT
bgpPeerName,
my_asn,
peer_address,
peer_asn,
provisioning_state,
resourceUri
FROM azure.k8s_runtime.vw_bgp_peers
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

Use the following StackQL query and manifest file to create a new bgp_peers resource.

/*+ create */
INSERT INTO azure.k8s_runtime.bgp_peers (
bgpPeerName,
resourceUri,
properties
)
SELECT
'{{ bgpPeerName }}',
'{{ resourceUri }}',
'{{ properties }}'
;

DELETE example

Deletes the specified bgp_peers resource.

/*+ delete */
DELETE FROM azure.k8s_runtime.bgp_peers
WHERE bgpPeerName = '{{ bgpPeerName }}'
AND resourceUri = '{{ resourceUri }}';