networks
Creates, updates, deletes, gets or lists a networks
resource.
Overview
Name | networks |
Type | Resource |
Id | azure.service_fabric_mesh.networks |
Fields
- vw_networks
- networks
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
kind | text | field from the properties object |
location | text | The geo-location where the resource lives |
networkResourceName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
status_details | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Describes properties of a network resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkResourceName, resourceGroupName, subscriptionId | Gets the information about the network resource with the given name. The information include the description and other properties of the network. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. |
list_by_subscription | SELECT | subscriptionId | Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. |
create | INSERT | networkResourceName, resourceGroupName, subscriptionId, data__properties | Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. |
delete | DELETE | networkResourceName, resourceGroupName, subscriptionId | Deletes the network resource identified by the name. |
SELECT
examples
Gets the information about all network resources in a given resource group. The information include the description and other properties of the network.
- vw_networks
- networks
SELECT
description,
kind,
location,
networkResourceName,
resourceGroupName,
status,
status_details,
subscriptionId,
tags
FROM azure.service_fabric_mesh.vw_networks
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.service_fabric_mesh.networks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new networks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_fabric_mesh.networks (
networkResourceName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ networkResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: kind
value: []
- name: description
value: string
- name: status
value: []
- name: statusDetails
value: string
DELETE
example
Deletes the specified networks
resource.
/*+ delete */
DELETE FROM azure.service_fabric_mesh.networks
WHERE networkResourceName = '{{ networkResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';