Skip to main content

disks

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

Overview

Namedisks
TypeResource
Idazure_stack.compute_admin.disks

Fields

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
actual_size_gbtextfield from the properties object
creation_optiontextfield from the properties object
creation_source_uritextfield from the properties object
diskIdtextfield from the properties object
disk_idtextfield from the properties object
disk_skutextfield from the properties object
disk_typetextfield from the properties object
exclusive_allocated_sizetextfield from the properties object
locationtextLocation of the resource.
managed_bytextfield from the properties object
provision_size_gbtextfield from the properties object
share_pathtextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of Resource.
user_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiskId, location, subscriptionIdReturns the disk.
listSELECTlocation, subscriptionIdReturns a list of disks.

SELECT examples

Returns a list of disks.

SELECT
id,
name,
actual_size_gb,
creation_option,
creation_source_uri,
diskId,
disk_id,
disk_sku,
disk_type,
exclusive_allocated_size,
location,
managed_by,
provision_size_gb,
share_path,
status,
subscriptionId,
type,
user_resource_id
FROM azure_stack.compute_admin.vw_disks
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';