Skip to main content

peering_services

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

Overview

Namepeering_services
TypeResource
Idazure.peering.peering_services

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
locationstringThe location of the resource. Required.
peeringServiceLocationstringThe PeeringServiceLocation of the Customer.
peeringServiceProviderstringThe MAPS Provider Name.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Updating", "Deleting", and "Failed".
tagsobjectThe resource tags.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, peering_service_name, subscription_idGets an existing peering service with the specified name under the given subscription and resource group.
list_by_resource_groupselectresource_group_name, subscription_idLists all of the peering services under the given subscription and resource group.
list_by_subscriptionselectsubscription_idLists all of the peerings under the given subscription.
create_or_updateinsertresource_group_name, peering_service_name, subscription_id, locationCreates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
updateupdateresource_group_name, peering_service_name, subscription_idUpdates tags for a peering service with the specified name under the given subscription and resource group.
create_or_updatereplaceresource_group_name, peering_service_name, subscription_id, locationCreates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
deletedeleteresource_group_name, peering_service_name, subscription_idDeletes an existing peering service with the specified name under the given subscription and resource group.

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
peering_service_namestringThe name of the peering service. Required.
resource_group_namestringThe name of the resource group. Required.
subscription_idstring

SELECT examples

Gets an existing peering service with the specified name under the given subscription and resource group.

SELECT
id,
name,
location,
peeringServiceLocation,
peeringServiceProvider,
provisioningState,
tags,
type
FROM azure.peering.peering_services
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND peering_service_name = '{{ peering_service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

INSERT INTO azure.peering.peering_services (
location,
tags,
properties,
resource_group_name,
peering_service_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ peering_service_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Updates tags for a peering service with the specified name under the given subscription and resource group.

UPDATE azure.peering.peering_services
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND peering_service_name = '{{ peering_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

REPLACE examples

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

REPLACE azure.peering.peering_services
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND peering_service_name = '{{ peering_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes an existing peering service with the specified name under the given subscription and resource group.

DELETE FROM azure.peering.peering_services
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND peering_service_name = '{{ peering_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;