commitment_plans_associations
Creates, updates, deletes, gets or lists a commitment_plans_associations
resource.
Overview
Name | commitment_plans_associations |
Type | Resource |
Id | azure.cognitive_services.commitment_plans_associations |
Fields
- vw_commitment_plans_associations
- commitment_plans_associations
Name | Datatype | Description |
---|---|---|
account_id | text | field from the properties object |
commitmentPlanAssociationName | text | field from the properties object |
commitmentPlanName | text | field from the properties object |
etag | text | Resource Etag. |
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 |
---|---|---|
etag | string | Resource Etag. |
properties | object | The commitment plan account association 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 | commitmentPlanAssociationName, commitmentPlanName, resourceGroupName, subscriptionId | Gets the association of the Cognitive Services commitment plan. |
list | SELECT | commitmentPlanName, resourceGroupName, subscriptionId | Gets the associations of the Cognitive Services commitment plan. |
create_or_update | INSERT | commitmentPlanAssociationName, commitmentPlanName, resourceGroupName, subscriptionId | Create or update the association of the Cognitive Services commitment plan. |
delete | DELETE | commitmentPlanAssociationName, commitmentPlanName, resourceGroupName, subscriptionId | Deletes the association of the Cognitive Services commitment plan. |
SELECT
examples
Gets the associations of the Cognitive Services commitment plan.
- vw_commitment_plans_associations
- commitment_plans_associations
SELECT
account_id,
commitmentPlanAssociationName,
commitmentPlanName,
etag,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_commitment_plans_associations
WHERE commitmentPlanName = '{{ commitmentPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
properties,
systemData,
tags
FROM azure.cognitive_services.commitment_plans_associations
WHERE commitmentPlanName = '{{ commitmentPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new commitment_plans_associations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cognitive_services.commitment_plans_associations (
commitmentPlanAssociationName,
commitmentPlanName,
resourceGroupName,
subscriptionId,
tags,
properties
)
SELECT
'{{ commitmentPlanAssociationName }}',
'{{ commitmentPlanName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- 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: etag
value: string
- name: tags
value: object
- name: properties
value:
- name: accountId
value: string
DELETE
example
Deletes the specified commitment_plans_associations
resource.
/*+ delete */
DELETE FROM azure.cognitive_services.commitment_plans_associations
WHERE commitmentPlanAssociationName = '{{ commitmentPlanAssociationName }}'
AND commitmentPlanName = '{{ commitmentPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';