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:

The request was successful; the request was well-formed and received properly.

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
locationstringThe location of the resource. This cannot be changed after the resource is created.
propertiesobjectThe properties of the replication.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, registryName, replicationNameGets the properties of the specified replication.
listselectsubscriptionId, resourceGroupName, registryNameLists all the replications for the specified container registry.
createinsertsubscriptionId, resourceGroupName, registryName, replicationNameCreates a replication for a container registry with the specified parameters.
updateupdatesubscriptionId, resourceGroupName, registryName, replicationNameUpdates a replication for a container registry with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryName, replicationNameDeletes 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
registryNamestringThe name of the container registry.
replicationNamestringThe name of the replication.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the properties of the specified replication.

SELECT
id,
name,
location,
properties,
systemData,
tags,
type
FROM azure.container_registry.replications
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND replicationName = '{{ replicationName }}' -- required
;

INSERT examples

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

INSERT INTO azure.container_registry.replications (
data__location,
data__tags,
data__properties,
subscriptionId,
resourceGroupName,
registryName,
replicationName
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}',
'{{ replicationName }}'
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
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND replicationName = '{{ replicationName }}' --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 subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND replicationName = '{{ replicationName }}' --required
;