UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 49.5 kB
{"openapi":"3.0.0","info":{"description":"Cognitive Services Management Client","title":"CognitiveServicesManagementClient","version":"2017-04-18","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"cognitiveservices","x-tags":["Azure","Microsoft"]},"paths":{"/providers/Microsoft.CognitiveServices/operations":{"get":{"deprecated":false,"description":"Lists all the available Cognitive Services account operations.","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationEntityListResult"},"examples":{"Get Operations":{"$ref":"#/components/examples/Get_Operations"}}}}}},"tags":["Operations"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts":{"get":{"description":"Returns all the resources of a particular type belonging to a subscription.","operationId":"Accounts_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses. If a resource provider does not support paging, it should return the same body but leave nextLink empty for future compatibility.\nFor a detailed explanation of each field in the response body, please refer to the request body description in the PUT resource section. ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccountListResult"},"examples":{"List Accounts by Subscription":{"$ref":"#/components/examples/List_Accounts_by_Subscription"}}}}},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability":{"post":{"description":"Check whether a domain is available.","operationId":"CheckDomainAvailability","parameters":[{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDomainAvailabilityParameter"}}},"description":"Check Domain Availability parameter.","required":true,"x-ms-client-flatten":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDomainAvailabilityResult"},"examples":{"Check SKU Availability":{"$ref":"#/components/examples/Check_SKU_Availability"}}}}}},"tags":["CognitiveServicesAccounts"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability":{"post":{"description":"Check available SKUs.","operationId":"CheckSkuAvailability","parameters":[{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/locationParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckSkuAvailabilityParameter"}}},"description":"Check SKU Availability POST body.","required":true,"x-ms-client-flatten":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckSkuAvailabilityResultList"},"examples":{"Check SKU Availability":{"$ref":"#/components/examples/Check_SKU_Availability"}}}}}},"tags":["CognitiveServicesAccounts"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus":{"get":{"description":"Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.","operationId":"ResourceSkus_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSkusResult"},"examples":{"Regenerate Keys":{"$ref":"#/components/examples/Regenerate_Keys"}}}}}},"tags":["Skus","CognitiveServicesAccounts"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts":{"get":{"description":"Returns all the resources of a particular type belonging to a resource group","operationId":"Accounts_ListByResourceGroup","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"List Accounts by Resource Group":{"value":"felixwa-01"}}},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses here. If a resource provider does not support paging, it should return the same body (JSON object with \"value\" property) but omit nextLink entirely (or set to null, *not* empty string) for future compatibility.\nThe nextLink should be implemented using following query parameters:\n· skipToken: opaque token that allows the resource provider to skip resources already enumerated. This value is defined and returned by the RP after first request via nextLink.\n· top: the optional client query parameter which defines the maximum number of records to be returned by the server.\nImplementation details:\n· NextLink may include all the query parameters (specifically OData $filter) used by the client in the first query. \n· Server may return less records than requested with nextLink. Returning zero records with NextLink is an acceptable response. \nClients must fetch records until the nextLink is not returned back / null. Clients should never rely on number of returned records to determinate if pagination is completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccountListResult"},"examples":{"List Accounts by Resource Group":{"$ref":"#/components/examples/List_Accounts_by_Resource_Group"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}":{"delete":{"description":"Deletes a Cognitive Services account from the resource group. ","operationId":"Accounts_Delete","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"Delete Account":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Delete Account":{"value":"PropTest01"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"A 200 (OK) should be returned if the object exists and was deleted successfully;"},"202":{"description":"HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously."},"204":{"description":"a 204 (NoContent) should be used if the resource does not exist and the request is well formed."},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]},"get":{"description":"Returns a Cognitive Services account specified by the parameters.","operationId":"Accounts_GetProperties","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"Get Account":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Get Account":{"value":"felixwatest1"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully.\nFor 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.\"\nField\tDescription\nKind\trequired. String.\n\tThe API set for this API account. It can be \n\t· a single API, for example: Face API, Vision API, Speech API. \n\ta bundle of APIs: Face + Speech, Vision + Emotion, etc.\nsku.name\tRequired.\n\tThe pricing tier/plan of this API. Could be: \n\tF0 - Free\n\tB0 - Basic\n\tS0 - Standard\n\tP0 - Premium\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"examples":{"Get Account":{"$ref":"#/components/examples/Get_Account"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource does not exist, 404 (NotFound) should be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]},"patch":{"description":"Updates a Cognitive Services account","operationId":"Accounts_Update","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"Update Account":{"value":"bvttest"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Update Account":{"value":"bingSearch"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"requestBody":{"$ref":"#/components/requestBodies/CognitiveServicesAccount"},"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully. ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"examples":{"Update Account":{"$ref":"#/components/examples/Update_Account"}}}}},"202":{"description":"HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"examples":{"Update Account":{"$ref":"#/components/examples/Update_Account"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]},"put":{"description":"Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing.","operationId":"Accounts_Create","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"Create Account":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Create Account":{"value":"testCreate1"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"requestBody":{"$ref":"#/components/requestBodies/CognitiveServicesAccount"},"responses":{"200":{"description":"If resource is created successfully or already existed, the service should return 200 (OK).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"examples":{"Create Account":{"$ref":"#/components/examples/Create_Account"}}}}},"201":{"description":"If resource is created successfully, the service should return 201 (OK).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"examples":{"Create Account":{"$ref":"#/components/examples/Create_Account"}}}}},"202":{"description":"HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"examples":{"Create Account":{"$ref":"#/components/examples/Create_Account"}}}}},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys":{"post":{"description":"Lists the account keys for the specified Cognitive Services account.","operationId":"Accounts_ListKeys","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"List Keys":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"List Keys":{"value":"felixwatest1"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"Returns with a response body containing the subscription keys for the resource: key1\nThe first API key for authentication when client calls the API endpoint.\n\nkey2\nThe second API key for authentication when client calls the API endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccountKeys"},"examples":{"List Keys":{"$ref":"#/components/examples/List_Keys"}}}}},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey":{"post":{"description":"Regenerates the specified account key for the specified Cognitive Services account.","operationId":"Accounts_RegenerateKey","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"Regenerate Keys":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Regenerate Keys":{"value":"felixwatest1"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateKeyParameters"}}},"description":"regenerate key parameters.","required":true,"x-ms-client-flatten":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccountKeys"},"examples":{"Regenerate Keys":{"$ref":"#/components/examples/Regenerate_Keys"}}}}},"default":{"description":"Error response describing why the operation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus":{"get":{"description":"List available SKUs for the requested Cognitive Services account","operationId":"Accounts_ListSkus","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"List SKUs":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"List SKUs":{"value":"felixwatest1"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"}],"responses":{"200":{"description":"The resource provider should return 200 (OK) to indicate that the operation completed successfully.\nFor 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.\"\nField\tDescription\nsku\tRequired, object\n\tThe exact set of keys that define this sku. This matches the fields on the respective resource.\nsku.name\tRequired, string\n\tThe name of the SKU. This is typically a letter + number code, such as A0 or P3\nsku.tier\tRequired, string\n\tThe tier of this particular SKU. Typically one of:\n\t· Free\n\t· Basic\n\t· Standard\n\t· Premium\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccountEnumerateSkusResult"},"examples":{"List SKUs":{"$ref":"#/components/examples/List_SKUs"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource does not exist, 404 (NotFound) will be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages":{"get":{"description":"Get usages for the requested Cognitive Services account","operationId":"Accounts_GetUsages","parameters":[{"description":"The name of the resource group within the user's subscription.","in":"path","name":"resourceGroupName","required":true,"schema":{"type":"string"},"examples":{"Get Usages":{"value":"felixwa-01"}}},{"description":"The name of Cognitive Services account.","in":"path","name":"accountName","required":true,"schema":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"},"examples":{"Get Usages":{"value":"TestUsage02"}}},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/subscriptionIdParameter"},{"$ref":"#/components/parameters/usageFilterParameter"}],"responses":{"200":{"description":"The usages for Cognitive Services account were retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsagesResult"},"examples":{"Get Usages":{"$ref":"#/components/examples/Get_Usages"}}}}},"default":{"description":"Error response describing why the operation failed. If the resource does not exist, 404 (NotFound) will be returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"tags":["CognitiveServicesAccounts"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_Operations":{"value":{"value":[{"display":{"description":"Reads API accounts.","operation":"Read API Account","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/read","origin":"user,system"},{"display":{"description":"Writes API Accounts.","operation":"Write API Account","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/write","origin":"user,system"},{"display":{"description":"Deletes API accounts","operation":"Delete API Account","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/delete","origin":"user,system"},{"display":{"description":"List Keys","operation":"List Keys","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/listKeys/action","origin":"user"},{"display":{"description":"Regenerate Key","operation":"Regenerate Key","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/regenerateKey/action","origin":"user"},{"display":{"description":"Get the quota usage for an existing resource.","operation":"Get the quota usage for an existing resource","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/usages/read","origin":"user"},{"display":{"description":"Reads available SKUs for an existing resource.","operation":"Read available SKUs for an existing resource","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/skus/read","origin":"user"},{"display":{"description":"Gets the diagnostic setting for the resource.","operation":"Read diagnostic setting","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/providers/Microsoft.Insights/diagnosticSettings/read","origin":"system"},{"display":{"description":"Creates or updates the diagnostic setting for the resource.","operation":"Write diagnostic setting","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accounts/providers/Microsoft.Insights/diagnosticSettings/write","origin":"system"},{"display":{"description":"Gets the available metrics for Cognitive Services.","operation":"Read Cognitive Services metric definitions","provider":"Microsoft Cognitive Services","resource":"The metric definition of Cognitive Services"},"name":"Microsoft.CognitiveServices/accounts/providers/Microsoft.Insights/metricDefinitions/read","origin":"system","properties":{"serviceSpecification":{"metricSpecifications":[{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Total number of calls.","displayName":"Total Calls","name":"TotalCalls","unit":"Count"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Number of successful calls.","displayName":"Successful Calls","name":"SuccessfulCalls","unit":"Count"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Total number of calls with error response (HTTP response code 4xx or 5xx).","displayName":"Total Errors","name":"TotalErrors","unit":"Count"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Number of calls that exceeded rate or quota limit.","displayName":"Blocked Calls","name":"BlockedCalls","unit":"Count"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Number of calls with service internal error (HTTP response code 5xx).","displayName":"Server Errors","name":"ServerErrors","unit":"Count"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Number of calls with client side error (HTTP response code 4xx).","displayName":"Client Errors","name":"ClientErrors","unit":"Count"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Size of incoming data in bytes.","displayName":"Data In","name":"DataIn","unit":"Bytes"},{"aggregationType":"Total","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Size of outgoing data in bytes.","displayName":"Data Out","name":"DataOut","unit":"Bytes"},{"aggregationType":"Average","availabilities":[{"blobDuration":"PT1H","timeGrain":"PT1M"},{"blobDuration":"P1D","timeGrain":"PT1H"}],"displayDescription":"Latency in milliseconds.","displayName":"Latency","name":"Latency","unit":"MilliSeconds"}]}}},{"display":{"description":"Description of the operation.","operation":"Operation display name.","provider":"Resource Provider display name.","resource":"Resource type display name."},"name":"Microsoft.CognitiveServices/Operations/read","origin":"user,system"},{"display":{"description":"Reads avaible SKUs for an subscription.","operation":"Reads avaible SKUs for an subscription.","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/checkSkuAvailabilityaction","origin":"user,system"},{"display":{"description":"Allow to create CognitiveServices account for an given subscription/ApiKind/location.","operation":"Allow to create CognitiveServices account for an given subscription/ApiKind/location.","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/updateAccountsCreationSettingswrite","origin":"user,system"},{"display":{"description":"Get settings for given subscription/ApiKind/location.","operation":"Get settings for given subscription/ApiKind/location.","provider":"Microsoft Cognitive Services","resource":"Cognitive Services API Account"},"name":"Microsoft.CognitiveServices/accountsCreationSettingsread","origin":"user,system"}]}},"List_Accounts_by_Subscription":{"value":{"value":[{"etag":"W/\"datetime'2017-03-27T11%3A19%3A08.762494Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/bingSearch","kind":"Bing.Search","location":"global","name":"bingSearch","properties":{"endpoint":"https://api.cognitive.microsoft.com/bing/v5.0","internalId":"ceebe1e8e40f44e69554c1a759de4cf9","provisioningState":"Succeeded"},"sku":{"name":"S1"},"type":"Microsoft.CognitiveServices/accounts"},{"etag":"W/\"datetime'2017-03-31T08%3A57%3A07.4499566Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/CrisProd","kind":"CRIS","location":"westus","name":"CrisProd","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/sts/v1.0","internalId":"cb9a1ad4861a46ef8e440268f763d09e","provisioningState":"Succeeded"},"sku":{"name":"S0"},"tags":{"can't delete it successfully":"v-yunjin"},"type":"Microsoft.CognitiveServices/accounts"},{"etag":"W/\"datetime'2017-03-27T11%3A15%3A23.5232645Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/rayrptest0308","kind":"Face","location":"westus","name":"rayrptest0308","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/face/v1.0","internalId":"c83b58e58b6f4049a6d0d1328473326c","provisioningState":"Succeeded"},"sku":{"name":"S0"},"type":"Microsoft.CognitiveServices/accounts"},{"etag":"W/\"datetime'2017-04-04T02%3A07%3A07.3957572Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/raytest02","kind":"Emotion","location":"westus","name":"raytest02","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/emotion/v1.0","internalId":"c118e8b8f4534cff991f2b7c216342df","provisioningState":"Succeeded"},"sku":{"name":"S0"},"type":"Microsoft.CognitiveServices/accounts"}]}},"Check_SKU_Availability":{"value":{"value":[{"kind":"Face","skuAvailable":true,"skuName":"S0","type":"Microsoft.CognitiveServices/accounts"}]}},"Regenerate_Keys":{"value":{"key1":"KEY1","key2":"KEY2"}},"List_Accounts_by_Resource_Group":{"value":{"value":[{"etag":"W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/felixwa-01/providers/Microsoft.CognitiveServices/accounts/felixwatest1","kind":"Emotion","location":"westus","name":"felixwatest1","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/emotion/v1.0","internalId":"a6bb5ff85a3b4c6eb8de8798567a78c6","provisioningState":"Succeeded"},"sku":{"name":"F0"},"tags":{"ExpiredDate":"2017/09/01","Owner":"felixwa"},"type":"Microsoft.CognitiveServices/accounts"},{"etag":"W/\"datetime'2017-04-07T04%3A32%3A38.9187216Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/felixwa-01/providers/Microsoft.CognitiveServices/accounts/TestPropertyWU2","kind":"Face","location":"westus","name":"TestPropertyWU2","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/face/v1.0","internalId":"0d40510f999141509dbfd9e1f9b259ca","provisioningState":"Succeeded"},"sku":{"name":"S0"},"tags":{},"type":"Microsoft.CognitiveServices/accounts"}]}},"Get_Account":{"value":{"etag":"W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/felixwa-01/providers/Microsoft.CognitiveServices/accounts/felixwatest1","kind":"Emotion","location":"westus","name":"felixwatest1","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/emotion/v1.0","internalId":"a6bb5ff85a3b4c6eb8de8798567a78c6","provisioningState":"Succeeded"},"sku":{"name":"F0"},"tags":{"ExpiredDate":"2017/09/01","Owner":"felixwa"},"type":"Microsoft.CognitiveServices/accounts"}},"Update_Account":{"value":{"etag":"W/\"datetime'2017-04-10T07%3A46%3A21.5618831Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/bingSearch","kind":"Bing.Search","location":"global","name":"bingSearch","properties":{"endpoint":"https://api.cognitive.microsoft.com/bing/v5.0","internalId":"ceebe1e8e40f44e69554c1a759de4cf9","provisioningState":"Succeeded"},"sku":{"name":"S2"},"type":"Microsoft.CognitiveServices/accounts"}},"Create_Account":{"value":{"etag":"W/\"datetime'2017-04-10T07%3A57%3A48.4582781Z'\"","id":"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/felixwa-01/providers/Microsoft.CognitiveServices/accounts/testCreate1","kind":"Emotion","location":"West US","name":"testCreate1","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/emotion/v1.0","internalId":"9dc1c5b9bb95486aa63899acdaebd9a0","provisioningState":"Succeeded"},"sku":{"name":"S0"},"type":"Microsoft.CognitiveServices/accounts"}},"List_Keys":{"value":{"key1":"KEY1","key2":"KEY2"}},"List_SKUs":{"value":{"value":[{"resourceType":"Microsoft.CognitiveServices/accounts","sku":{"name":"F0","tier":"Free"}},{"resourceType":"Microsoft.CognitiveServices/accounts","sku":{"name":"S0","tier":"Standard"}}]}},"Get_Usages":{"value":{"value":[{"currentValue":3,"limit":30000,"name":{"localizedValue":"Face.Transactions","value":"Face.Transactions"},"nextResetTime":"2018-03-28T09:33:51Z","quotaPeriod":"30.00:00:00","status":"Included","unit":"Count"}]}}},"parameters":{"apiVersionParameter":{"description":"Version of the API to be used with the client request. Current version is 2017-04-18","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get Operations":{"value":"2017-04-18"},"List Accounts by Subscription":{"value":"2017-04-18"},"Check SKU Availability":{"value":"2017-04-18"},"Regenerate Keys":{"value":"2017-04-18"},"List Accounts by Resource Group":{"value":"2017-04-18"},"Delete Account":{"value":"2017-04-18"},"Get Account":{"value":"2017-04-18"},"Update Account":{"value":"2017-04-18"},"Create Account":{"value":"2017-04-18"},"List Keys":{"value":"2017-04-18"},"List SKUs":{"value":"2017-04-18"},"Get Usages":{"value":"2017-04-18"}}},"locationParameter":{"description":"Resource location.","in":"path","name":"location","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Check SKU Availability":{"value":"westus"}}},"subscriptionIdParameter":{"description":"Azure Subscription ID.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List Accounts by Subscription":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Check SKU Availability":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Regenerate Keys":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"List Accounts by Resource Group":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Delete Account":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Get Account":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Update Account":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Create Account":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"List Keys":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"List SKUs":{"value":"f9b96b36-1f5e-4021-8959-51527e26e6d3"},"Get Usages":{"value":"5a4f5c2e-6983-4ccb-bd34-2196d5b5bbd3"}}},"usageFilterParameter":{"description":"An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).","in":"query","name":"$filter","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}}},"requestBodies":{"CognitiveServicesAccount":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveServicesAccount"}}},"description":"The parameters to provide for the created account.","required":true}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"CheckDomainAvailabilityParameter":{"description":"Check Domain availability parameter.","properties":{"subdomainName":{"description":"The subdomain name to use.","type":"string"},"type":{"description":"The Type of the resource.","type":"string"}},"required":["subdomainName","type"]},"CheckDomainAvailabilityResult":{"description":"Check Domain availability result.","properties":{"isSubdomainAvailable":{"description":"Indicates the given SKU is available or not.","type":"boolean"},"reason":{"description":"Reason why the SKU is not available.","type":"string"},"subdomainName":{"description":"The subdomain name to use.","type":"string"},"type":{"description":"The Type of the resource.","type":"string"}}},"CheckSkuAvailabilityParameter":{"description":"Check SKU availability parameter.","properties":{"kind":{"$ref":"#/components/schemas/CognitiveServicesAccountKind"},"skus":{"description":"The SKU of the resource.","items":{"$ref":"#/components/schemas/SkuName"},"type":"array"},"type":{"description":"The Type of the resource.","type":"string"}},"required":["skus","kind","type"]},"CheckSkuAvailabilityResult":{"description":"Check SKU availability result.","properties":{"kind":{"$ref":"#/components/schemas/CognitiveServicesAccountKind"},"message":{"description":"Additional error message.","type":"string"},"reason":{"description":"Reason why the SKU is not available.","type":"string"},"skuAvailable":{"description":"Indicates the given SKU is available or not.","type":"boolean"},"skuName":{"$ref":"#/components/schemas/SkuName"},"type":{"description":"The Type of the resource.","type":"string"}}},"CheckSkuAvailabilityResultList":{"description":"Check SKU availability result list.","properties":{"value":{"description":"Check SKU availability result list.","items":{"$ref":"#/components/schemas/CheckSkuAvailabilityResult"},"type":"array"}}},"CognitiveServicesAccount":{"description":"Cognitive Services Account is an Azure resource representing the provisioned account, its type, location and SKU.","properties":{"etag":{"description":"Entity Tag","readOnly":true,"type":"string"},"id":{"description":"The id of the created account","readOnly":true,"type":"string"},"kind":{"$ref":"#/components/schemas/CognitiveServicesAccountKind"},"location":{"description":"The location of the resource","type":"string"},"name":{"description":"The name of the created account","readOnly":true,"type":"string"},"properties":{"$ref":"#/components/schemas/CognitiveServicesAccountProperties"},"sku":{"$ref":"#/components/schemas/Sku"},"tags":{"additionalProperties":{"type":"string"},"description":"Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.","type":"object"},"type":{"description":"Resource type","readOnly":true,"type":"string"}},"type":"object","x-ms-azure-resource":true},"CognitiveServicesAccountApiProperties":{"description":"The api properties for special APIs.","properties":{"eventHubConnectionString":{"description":"(Personalization Only) The flag to enable statistics of Bing Search.","maxLength":1000,"pattern":"^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$","type":"string"},"qnaRuntimeEndpoint":{"description":"(QnAMaker Only) The runtime endpoint of QnAMaker.","type":"string"},"statisticsEnabled":{"description":"(Bing Search Only) The flag to enable statistics of Bing Search.","type":"boolean"},"storageAccountConnectionString":{"description":"(Personalization Only) The storage account connection string.","maxLength":1000,"pattern":"^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$","type":"string"}}},"CognitiveServicesAccountEnumerateSkusResult":{"description":"The list of cognitive services accounts operation response.","properties":{"value":{"description":"Gets the list of Cognitive Services accounts and their properties.","items":{"$ref":"#/components/schemas/CognitiveServicesResourceAndSku"},"readOnly":true,"type":"array"}}},"CognitiveServicesAccountKeys":{"description":"The access keys for the cognitive services account.","properties":{"key1":{"description":"Gets the value of key 1.","type":"string"},"key2":{"description":"Gets the value of key 2.","type":"string"}}},"CognitiveServicesAccountKind":{"description":"Required. Indicates the type of cognitive service account.","type":"string"},"CognitiveServicesAccountListResult":{"description":"The list of cognitive services accounts operation response.","properties":{"nextLink":{"description":"The link used to get the next page of accounts.","type":"string"},"value":{"description":"Gets the list of Cognitive Services accounts and their properties.","items":{"$ref":"#/components/schemas/CognitiveServicesAccount"},"readOnly":true,"type":"array"}}},"CognitiveServicesAccountProperties":{"description":"Properties of Cognitive Services account.","properties":{"apiProperties":{"$ref":"#/components/schemas/CognitiveServicesAccountApiProperties"},"customSubDomainName":{"description":"Optional subdomain name used for token-based authentication.","type":"string"},"endpoint":{"description":"Endpoint of the created account.","readOnly":true,"type":"string"},"internalId":{"description":"The internal identifier.","readOnly":true,"type":"string"},"networkAcls":{"$ref":"#/components/schemas/NetworkRuleSet"},"provisioningState":{"description":"Gets the status of the cognitive services account at the time the operation was called.","enum":["Creating","ResolvingDNS","Moving","Deleting","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProvisioningState"}}}},"CognitiveServicesResourceAndSku":{"description":"Cognitive Services resource type and SKU.","properties":{"resourceType":{"description":"Resource Namespace and Type","type":"string"},"sku":{"$ref":"#/components/schemas/Sku"}}},"Error":{"description":"Cognitive Services error object.","properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}}},"ErrorBody":{"description":"Cognitive Services error body.","properties":{"code":{"description":"error code","type":"string"},"message":{"description":"error message","type":"string"}},"required":["code","message"]},"IpRule":{"description":"A rule governing the accessibility from a specific ip address or ip range.","properties":{"value":{"description":"An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).","type":"string"}},"required":["value"]},"MetricName":{"description":"A metric name.","properties":{"localizedValue":{"description":"The friendly name of the metric.","readOnly":true,"type":"string"},"value":{"description":"The name of the metric.","readOnly":true,"type":"string"}}},"NetworkRuleSet":{"description":"A set of rules governing the network accessibility.","properties":{"defaultAction":{"description":"The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.","enum":["Allow","Deny"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"NetworkRuleAction"}},"ipRules":{"description":"The list of IP address rules.","items":{"$ref":"#/components/schemas/IpRule"},"type":"array"},"virtualNetworkRules":{"description":"The list of virtual network rules.","items":{"$ref":"#/components/schemas/VirtualNetworkRule"},"type":"array"}}},"OperationDisplayInfo":{"description":"The operation supported by Cognitive Services.","properties":{"description":{"description":"The description of the operation.","type":"string"},"operation":{"description":"The action that users can perform, based on their permission level.","type":"string"},"provider":{"description":"Service provider: Microsoft Cognitive Services.","type":"string"},"resource":{"description":"Resource on which the operation is performed.","type":"string"}},"type":"object"},"OperationEntity":{"description":"The operation supported by Cognitive Services.","properties":{"display":{"$ref":"#/components/schemas/OperationDisplayInfo"},"name":{"description":"Operation name: {provider}/{resource}/{operation}.","type":"string"},"origin":{"description":"The origin of the operation.","type":"string"},"properties":{"description":"Additional properties.","type":"object"}},"type":"object"},"OperationEntityListResult":{"description":"The list of cognitive services accounts operation response.","properties":{"nextLink":{"description":"The link used to get the next page of operations.","type":"string"},"value":{"description":"The list of operations.","items":{"$ref":"#/components/schemas/OperationEntity"},"type":"array"}},"type":"object"},"RegenerateKeyParameters":{"description":"Regenerate key parameters.","properties":{"keyName":{"description":"key name to generate (Key1|Key2)","enum":["Key1","Key2"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"KeyName"}}},"required":["keyName"]},"ResourceSku":{"description":"Describes an available Cognitive Services SKU.","properties":{"kind":{"description":"The Kind of resources that are supported in this SKU.","readOnly":true,"type":"string"},"locations":{"description":"The set of locations that the SKU is available.","items":{"type":"string"},"readOnly":true,"type":"array"},"name":{"description":"The name of SKU.","readOnly":true,"type":"string"},"resourceType":{"description":"The type of resource the SKU applies to.","readOnly":true,"type":"string"},"restrictions":{"description":"The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.","items":{"$ref":"#/components/schemas/ResourceSkuRestrictions"},"readOnly":true,"type":"array"},"tier":{"description":"Specifies the tier of Cognitive Services account.","readOnly":true,"type":"string"}}},"ResourceSkuRestrictionInfo":{"properties":{"locations":{"description":"Locations where the SKU is restricted","items":{"type":"string"},"readOnly":true,"type":"array"},"zones":{"description":"List of availability zones where the SKU is restricted.","items":{"type":"string"},"readOnly":true,"type":"array"}}},"ResourceSkuRestrictions":{"description":"Describes restrictions of a SKU.","properties":{"reasonCode":{"description":"The reason for restriction.","enum":["QuotaId","NotAvailableForSubscription"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ResourceSkuRestrictionsReasonCode"}},"restrictionInfo":{"$ref":"#/components/schemas/ResourceSkuRestrictionInfo"},"type":{"description":"The type of restrictions.","enum":["Location","Zone"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"ResourceSkuRestrictionsType"}},"values":{"description":"The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.","items":{"type":"string"},"readOnly":true,"type":"array"}}},"ResourceSkusResult":{"description":"The Get Skus operation response.","properties":{"nextLink":{"description":"The uri to fetch the next page of Skus.","type":"string"},"value":{"description":"The list of skus available for the subscription.","items":{"$ref":"#/components/schemas/ResourceSku"},"type":"array"}},"required":["value"]},"Sku":{"description":"The SKU of the cognitive services account.","properties":{"name":{"$ref":"#/components/schemas/SkuName"},"tier":{"description":"Gets the sku tier. This is based on the SKU name.","enum":["Free","Standard","Premium"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"SkuTier"}}},"required":["name"]},"SkuName":{"description":"The name of SKU.","type":"string"},"UnitType":{"description":"The unit of the metric.","enum":["Count","Bytes","Seconds","Percent","CountPerSecond","BytesPerSecond","Milliseconds"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"UnitType"}},"Usage":{"description":"The usage data for a usage request.","properties":{"currentValue":{"description":"Current value for this metric.","format":"double","readOnly":true,"type":"number"},"limit":{"description":"Maximum value for this metric.","format":"double","readOnly":true,"type":"number"},"name":{"$ref":"#/components/schemas/MetricName"},"nextResetTime":{"description":"Next reset time for current quota.","readOnly":true,"type":"string"},"quotaPeriod":{"description":"The quota period used to summarize the usage values.","readOnly":true,"type":"string"},"status":{"description":"Cognitive Services account quota usage status.","enum":["Included","Blocked","InOverage","Unknown"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"QuotaUsageStatus"}},"unit":{"$ref":"#/components/schemas/UnitType"}}},"UsagesResult":{"description":"The response to a list usage request.","properties":{"value":{"description":"The list of usages for Cognitive Service account.","items":{"$ref":"#/components/schemas/Usage"},"readOnly":true,"type":"array"}}},"VirtualNetworkRule":{"description":"A rule governing the accessibility from a specific virtual network.","properties":{"id":{"description":"Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.","type":"string"},"ignoreMissingVnetServiceEndpoint":{"description":"Ignore missing vnet service endpoint or not.","type":"boolean"},"state":{"description":"Gets the state of virtual network rule.","type":"string"}},"required":["id"]}}}}