Skip to main content

bgp_peers

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

Overview

Namebgp_peers
TypeResource
Idazure.container_orchestrator_runtime.bgp_peers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
myAsnintegerMy ASN. Required.
peerAddressstringPeer Address. Required.
peerAsnintegerPeer ASN. Required.
provisioningStatestringResource provision state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_uri, bgp_peer_nameGet a BgpPeer.
listselectresource_uriList BgpPeer resources by parent.
create_or_updateinsertresource_uri, bgp_peer_nameCreate a BgpPeer.
create_or_updatereplaceresource_uri, bgp_peer_nameCreate a BgpPeer.
deletedeleteresource_uri, bgp_peer_nameDelete a BgpPeer.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bgp_peer_namestringThe name of the BgpPeer. Required.
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get a BgpPeer.

SELECT
id,
name,
myAsn,
peerAddress,
peerAsn,
provisioningState,
systemData,
type
FROM azure.container_orchestrator_runtime.bgp_peers
WHERE resource_uri = '{{ resource_uri }}' -- required
AND bgp_peer_name = '{{ bgp_peer_name }}' -- required
;

INSERT examples

Create a BgpPeer.

INSERT INTO azure.container_orchestrator_runtime.bgp_peers (
properties,
resource_uri,
bgp_peer_name
)
SELECT
'{{ properties }}',
'{{ resource_uri }}',
'{{ bgp_peer_name }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create a BgpPeer.

REPLACE azure.container_orchestrator_runtime.bgp_peers
SET
properties = '{{ properties }}'
WHERE
resource_uri = '{{ resource_uri }}' --required
AND bgp_peer_name = '{{ bgp_peer_name }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a BgpPeer.

DELETE FROM azure.container_orchestrator_runtime.bgp_peers
WHERE resource_uri = '{{ resource_uri }}' --required
AND bgp_peer_name = '{{ bgp_peer_name }}' --required
;