Skip to main content

commitment_plans

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

Overview

Namecommitment_plans
TypeResource
Idazure.cognitive_services.commitment_plans

Fields

The following fields are returned by SELECT queries:

OK -- Get the commitmentPlans properties successfully.

NameDatatypeDescription
etagstringResource Etag.
kindstringThe kind (type) of cognitive service account.
locationstringThe geo-location where the resource lives
propertiesobjectProperties of Cognitive Services account commitment plan.
skuobjectThe resource model definition representing SKU
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, accountName, subscriptionId, commitmentPlanNameGets the specified commitmentPlans associated with the Cognitive Services account.
listselectresourceGroupName, accountName, subscriptionIdGets the commitmentPlans associated with the Cognitive Services account.
create_or_updateinsertresourceGroupName, accountName, subscriptionId, commitmentPlanNameUpdate the state of specified commitmentPlans associated with the Cognitive Services account.
deletedeleteresourceGroupName, accountName, subscriptionId, commitmentPlanNameDeletes the specified commitmentPlan associated with the Cognitive Services account.

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
accountNamestringThe name of Cognitive Services account.
commitmentPlanNamestringThe name of the commitmentPlan associated with the Cognitive Services Account
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the specified commitmentPlans associated with the Cognitive Services account.

SELECT
etag,
kind,
location,
properties,
sku,
systemData,
tags
FROM azure.cognitive_services.commitment_plans
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND commitmentPlanName = '{{ commitmentPlanName }}' -- required
;

INSERT examples

Update the state of specified commitmentPlans associated with the Cognitive Services account.

INSERT INTO azure.cognitive_services.commitment_plans (
data__kind,
data__sku,
data__tags,
data__location,
data__properties,
resourceGroupName,
accountName,
subscriptionId,
commitmentPlanName
)
SELECT
'{{ kind }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ subscriptionId }}',
'{{ commitmentPlanName }}'
RETURNING
etag,
kind,
location,
properties,
sku,
systemData,
tags
;

DELETE examples

Deletes the specified commitmentPlan associated with the Cognitive Services account.

DELETE FROM azure.cognitive_services.commitment_plans
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND commitmentPlanName = '{{ commitmentPlanName }}' --required
;