services
Creates, updates, deletes, gets or lists a services
resource.
Overview
Name | services |
Type | Resource |
Id | azure.peering.services |
Fields
- vw_services
- services
Name | Datatype | Description |
---|---|---|
id | text | The ID of the resource. |
name | text | The name of the resource. |
location | text | The location of the resource. |
log_analytics_workspace_properties | text | field from the properties object |
peeringServiceName | text | field from the properties object |
peering_service_location | text | field from the properties object |
peering_service_provider | text | field from the properties object |
provider_backup_peering_location | text | field from the properties object |
provider_primary_peering_location | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | The SKU that defines the type of the peering service. |
subscriptionId | text | field from the properties object |
tags | text | The resource tags. |
type | text | The type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the resource. |
name | string | The name of the resource. |
location | string | The location of the resource. |
properties | object | The properties that define connectivity to the Peering Service. |
sku | object | The SKU that defines the type of the peering service. |
tags | object | The resource tags. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | peeringServiceName, resourceGroupName, subscriptionId | Gets an existing peering service with the specified name under the given subscription and resource group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all of the peering services under the given subscription and resource group. |
list_by_subscription | SELECT | subscriptionId | Lists all of the peerings under the given subscription. |
create_or_update | INSERT | peeringServiceName, resourceGroupName, subscriptionId, data__location | Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group. |
delete | DELETE | peeringServiceName, resourceGroupName, subscriptionId | Deletes an existing peering service with the specified name under the given subscription and resource group. |
update | UPDATE | peeringServiceName, resourceGroupName, subscriptionId | Updates tags for a peering service with the specified name under the given subscription and resource group. |
initialize_connection_monitor | EXEC | subscriptionId | Initialize Peering Service for Connection Monitor functionality |
SELECT
examples
Lists all of the peerings under the given subscription.
- vw_services
- services
SELECT
id,
name,
location,
log_analytics_workspace_properties,
peeringServiceName,
peering_service_location,
peering_service_provider,
provider_backup_peering_location,
provider_primary_peering_location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
type
FROM azure.peering.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
sku,
tags,
type
FROM azure.peering.services
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.peering.services (
peeringServiceName,
resourceGroupName,
subscriptionId,
data__location,
sku,
properties,
location,
tags
)
SELECT
'{{ peeringServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ sku }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: sku
value:
- name: name
value: string
- name: properties
value:
- name: peeringServiceLocation
value: string
- name: peeringServiceProvider
value: string
- name: provisioningState
value: string
- name: providerPrimaryPeeringLocation
value: string
- name: providerBackupPeeringLocation
value: string
- name: logAnalyticsWorkspaceProperties
value:
- name: workspaceID
value: string
- name: key
value: string
- name: connectedAgents
value:
- string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a services
resource.
/*+ update */
UPDATE azure.peering.services
SET
tags = '{{ tags }}'
WHERE
peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified services
resource.
/*+ delete */
DELETE FROM azure.peering.services
WHERE peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';