disk_accesses
Creates, updates, deletes, gets or lists a disk_accesses
resource.
Overview
Name | disk_accesses |
Type | Resource |
Id | azure.compute.disk_accesses |
Fields
- vw_disk_accesses
- disk_accesses
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
diskAccessName | text | field from the properties object |
extended_location | text | field from the properties object |
location | text | Resource location |
private_endpoint_connections | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags |
time_created | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
extendedLocation | object | The complex type of the extended location. |
location | string | Resource location |
properties | object | |
tags | object | Resource tags |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | diskAccessName, resourceGroupName, subscriptionId | Gets information about a disk access resource. |
list | SELECT | subscriptionId | Lists all the disk access resources under a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all the disk access resources under a resource group. |
create_or_update | INSERT | diskAccessName, resourceGroupName, subscriptionId | Creates or updates a disk access resource |
delete | DELETE | diskAccessName, resourceGroupName, subscriptionId | Deletes a disk access resource. |
update | UPDATE | diskAccessName, resourceGroupName, subscriptionId | Updates (patches) a disk access resource. |
SELECT
examples
Lists all the disk access resources under a subscription.
- vw_disk_accesses
- disk_accesses
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 }}';
SELECT
id,
name,
extendedLocation,
location,
properties,
tags,
type
FROM azure.compute.disk_accesses
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new disk_accesses
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.disk_accesses (
diskAccessName,
resourceGroupName,
subscriptionId,
properties,
extendedLocation,
location,
tags
)
SELECT
'{{ diskAccessName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: privateEndpointConnections
value:
- - name: properties
value:
- name: privateEndpoint
value:
- name: id
value: string
- name: privateLinkServiceConnectionState
value:
- name: status
value: []
- name: description
value: string
- name: actionsRequired
value: string
- name: provisioningState
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: provisioningState
value: string
- name: timeCreated
value: string
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
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 }}';