credential_sets
Creates, updates, deletes, gets or lists a credential_sets
resource.
Overview
Name | credential_sets |
Type | Resource |
Id | azure.container_registry.credential_sets |
Fields
- vw_credential_sets
- credential_sets
Name | Datatype | Description |
---|---|---|
auth_credentials | text | field from the properties object |
creation_date | text | field from the properties object |
credentialSetName | text | field from the properties object |
identity | text | Managed identity for the resource. |
login_server | text | field from the properties object |
provisioning_state | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | Managed identity for the resource. |
properties | object | The properties of a credential set resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | credentialSetName, registryName, resourceGroupName, subscriptionId | Gets the properties of the specified credential set resource. |
list | SELECT | registryName, resourceGroupName, subscriptionId | Lists all credential set resources for the specified container registry. |
create | INSERT | credentialSetName, registryName, resourceGroupName, subscriptionId | Creates a credential set for a container registry with the specified parameters. |
delete | DELETE | credentialSetName, registryName, resourceGroupName, subscriptionId | Deletes a credential set from a container registry. |
update | UPDATE | credentialSetName, registryName, resourceGroupName, subscriptionId | Updates a credential set for a container registry with the specified parameters. |
SELECT
examples
Lists all credential set resources for the specified container registry.
- vw_credential_sets
- credential_sets
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 }}';
SELECT
identity,
properties
FROM azure.container_registry.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.credential_sets (
credentialSetName,
registryName,
resourceGroupName,
subscriptionId,
identity,
properties
)
SELECT
'{{ credentialSetName }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: string
- name: userAssignedIdentities
value: object
- name: properties
value:
- name: loginServer
value: string
- name: authCredentials
value:
- - name: name
value: string
- name: usernameSecretIdentifier
value: string
- name: passwordSecretIdentifier
value: string
- name: credentialHealth
value:
- name: status
value: string
- name: errorCode
value: string
- name: errorMessage
value: string
- name: creationDate
value: string
- name: provisioningState
value: string
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 }}';