accounts
Creates, updates, deletes, gets or lists a accounts
resource.
Overview
Name | accounts |
Type | Resource |
Id | azure_extras.intelligent_recommendations.accounts |
Fields
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | Account resource 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 | Returns RecommendationsService Account resource for a given name. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Returns list of RecommendationsService Account resources. |
list_by_subscription | SELECT | subscriptionId | Returns list of RecommendationsService Account resources. |
create_or_update | INSERT | accountName, resourceGroupName, subscriptionId | Creates or updates RecommendationsService Account resource. |
delete | DELETE | accountName, resourceGroupName, subscriptionId | Deletes RecommendationsService Account resource. |
update | UPDATE | accountName, resourceGroupName, subscriptionId | Updates RecommendationsService Account details. |
check_name_availability | EXEC | subscriptionId | Checks that the RecommendationsService Account name is valid and is not already in use. |
SELECT
examples
Returns list of RecommendationsService Account resources.
SELECT
identity,
location,
properties,
systemData,
tags
FROM azure_extras.intelligent_recommendations.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_extras.intelligent_recommendations.accounts (
accountName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
systemData,
identity
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ systemData }}',
'{{ identity }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: configuration
value: string
- name: endpointAuthentications
value: []
- name: cors
value: []
- name: reportsConnectionString
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: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
UPDATE
example
Updates a accounts
resource.
/*+ update */
UPDATE azure_extras.intelligent_recommendations.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified accounts
resource.
/*+ delete */
DELETE FROM azure_extras.intelligent_recommendations.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';