resource_details
Creates, updates, deletes, gets or lists a resource_details resource.
Overview
| Name | resource_details |
| Type | Resource |
| Id | azure.devops_infrastructure.resource_details |
Fields
The following fields are returned by SELECT queries:
- list_by_pool
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name | string | The name of the resource. |
image | string | The image name of the resource. Required. |
imageVersion | string | The version of the image running on the resource. Required. |
status | string | The 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) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_pool | select | resource_group_name, pool_name, subscription_id | List 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.
| Name | Datatype | Description |
|---|---|---|
pool_name | string | Name of the pool. It needs to be globally unique. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- list_by_pool
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
;