Skip to main content

credentials

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

Overview

Namecredentials
TypeResource
Idazure_extras.test_base.credentials

Fields

NameDatatypeDescription
credentialNametextfield from the properties object
credential_typetextfield from the properties object
display_nametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
testBaseAccountNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcredentialName, resourceGroupName, subscriptionId, testBaseAccountNameGets a test base credential Resource
list_by_test_base_accountSELECTresourceGroupName, subscriptionId, testBaseAccountNameLists all the Credentials under a Test Base Account.
createINSERTcredentialName, resourceGroupName, subscriptionId, testBaseAccountNameCreates or replaces a Test Base Credential.
deleteDELETEcredentialName, resourceGroupName, subscriptionId, testBaseAccountNameDeletes an existing test base credential.
updateUPDATEcredentialName, resourceGroupName, subscriptionId, testBaseAccountNameUpdates an existing test base credential.

SELECT examples

Lists all the Credentials under a Test Base Account.

SELECT
credentialName,
credential_type,
display_name,
resourceGroupName,
subscriptionId,
testBaseAccountName
FROM azure_extras.test_base.vw_credentials
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.test_base.credentials (
credentialName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties
)
SELECT
'{{ credentialName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}'
;

UPDATE example

Updates a credentials resource.

/*+ update */
UPDATE azure_extras.test_base.credentials
SET
properties = '{{ properties }}'
WHERE
credentialName = '{{ credentialName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

DELETE example

Deletes the specified credentials resource.

/*+ delete */
DELETE FROM azure_extras.test_base.credentials
WHERE credentialName = '{{ credentialName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';