Skip to main content

disk_accesses

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

Overview

Namedisk_accesses
TypeResource
Idazure.compute.disk_accesses

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
diskAccessNametextfield from the properties object
extended_locationtextfield from the properties object
locationtextResource location
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
time_createdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiskAccessName, resourceGroupName, subscriptionIdGets information about a disk access resource.
listSELECTsubscriptionIdLists all the disk access resources under a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the disk access resources under a resource group.
create_or_updateINSERTdiskAccessName, resourceGroupName, subscriptionIdCreates or updates a disk access resource
deleteDELETEdiskAccessName, resourceGroupName, subscriptionIdDeletes a disk access resource.
updateUPDATEdiskAccessName, resourceGroupName, subscriptionIdUpdates (patches) a disk access resource.

SELECT examples

Lists all the disk access resources under a subscription.

SELECT
id,
name,
diskAccessName,
extended_location,
location,
private_endpoint_connections,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
time_created,
type
FROM azure.compute.vw_disk_accesses
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new disk_accesses resource.

/*+ create */
INSERT INTO azure.compute.disk_accesses (
diskAccessName,
resourceGroupName,
subscriptionId,
properties,
extendedLocation,
location,
tags
)
SELECT
'{{ diskAccessName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a disk_accesses resource.

/*+ update */
UPDATE azure.compute.disk_accesses
SET
tags = '{{ tags }}'
WHERE
diskAccessName = '{{ diskAccessName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified disk_accesses resource.

/*+ delete */
DELETE FROM azure.compute.disk_accesses
WHERE diskAccessName = '{{ diskAccessName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';