Skip to main content

iscsi_paths

Creates, updates, deletes, gets or lists an iscsi_paths resource.

Overview

Nameiscsi_paths
TypeResource
Idazure_isv.avs.iscsi_paths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
networkBlockstringCIDR Block for iSCSI path. Required.
provisioningStatestringThe state of the iSCSI path provisioning. Known values are: "Succeeded", "Failed", "Canceled", "Pending", "Building", "Deleting", and "Updating". (Succeeded, Failed, Canceled, Pending, Building, Deleting, Updating)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, private_cloud_name, subscription_idGet a IscsiPath.
create_or_updateinsertresource_group_name, private_cloud_name, subscription_idCreate a IscsiPath.
create_or_updatereplaceresource_group_name, private_cloud_name, subscription_idCreate a IscsiPath.
deletedeleteresource_group_name, private_cloud_name, subscription_idDelete a IscsiPath.
list_by_private_cloudexecresource_group_name, private_cloud_name, subscription_idList IscsiPath resources by PrivateCloud.

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
private_cloud_namestringName of the private cloud. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a IscsiPath.

SELECT
id,
name,
networkBlock,
provisioningState,
systemData,
type
FROM azure_isv.avs.iscsi_paths
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND private_cloud_name = '{{ private_cloud_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a IscsiPath.

INSERT INTO azure_isv.avs.iscsi_paths (
properties,
resource_group_name,
private_cloud_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ private_cloud_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create a IscsiPath.

REPLACE azure_isv.avs.iscsi_paths
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a IscsiPath.

DELETE FROM azure_isv.avs.iscsi_paths
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List IscsiPath resources by PrivateCloud.

EXEC azure_isv.avs.iscsi_paths.list_by_private_cloud 
@resource_group_name='{{ resource_group_name }}' --required,
@private_cloud_name='{{ private_cloud_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;