Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.code_signing.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
account_uritextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet a trusted Signing Account.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists trusted signing accounts within a resource group.
list_by_subscriptionSELECTsubscriptionIdLists trusted signing accounts within a subscription.
createINSERTaccountName, resourceGroupName, subscriptionIdCreate a trusted Signing Account.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete a trusted signing account.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdate a trusted signing account.
check_name_availabilityEXECsubscriptionId, data__nameChecks that the trusted signing account name is valid and is not already in use.

SELECT examples

Lists trusted signing accounts within a subscription.

SELECT
accountName,
account_uri,
location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags
FROM azure_extras.code_signing.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.code_signing.accounts (
accountName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure_extras.code_signing.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure_extras.code_signing.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';