Accounts interface
Interface representing a Accounts.
begin |
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. |
begin |
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. |
begin |
Deletes a Cognitive Services account from the resource group. |
begin |
Deletes a Cognitive Services account from the resource group. |
begin |
Updates a Cognitive Services account |
begin |
Updates a Cognitive Services account |
get(string, string, Accounts |
Returns a Cognitive Services account specified by the parameters. |
list(Accounts |
Returns all the resources of a particular type belonging to a subscription. |
list |
Returns all the resources of a particular type belonging to a resource group |
list |
Lists the account keys for the specified Cognitive Services account. |
list |
List available Models for the requested Cognitive Services account |
list |
List available SKUs for the requested Cognitive Services account |
list |
Get usages for the requested Cognitive Services account |
regenerate |
Regenerates the specified account key for the specified Cognitive Services account. |
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.
function beginCreate(resourceGroupName: string, accountName: string, account: Account, options?: AccountsCreateOptionalParams): Promise<SimplePollerLike<OperationState<Account>, Account>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- account
- Account
The parameters to provide for the created account.
- options
- AccountsCreateOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<Account>, Account>>
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.
function beginCreateAndWait(resourceGroupName: string, accountName: string, account: Account, options?: AccountsCreateOptionalParams): Promise<Account>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- account
- Account
The parameters to provide for the created account.
- options
- AccountsCreateOptionalParams
The options parameters.
Returns
Promise<Account>
Deletes a Cognitive Services account from the resource group.
function beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsDeleteOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
Deletes a Cognitive Services account from the resource group.
function beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsDeleteOptionalParams
The options parameters.
Returns
Promise<void>
Updates a Cognitive Services account
function beginUpdate(resourceGroupName: string, accountName: string, account: Account, options?: AccountsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Account>, Account>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- account
- Account
The parameters to provide for the created account.
- options
- AccountsUpdateOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<Account>, Account>>
Updates a Cognitive Services account
function beginUpdateAndWait(resourceGroupName: string, accountName: string, account: Account, options?: AccountsUpdateOptionalParams): Promise<Account>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- account
- Account
The parameters to provide for the created account.
- options
- AccountsUpdateOptionalParams
The options parameters.
Returns
Promise<Account>
Returns a Cognitive Services account specified by the parameters.
function get(resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise<Account>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsGetOptionalParams
The options parameters.
Returns
Promise<Account>
Returns all the resources of a particular type belonging to a subscription.
function list(options?: AccountsListOptionalParams): PagedAsyncIterableIterator<Account, Account[], PageSettings>
Parameters
- options
- AccountsListOptionalParams
The options parameters.
Returns
Returns all the resources of a particular type belonging to a resource group
function listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Account, Account[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.
Returns
Lists the account keys for the specified Cognitive Services account.
function listKeys(resourceGroupName: string, accountName: string, options?: AccountsListKeysOptionalParams): Promise<ApiKeys>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsListKeysOptionalParams
The options parameters.
Returns
Promise<ApiKeys>
List available Models for the requested Cognitive Services account
function listModels(resourceGroupName: string, accountName: string, options?: AccountsListModelsOptionalParams): PagedAsyncIterableIterator<AccountModel, AccountModel[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsListModelsOptionalParams
The options parameters.
Returns
List available SKUs for the requested Cognitive Services account
function listSkus(resourceGroupName: string, accountName: string, options?: AccountsListSkusOptionalParams): Promise<AccountSkuListResult>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsListSkusOptionalParams
The options parameters.
Returns
Promise<AccountSkuListResult>
Get usages for the requested Cognitive Services account
function listUsages(resourceGroupName: string, accountName: string, options?: AccountsListUsagesOptionalParams): Promise<UsageListResult>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- AccountsListUsagesOptionalParams
The options parameters.
Returns
Promise<UsageListResult>
Regenerates the specified account key for the specified Cognitive Services account.
function regenerateKey(resourceGroupName: string, accountName: string, keyName: KeyName, options?: AccountsRegenerateKeyOptionalParams): Promise<ApiKeys>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- keyName
- KeyName
key name to generate (Key1|Key2)
The options parameters.
Returns
Promise<ApiKeys>