accounts
Creates, updates, deletes, gets or lists a accounts
resource.
Overview
Name | accounts |
Type | Resource |
Id | azure.autonomous_dev_platform.accounts |
Fields
- vw_accounts
- accounts
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
account_id | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | ADP account properties |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, subscriptionId | Gets the properties of an ADP account |
list | SELECT | subscriptionId | List all ADP accounts available under the subscription |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all ADP accounts available under the resource group |
create_or_update | INSERT | accountName, resourceGroupName, subscriptionId | Creates or updates an ADP account |
delete | DELETE | accountName, resourceGroupName, subscriptionId | Deletes an ADP account |
update | UPDATE | accountName, resourceGroupName, subscriptionId | Updates the properties of an existing ADP account |
check_name_availability | EXEC | subscriptionId, data__name, data__type | Checks that the account name is valid and is not already in use |
SELECT
examples
List all ADP accounts available under the subscription
- vw_accounts
- accounts
SELECT
accountName,
account_id,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.autonomous_dev_platform.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
systemData,
tags
FROM azure.autonomous_dev_platform.accounts
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new accounts
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.autonomous_dev_platform.accounts (
accountName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: accountId
value: string
- name: provisioningState
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a accounts
resource.
/*+ update */
UPDATE azure.autonomous_dev_platform.accounts
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified accounts
resource.
/*+ delete */
DELETE FROM azure.autonomous_dev_platform.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';