virtual_networks
Creates, updates, deletes, gets or lists a virtual_networks
resource.
Overview
Name | virtual_networks |
Type | Resource |
Id | azure_isv.connected_vsphere.virtual_networks |
Fields
- vw_virtual_networks
- virtual_networks
Name | Datatype | Description |
---|---|---|
id | text | Gets or sets the Id. |
name | text | Gets or sets the name. |
custom_resource_name | text | field from the properties object |
extended_location | text | field from the properties object |
inventory_item_id | text | field from the properties object |
kind | text | Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. |
location | text | Gets or sets the location. |
mo_name | text | field from the properties object |
mo_ref_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
statuses | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Gets or sets the Resource tags. |
type | text | Gets or sets the type of the resource. |
uuid | text | field from the properties object |
v_center_id | text | field from the properties object |
virtualNetworkName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Gets or sets the Id. |
name | string | Gets or sets the name. |
extendedLocation | object | The extended location. |
kind | string | Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. |
location | string | Gets or sets the location. |
properties | object | Describes the properties of a Virtual Network. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Gets or sets the Resource tags. |
type | string | Gets or sets the type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, virtualNetworkName | Implements virtual network GET method. |
list | SELECT | subscriptionId | List of virtualNetworks in a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List of virtualNetworks in a resource group. |
create | INSERT | resourceGroupName, subscriptionId, virtualNetworkName, data__location, data__properties | Create Or Update virtual network. |
delete | DELETE | resourceGroupName, subscriptionId, virtualNetworkName | Implements virtual network DELETE method. |
update | UPDATE | resourceGroupName, subscriptionId, virtualNetworkName | API to update certain properties of the virtual network resource. |
SELECT
examples
List of virtualNetworks in a subscription.
- vw_virtual_networks
- virtual_networks
SELECT
id,
name,
custom_resource_name,
extended_location,
inventory_item_id,
kind,
location,
mo_name,
mo_ref_id,
provisioning_state,
resourceGroupName,
statuses,
subscriptionId,
system_data,
tags,
type,
uuid,
v_center_id,
virtualNetworkName
FROM azure_isv.connected_vsphere.vw_virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
FROM azure_isv.connected_vsphere.virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new virtual_networks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.connected_vsphere.virtual_networks (
resourceGroupName,
subscriptionId,
virtualNetworkName,
data__location,
data__properties,
properties,
location,
extendedLocation,
systemData,
tags,
kind
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkName }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ systemData }}',
'{{ tags }}',
'{{ kind }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: uuid
value: string
- name: vCenterId
value: string
- name: moRefId
value: string
- name: inventoryItemId
value: string
- name: moName
value: string
- name: customResourceName
value: string
- name: statuses
value:
- - name: type
value: string
- name: status
value: string
- name: reason
value: string
- name: message
value: string
- name: severity
value: string
- name: lastUpdatedAt
value: string
- name: provisioningState
value: []
- name: location
value: string
- name: extendedLocation
value:
- name: type
value: string
- name: name
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: tags
value: object
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: kind
value: string
UPDATE
example
Updates a virtual_networks
resource.
/*+ update */
UPDATE azure_isv.connected_vsphere.virtual_networks
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkName = '{{ virtualNetworkName }}';
DELETE
example
Deletes the specified virtual_networks
resource.
/*+ delete */
DELETE FROM azure_isv.connected_vsphere.virtual_networks
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkName = '{{ virtualNetworkName }}';