attached_networks
Creates, updates, deletes, gets or lists a attached_networks
resource.
Overview
Name | attached_networks |
Type | Resource |
Id | azure.dev_center.attached_networks |
Fields
- vw_attached_networks
- attached_networks
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
attachedNetworkConnectionName | text | field from the properties object |
devCenterName | text | field from the properties object |
domain_join_type | text | field from the properties object |
health_check_status | text | field from the properties object |
network_connection_id | text | field from the properties object |
network_connection_location | text | field from the properties object |
projectName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Properties of an attached NetworkConnection. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_by_dev_center | SELECT | attachedNetworkConnectionName, devCenterName, resourceGroupName, subscriptionId | Gets an attached NetworkConnection. |
get_by_project | SELECT | attachedNetworkConnectionName, projectName, resourceGroupName, subscriptionId | Gets an attached NetworkConnection. |
list_by_dev_center | SELECT | devCenterName, resourceGroupName, subscriptionId | Lists the attached NetworkConnections for a DevCenter. |
list_by_project | SELECT | projectName, resourceGroupName, subscriptionId | Lists the attached NetworkConnections for a Project. |
create_or_update | INSERT | attachedNetworkConnectionName, devCenterName, resourceGroupName, subscriptionId | Creates or updates an attached NetworkConnection. |
delete | DELETE | attachedNetworkConnectionName, devCenterName, resourceGroupName, subscriptionId | Un-attach a NetworkConnection. |
SELECT
examples
Lists the attached NetworkConnections for a Project.
- vw_attached_networks
- attached_networks
SELECT
id,
name,
attachedNetworkConnectionName,
devCenterName,
domain_join_type,
health_check_status,
network_connection_id,
network_connection_location,
projectName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.dev_center.vw_attached_networks
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.dev_center.attached_networks
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new attached_networks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dev_center.attached_networks (
attachedNetworkConnectionName,
devCenterName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ attachedNetworkConnectionName }}',
'{{ devCenterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
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: properties
value:
- name: provisioningState
value: []
- name: networkConnectionId
value: string
- name: networkConnectionLocation
value: string
- name: healthCheckStatus
value: []
- name: domainJoinType
value: []
DELETE
example
Deletes the specified attached_networks
resource.
/*+ delete */
DELETE FROM azure.dev_center.attached_networks
WHERE attachedNetworkConnectionName = '{{ attachedNetworkConnectionName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';