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

NameDatatypeDescription
auth_credentialstextfield from the properties object
creation_datetextfield from the properties object
credentialSetNametextfield from the properties object
identitytextManaged identity for the resource.
login_servertextfield from the properties object
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcredentialSetName, registryName, resourceGroupName, subscriptionIdGets the properties of the specified credential set resource.
listSELECTregistryName, resourceGroupName, subscriptionIdLists all credential set resources for the specified container registry.
createINSERTcredentialSetName, registryName, resourceGroupName, subscriptionIdCreates a credential set for a container registry with the specified parameters.
deleteDELETEcredentialSetName, registryName, resourceGroupName, subscriptionIdDeletes a credential set from a container registry.
updateUPDATEcredentialSetName, registryName, resourceGroupName, subscriptionIdUpdates a credential set for a container registry with the specified parameters.

SELECT examples

Lists all credential set resources for the specified container registry.

SELECT
auth_credentials,
creation_date,
credentialSetName,
identity,
login_server,
provisioning_state,
registryName,
resourceGroupName,
subscriptionId
FROM azure.container_registry.vw_credential_sets
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new credential_sets resource.

/*+ create */
INSERT INTO azure.container_registry.credential_sets (
credentialSetName,
registryName,
resourceGroupName,
subscriptionId,
identity,
properties
)
SELECT
'{{ credentialSetName }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a credential_sets resource.

/*+ update */
UPDATE azure.container_registry.credential_sets
SET
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
credentialSetName = '{{ credentialSetName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified credential_sets resource.

/*+ delete */
DELETE FROM azure.container_registry.credential_sets
WHERE credentialSetName = '{{ credentialSetName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';