scope_connections
Creates, updates, deletes, gets or lists a scope_connections
resource.
Overview
Name | scope_connections |
Type | Resource |
Id | azure.network.scope_connections |
Fields
- vw_scope_connections
- scope_connections
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
description | text | field from the properties object |
connection_state | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
networkManagerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_id | text | field from the properties object |
scopeConnectionName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tenant_id | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Scope connection. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkManagerName, resourceGroupName, scopeConnectionName, subscriptionId | Get specified scope connection created by this Network Manager. |
list | SELECT | networkManagerName, resourceGroupName, subscriptionId | List all scope connections created by this network manager. |
create_or_update | INSERT | networkManagerName, resourceGroupName, scopeConnectionName, subscriptionId | Creates or updates scope connection from Network Manager |
delete | DELETE | networkManagerName, resourceGroupName, scopeConnectionName, subscriptionId | Delete the pending scope connection created by this network manager. |
SELECT
examples
List all scope connections created by this network manager.
- vw_scope_connections
- scope_connections
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 }}';
SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.scope_connections (
networkManagerName,
resourceGroupName,
scopeConnectionName,
subscriptionId,
properties
)
SELECT
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ scopeConnectionName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: tenantId
value: string
- name: resourceId
value: string
- name: connectionState
value: []
- name: description
value: string
- name: etag
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
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 }}';