agent_pools
Creates, updates, deletes, gets or lists a agent_pools
resource.
Overview
Name | agent_pools |
Type | Resource |
Id | azure.container_registry.agent_pools |
Fields
- vw_agent_pools
- agent_pools
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
agentPoolName | text | field from the properties object |
count | text | field from the properties object |
os | text | field from the properties object |
provisioning_state | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tier | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
virtual_network_subnet_resource_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | The properties of agent pool. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | agentPoolName, registryName, resourceGroupName, subscriptionId | Gets the detailed information for a given agent pool. |
list | SELECT | registryName, resourceGroupName, subscriptionId | Lists all the agent pools for a specified container registry. |
create | INSERT | agentPoolName, registryName, resourceGroupName, subscriptionId | Creates an agent pool for a container registry with the specified parameters. |
delete | DELETE | agentPoolName, registryName, resourceGroupName, subscriptionId | Deletes a specified agent pool resource. |
update | UPDATE | agentPoolName, registryName, resourceGroupName, subscriptionId | Updates an agent pool with the specified parameters. |
SELECT
examples
Lists all the agent pools for a specified container registry.
- vw_agent_pools
- agent_pools
SELECT
id,
name,
agentPoolName,
count,
os,
provisioning_state,
registryName,
resourceGroupName,
subscriptionId,
system_data,
tier,
type,
virtual_network_subnet_resource_id
FROM azure.container_registry.vw_agent_pools
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.container_registry.agent_pools
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new agent_pools
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.agent_pools (
agentPoolName,
registryName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ agentPoolName }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: count
value: integer
- name: tier
value: string
- name: os
value: string
- name: virtualNetworkSubnetResourceId
value: string
- name: provisioningState
value: string
UPDATE
example
Updates a agent_pools
resource.
/*+ update */
UPDATE azure.container_registry.agent_pools
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
agentPoolName = '{{ agentPoolName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified agent_pools
resource.
/*+ delete */
DELETE FROM azure.container_registry.agent_pools
WHERE agentPoolName = '{{ agentPoolName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';