replications
Creates, updates, deletes, gets or lists a replications
resource.
Overview
Name | replications |
Type | Resource |
Id | azure.container_registry.replications |
Fields
- vw_replications
- replications
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 |
provisioning_state | text | field from the properties object |
region_endpoint_enabled | text | field from the properties object |
registryName | text | field from the properties object |
replicationName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
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 |
properties | object | The properties of a replication. |
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, replicationName, resourceGroupName, subscriptionId | Gets the properties of the specified replication. |
list | SELECT | registryName, resourceGroupName, subscriptionId | Lists all the replications for the specified container registry. |
create | INSERT | registryName, replicationName, resourceGroupName, subscriptionId | Creates a replication for a container registry with the specified parameters. |
delete | DELETE | registryName, replicationName, resourceGroupName, subscriptionId | Deletes a replication from a container registry. |
update | UPDATE | registryName, replicationName, resourceGroupName, subscriptionId | Updates a replication for a container registry with the specified parameters. |
SELECT
examples
Lists all the replications for the specified container registry.
- vw_replications
- replications
SELECT
id,
name,
provisioning_state,
region_endpoint_enabled,
registryName,
replicationName,
resourceGroupName,
status,
subscriptionId,
system_data,
type,
zone_redundancy
FROM azure.container_registry.vw_replications
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.container_registry.replications
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replications
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.replications (
registryName,
replicationName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ registryName }}',
'{{ replicationName }}',
'{{ 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: provisioningState
value: string
- name: status
value:
- name: displayStatus
value: string
- name: message
value: string
- name: timestamp
value: string
- name: regionEndpointEnabled
value: boolean
- name: zoneRedundancy
value: string
UPDATE
example
Updates a replications
resource.
/*+ update */
UPDATE azure.container_registry.replications
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
registryName = '{{ registryName }}'
AND replicationName = '{{ replicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified replications
resource.
/*+ delete */
DELETE FROM azure.container_registry.replications
WHERE registryName = '{{ registryName }}'
AND replicationName = '{{ replicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';