azureNativeVirtualMachines
Retrieves a paginated list of all Azure Virtual Machines (VMs).
Arguments
| Argument | Type | Description |
|---|---|---|
| first | Int | Returns the first n elements from the list. |
| after | String | An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results. |
| last | Int | Returns the last n elements from the list. |
| before | String | An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results. |
| sortBy | AzureNativeVirtualMachineSortFields | Sort fields for list of Azure virtual machines. |
| sortOrder | SortOrder | Sorts the order of results. |
| descendantTypeFilter | [HierarchyObjectTypeEnum!] | Filter the CDM cloud hosts by workload type. |
| virtualMachineFilters | AzureNativeVirtualMachineFilters | |
| includeSecurityMetadata | Boolean | Filter to include the security metadata. |
Returns
AzureNativeVirtualMachineConnection!
Sample
query {
azureNativeVirtualMachines(first: 10) {
nodes {
authorizedOperations
availabilitySetNativeId
availabilityZone
cloudNativeId
fileIndexingStatus
id
isAcceleratedNetworkingEnabled
isAdeEnabled
isAppConsistencyEnabled
isExocomputeConfigured
isFileIndexingEnabled
isPreOrPostScriptEnabled
isProtectable
isRelic
legallyHeldSnapshotCount
name
nativeName
numWorkloadDescendants
objectType
onDemandSnapshotCount
osType
privateIp
region
rscPendingObjectPauseAssignment
sizeType
slaAssignment
slaPauseStatus
subnetName
virtuaMachineNativeId
vmName
vnetName
}
pageInfo {
hasNextPage
endCursor
}
}
}
{
"data": {
"azureNativeVirtualMachines": {
"nodes": [
[
{
"authorizedOperations": [
"DELETE_SNAPSHOT"
],
"availabilitySetNativeId": "example-string",
"availabilityZone": "example-string",
"cloudNativeId": "example-string",
"fileIndexingStatus": "DISABLED",
"id": "00000000-0000-0000-0000-000000000000"
}
]
],
"pageInfo": {
"endCursor": "example-string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "example-string"
}
}
}
}