Skip to main content

scope_connections

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

Overview

Namescope_connections
TypeResource
Idazure.network.scope_connections

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
connection_statetextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
networkManagerNametextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
scopeConnectionNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tenant_idtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkManagerName, resourceGroupName, scopeConnectionName, subscriptionIdGet specified scope connection created by this Network Manager.
listSELECTnetworkManagerName, resourceGroupName, subscriptionIdList all scope connections created by this network manager.
create_or_updateINSERTnetworkManagerName, resourceGroupName, scopeConnectionName, subscriptionIdCreates or updates scope connection from Network Manager
deleteDELETEnetworkManagerName, resourceGroupName, scopeConnectionName, subscriptionIdDelete the pending scope connection created by this network manager.

SELECT examples

List all scope connections created by this network manager.

SELECT
id,
name,
description,
connection_state,
etag,
networkManagerName,
resourceGroupName,
resource_id,
scopeConnectionName,
subscriptionId,
system_data,
tenant_id,
type
FROM azure.network.vw_scope_connections
WHERE networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.scope_connections (
networkManagerName,
resourceGroupName,
scopeConnectionName,
subscriptionId,
properties
)
SELECT
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ scopeConnectionName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified scope_connections resource.

/*+ delete */
DELETE FROM azure.network.scope_connections
WHERE networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scopeConnectionName = '{{ scopeConnectionName }}'
AND subscriptionId = '{{ subscriptionId }}';