Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.playwrighttesting.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
dashboard_uritextfield from the properties object
local_authtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
regional_affinitytextfield from the properties object
reportingtextfield from the properties object
resourceGroupNametextfield from the properties object
scalable_executiontextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet a Account
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Account resources by resource group
list_by_subscriptionSELECTsubscriptionIdList Account resources by subscription ID
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreate a Account
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete a Account
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdate a Account
check_name_availabilityEXECsubscriptionIdAdds check global name availability operation, normally used if a resource name must be globally unique.

SELECT examples

List Account resources by subscription ID

SELECT
accountName,
dashboard_uri,
local_auth,
location,
provisioning_state,
regional_affinity,
reporting,
resourceGroupName,
scalable_execution,
subscriptionId,
tags
FROM azure.playwrighttesting.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.playwrighttesting.accounts (
accountName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.playwrighttesting.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.playwrighttesting.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';