Skip to main content

virtual_networks

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

Overview

Namevirtual_networks
TypeResource
Idazure_isv.connected_vsphere.virtual_networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the Id.
namestringGets or sets the name.
extendedLocationobjectGets or sets the extended location.
kindstringMetadata 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.
locationstringGets or sets the location.
propertiesobjectResource properties.
systemDataobjectThe system data.
tagsobjectGets or sets the Resource tags.
typestringGets or sets the type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, virtualNetworkNameapi-versionImplements virtual network GET method.
list_by_resource_groupselectsubscriptionId, resourceGroupNameapi-versionList of virtualNetworks in a resource group.
listselectsubscriptionIdapi-versionList of virtualNetworks in a subscription.
createinsertsubscriptionId, resourceGroupName, virtualNetworkName, data__location, data__propertiesapi-versionCreate Or Update virtual network.
updateupdatesubscriptionId, resourceGroupName, virtualNetworkNameapi-versionAPI to update certain properties of the virtual network resource.
deletedeletesubscriptionId, resourceGroupName, virtualNetworkNameapi-version, forceImplements virtual network DELETE method.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe Resource Group Name.
subscriptionIdstringThe Subscription ID.
virtualNetworkNamestringName of the virtual network resource.
api-versionstringClient Api Version.
forcebooleanWhether force delete was specified.

SELECT examples

Implements virtual network GET method.

SELECT
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
FROM azure_isv.connected_vsphere.virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualNetworkName = '{{ virtualNetworkName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create Or Update virtual network.

INSERT INTO azure_isv.connected_vsphere.virtual_networks (
data__properties,
data__location,
data__extendedLocation,
data__tags,
data__kind,
subscriptionId,
resourceGroupName,
virtualNetworkName,
api-version
)
SELECT
'{{ properties }}' /* required */,
'{{ location }}' /* required */,
'{{ extendedLocation }}',
'{{ tags }}',
'{{ kind }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ virtualNetworkName }}',
'{{ api-version }}'
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

API to update certain properties of the virtual network resource.

UPDATE azure_isv.connected_vsphere.virtual_networks
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND virtualNetworkName = '{{ virtualNetworkName }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Implements virtual network DELETE method.

DELETE FROM azure_isv.connected_vsphere.virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND virtualNetworkName = '{{ virtualNetworkName }}' --required
AND api-version = '{{ api-version }}'
AND force = '{{ force }}'
;