Skip to main content

credential_sets

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

Overview

Namecredential_sets
TypeResource
Idazure.container_registry.credential_sets

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.
identityobjectIdentities associated with the resource. This is used to access the KeyVault secrets.
propertiesobjectThe properties of the credential set.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, registryName, credentialSetNameGets the properties of the specified credential set resource.
listselectsubscriptionId, resourceGroupName, registryNameLists all credential set resources for the specified container registry.
createinsertsubscriptionId, resourceGroupName, registryName, credentialSetNameCreates a credential set for a container registry with the specified parameters.
updateupdatesubscriptionId, resourceGroupName, registryName, credentialSetNameUpdates a credential set for a container registry with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryName, credentialSetNameDeletes a credential set 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
credentialSetNamestringThe name of the credential set.
registryNamestringThe name of the container registry.
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 credential set resource.

SELECT
id,
name,
identity,
properties,
systemData,
type
FROM azure.container_registry.credential_sets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND credentialSetName = '{{ credentialSetName }}' -- required
;

INSERT examples

Creates a credential set for a container registry with the specified parameters.

INSERT INTO azure.container_registry.credential_sets (
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
registryName,
credentialSetName
)
SELECT
'{{ identity }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}',
'{{ credentialSetName }}'
RETURNING
id,
name,
identity,
properties,
systemData,
type
;

UPDATE examples

Updates a credential set for a container registry with the specified parameters.

UPDATE azure.container_registry.credential_sets
SET
data__properties = '{{ properties }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND credentialSetName = '{{ credentialSetName }}' --required
RETURNING
id,
name,
identity,
properties,
systemData,
type;

DELETE examples

Deletes a credential set from a container registry.

DELETE FROM azure.container_registry.credential_sets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND credentialSetName = '{{ credentialSetName }}' --required
;