Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.code_signing.accounts

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameGet a trusted Signing Account.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists trusted signing accounts within a resource group.
list_by_subscriptionselectsubscriptionIdLists trusted signing accounts within a subscription.
createinsertsubscriptionId, resourceGroupName, accountNameCreate a trusted Signing Account.
updateupdatesubscriptionId, resourceGroupName, accountNameUpdate a trusted signing account.
deletedeletesubscriptionId, resourceGroupName, accountNameDelete a trusted signing account.
check_name_availabilityexecsubscriptionId, nameChecks that the trusted signing account name is valid and is not already in use.

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
accountNamestringTrusted Signing account name.
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

Get a trusted Signing Account.

SELECT
location,
properties,
tags
FROM azure_extras.code_signing.accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;

INSERT examples

Create a trusted Signing Account.

INSERT INTO azure_extras.code_signing.accounts (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Update a trusted signing account.

UPDATE azure_extras.code_signing.accounts
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Delete a trusted signing account.

DELETE FROM azure_extras.code_signing.accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
;

Lifecycle Methods

Checks that the trusted signing account name is valid and is not already in use.

EXEC azure_extras.code_signing.accounts.check_name_availability 
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"name": "{{ name }}"
}'
;