registries
Creates, updates, deletes, gets or lists a registries
resource.
Overview
Name | registries |
Type | Resource |
Id | azure.container_registry.registries |
Fields
- vw_registries
- registries
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 |
admin_user_enabled | text | field from the properties object |
anonymous_pull_enabled | text | field from the properties object |
creation_date | text | field from the properties object |
data_endpoint_enabled | text | field from the properties object |
data_endpoint_host_names | text | field from the properties object |
encryption | text | field from the properties object |
identity | text | Managed identity for the resource. |
login_server | text | field from the properties object |
metadata_search | text | field from the properties object |
network_rule_bypass_options | text | field from the properties object |
network_rule_set | text | field from the properties object |
policies | text | field from the properties object |
private_endpoint_connections | text | field from the properties object |
provisioning_state | text | field from the properties object |
public_network_access | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | The resource model definition representing SKU |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
zone_redundancy | 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 |
identity | object | Managed identity for the resource. |
properties | object | The properties of a container registry. |
sku | object | The resource model definition representing SKU |
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 | registryName, resourceGroupName, subscriptionId | Gets the properties of the specified container registry. |
list | SELECT | subscriptionId | Lists all the container registries under the specified subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all the container registries under the specified resource group. |
create | INSERT | registryName, resourceGroupName, subscriptionId, data__sku | Creates a container registry with the specified parameters. |
delete | DELETE | registryName, resourceGroupName, subscriptionId | Deletes a container registry. |
update | UPDATE | registryName, resourceGroupName, subscriptionId | Updates a container registry with the specified parameters. |
check_name_availability | EXEC | subscriptionId, data__name, data__type | Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. |
generate_credentials | EXEC | registryName, resourceGroupName, subscriptionId | Generate keys for a token of a specified container registry. |
import_image | EXEC | registryName, resourceGroupName, subscriptionId, data__source | Copies an image to this container registry from the specified container registry. |
regenerate_credential | EXEC | registryName, resourceGroupName, subscriptionId, data__name | Regenerates one of the login credentials for the specified container registry. |
schedule_run | EXEC | registryName, resourceGroupName, subscriptionId, data__type | Schedules a new run based on the request parameters and add it to the run queue. |
SELECT
examples
Lists all the container registries under the specified subscription.
- vw_registries
- registries
SELECT
id,
name,
admin_user_enabled,
anonymous_pull_enabled,
creation_date,
data_endpoint_enabled,
data_endpoint_host_names,
encryption,
identity,
login_server,
metadata_search,
network_rule_bypass_options,
network_rule_set,
policies,
private_endpoint_connections,
provisioning_state,
public_network_access,
registryName,
resourceGroupName,
sku,
status,
subscriptionId,
system_data,
type,
zone_redundancy
FROM azure.container_registry.vw_registries
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
identity,
properties,
sku,
systemData,
type
FROM azure.container_registry.registries
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new registries
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.registries (
registryName,
resourceGroupName,
subscriptionId,
data__sku,
sku,
identity,
properties
)
SELECT
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ identity }}',
'{{ 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: sku
value:
- name: name
value: string
- name: tier
value: []
- name: size
value: string
- name: family
value: string
- name: capacity
value: integer
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: string
- name: userAssignedIdentities
value: object
- name: properties
value:
- name: loginServer
value: string
- name: creationDate
value: string
- name: provisioningState
value: string
- name: status
value:
- name: displayStatus
value: string
- name: message
value: string
- name: timestamp
value: string
- name: adminUserEnabled
value: boolean
- name: networkRuleSet
value:
- name: defaultAction
value: string
- name: ipRules
value:
- - name: action
value: string
- name: value
value: string
- name: policies
value:
- name: quarantinePolicy
value:
- name: status
value: string
- name: trustPolicy
value:
- name: type
value: string
- name: status
value: string
- name: retentionPolicy
value:
- name: days
value: integer
- name: lastUpdatedTime
value: string
- name: status
value: string
- name: exportPolicy
value:
- name: status
value: string
- name: azureADAuthenticationAsArmPolicy
value:
- name: status
value: string
- name: softDeletePolicy
value:
- name: retentionDays
value: integer
- name: lastUpdatedTime
value: string
- name: status
value: string
- name: encryption
value:
- name: status
value: string
- name: keyVaultProperties
value:
- name: keyIdentifier
value: string
- name: identity
value: string
- name: dataEndpointEnabled
value: boolean
- name: dataEndpointHostNames
value:
- string
- name: privateEndpointConnections
value:
- - name: properties
value:
- name: privateEndpoint
value:
- name: id
value: string
- name: privateLinkServiceConnectionState
value:
- name: status
value: string
- name: description
value: string
- name: actionsRequired
value: string
- name: provisioningState
value: string
- name: publicNetworkAccess
value: string
- name: networkRuleBypassOptions
value: string
- name: zoneRedundancy
value: string
- name: anonymousPullEnabled
value: boolean
- name: metadataSearch
value: string
UPDATE
example
Updates a registries
resource.
/*+ update */
UPDATE azure.container_registry.registries
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified registries
resource.
/*+ delete */
DELETE FROM azure.container_registry.registries
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';