Skip to main content

replications

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

Overview

Namereplications
TypeResource
Idazure.container_registry.replications

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}.
namestringThe name of the private link resource.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioning state of the replication at the time the operation was called. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". (Creating, Updating, Deleting, Succeeded, Failed, Canceled)
regionEndpointEnabledbooleanSpecifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
statusobjectThe status of the replication at the time the operation was called.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
zoneRedundancystringWhether or not zone redundancy is enabled for this container registry replication. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, registry_name, replication_name, subscription_idGets the properties of the specified replication.
listselectresource_group_name, registry_name, subscription_idLists all the replications for the specified container registry.
createinsertresource_group_name, registry_name, replication_name, subscription_id, locationCreates a replication for a container registry with the specified parameters.
updateupdateresource_group_name, registry_name, replication_name, subscription_idUpdates a replication for a container registry with the specified parameters.
deletedeleteresource_group_name, registry_name, replication_name, subscription_idDeletes a replication from a container registry.

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
registry_namestringThe name of the container registry. Required.
replication_namestringThe name of the replication. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the properties of the specified replication.

SELECT
id,
name,
location,
provisioningState,
regionEndpointEnabled,
status,
systemData,
tags,
type,
zoneRedundancy
FROM azure.container_registry.replications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND registry_name = '{{ registry_name }}' -- required
AND replication_name = '{{ replication_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a replication for a container registry with the specified parameters.

INSERT INTO azure.container_registry.replications (
tags,
location,
properties,
resource_group_name,
registry_name,
replication_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ registry_name }}',
'{{ replication_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a replication for a container registry with the specified parameters.

UPDATE azure.container_registry.replications
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND registry_name = '{{ registry_name }}' --required
AND replication_name = '{{ replication_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a replication from a container registry.

DELETE FROM azure.container_registry.replications
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND registry_name = '{{ registry_name }}' --required
AND replication_name = '{{ replication_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;