operations
Creates, updates, deletes, gets or lists an operations
resource.
Overview
Name | operations |
Type | Resource |
Id | azure.cognitive_services.operations |
Fields
The following fields are returned by SELECT
queries:
- list
OK.
Name | Datatype | Description |
---|---|---|
name | string | The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" |
actionType | string | Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. |
display | object | Localized display information for this particular operation. |
isDataAction | boolean | Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. |
origin | string | The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | Lists all the available Cognitive Services account operations. | ||
check_sku_availability | exec | subscriptionId , location , skus , kind , type | Check available SKUs. | |
check_domain_availability | exec | subscriptionId , subdomainName , type | Check whether a domain is available. |
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.
Name | Datatype | Description |
---|---|---|
location | string | Resource location. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- list
Lists all the available Cognitive Services account operations.
SELECT
name,
actionType,
display,
isDataAction,
origin
FROM azure.cognitive_services.operations
;
Lifecycle Methods
- check_sku_availability
- check_domain_availability
Check available SKUs.
EXEC azure.cognitive_services.operations.check_sku_availability
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"skus": "{{ skus }}",
"kind": "{{ kind }}",
"type": "{{ type }}"
}'
;
Check whether a domain is available.
EXEC azure.cognitive_services.operations.check_domain_availability
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"subdomainName": "{{ subdomainName }}",
"type": "{{ type }}",
"kind": "{{ kind }}"
}'
;