Share via


AccountConnections interface

Interface representing a AccountConnections.

Methods

create(string, string, string, AccountConnectionsCreateOptionalParams)

Create or update Cognitive Services account connection under the specified account.

delete(string, string, string, AccountConnectionsDeleteOptionalParams)

Delete Cognitive Services account connection by name.

get(string, string, string, AccountConnectionsGetOptionalParams)

Lists Cognitive Services account connection by name.

list(string, string, AccountConnectionsListOptionalParams)

Lists all the available Cognitive Services account connections under the specified account.

update(string, string, string, AccountConnectionsUpdateOptionalParams)

Update Cognitive Services account connection under the specified account.

Method Details

create(string, string, string, AccountConnectionsCreateOptionalParams)

Create or update Cognitive Services account connection under the specified account.

function create(resourceGroupName: string, accountName: string, connectionName: string, options?: AccountConnectionsCreateOptionalParams): Promise<ConnectionPropertiesV2BasicResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

The name of Cognitive Services account.

connectionName

string

Friendly name of the connection

options
AccountConnectionsCreateOptionalParams

The options parameters.

Returns

delete(string, string, string, AccountConnectionsDeleteOptionalParams)

Delete Cognitive Services account connection by name.

function delete(resourceGroupName: string, accountName: string, connectionName: string, options?: AccountConnectionsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

The name of Cognitive Services account.

connectionName

string

Friendly name of the connection

options
AccountConnectionsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, AccountConnectionsGetOptionalParams)

Lists Cognitive Services account connection by name.

function get(resourceGroupName: string, accountName: string, connectionName: string, options?: AccountConnectionsGetOptionalParams): Promise<ConnectionPropertiesV2BasicResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

The name of Cognitive Services account.

connectionName

string

Friendly name of the connection

options
AccountConnectionsGetOptionalParams

The options parameters.

Returns

list(string, string, AccountConnectionsListOptionalParams)

Lists all the available Cognitive Services account connections under the specified account.

function list(resourceGroupName: string, accountName: string, options?: AccountConnectionsListOptionalParams): PagedAsyncIterableIterator<ConnectionPropertiesV2BasicResource, ConnectionPropertiesV2BasicResource[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

The name of Cognitive Services account.

options
AccountConnectionsListOptionalParams

The options parameters.

Returns

update(string, string, string, AccountConnectionsUpdateOptionalParams)

Update Cognitive Services account connection under the specified account.

function update(resourceGroupName: string, accountName: string, connectionName: string, options?: AccountConnectionsUpdateOptionalParams): Promise<ConnectionPropertiesV2BasicResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

The name of Cognitive Services account.

connectionName

string

Friendly name of the connection

options
AccountConnectionsUpdateOptionalParams

The options parameters.

Returns