Skip to main content

resource_details

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

Overview

Nameresource_details
TypeResource
Idazure.devops_infrastructure.resource_details

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}. # pylint: disable=line-too-long
namestringThe name of the resource.
imagestringThe image name of the resource. Required.
imageVersionstringThe version of the image running on the resource. Required.
statusstringThe status of the resource. Required. Known values are: "Ready", "NotReady", "Allocated", "PendingReturn", "Returned", "Leased", "Provisioning", "Updating", "Starting", "PendingReimage", and "Reimaging". (Ready, NotReady, Allocated, PendingReturn, Returned, Leased, Provisioning, Updating, Starting, PendingReimage, Reimaging)
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
list_by_poolselectresource_group_name, pool_name, subscription_idList ResourceDetailsObject resources by Pool.

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
pool_namestringName of the pool. It needs to be globally unique. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

List ResourceDetailsObject resources by Pool.

SELECT
id,
name,
image,
imageVersion,
status,
systemData,
type
FROM azure.devops_infrastructure.resource_details
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;