Skip to main content

deleted_accounts

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

Overview

Namedeleted_accounts
TypeResource
Idazure.cognitive_services.deleted_accounts

Fields

The following fields are returned by SELECT queries:

The resource provider should return 200 (OK) to indicate that the operation completed successfully.
For a detailed explanation of each field in the response body, please refer to the request body description in the PUT resource section. The only GET specific properties are "name," "type" and "id."
Field Description
Kind required. String.
The API set for this API account. It can be
· a single API, for example: Face API, Vision API, Speech API.
a bundle of APIs: Face + Speech, Vision + Emotion, etc.
sku.name Required.
The pricing tier/plan of this API. Could be:
F0 - Free
B0 - Basic
S0 - Standard
P0 - Premium

NameDatatypeDescription
etagstringResource Etag.
identityobjectIdentity for the resource.
kindstringThe Kind of the resource.
locationstringThe geo-location where the resource lives
propertiesobjectProperties of Cognitive Services account.
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
getselectlocation, resourceGroupName, accountName, subscriptionIdReturns a Cognitive Services account specified by the parameters.
listselectsubscriptionIdReturns all the resources of a particular type belonging to a subscription.
purgeexeclocation, resourceGroupName, accountName, subscriptionIdDeletes a Cognitive Services account from the resource group.

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.
locationstringResource location.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Returns a Cognitive Services account specified by the parameters.

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

Lifecycle Methods

Deletes a Cognitive Services account from the resource group.

EXEC azure.cognitive_services.deleted_accounts.purge 
@location='{{ location }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;