Backend interface

Interface representing a Backend.

Methods

createOrUpdate(string, string, string, BackendContract, BackendCreateOrUpdateOptionalParams)

Creates or Updates a backend.

delete(string, string, string, string, BackendDeleteOptionalParams)

Deletes the specified backend.

get(string, string, string, BackendGetOptionalParams)

Gets the details of the backend specified by its identifier.

getEntityTag(string, string, string, BackendGetEntityTagOptionalParams)

Gets the entity state (Etag) version of the backend specified by its identifier.

listByService(string, string, BackendListByServiceOptionalParams)

Lists a collection of backends in the specified service instance.

reconnect(string, string, string, BackendReconnectOptionalParams)

Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.

update(string, string, string, string, BackendUpdateParameters, BackendUpdateOptionalParams)

Updates an existing backend.

Method Details

createOrUpdate(string, string, string, BackendContract, BackendCreateOrUpdateOptionalParams)

Creates or Updates a backend.

function createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: BackendContract, options?: BackendCreateOrUpdateOptionalParams): Promise<BackendCreateOrUpdateResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

backendId

string

Identifier of the Backend entity. Must be unique in the current API Management service instance.

parameters
BackendContract

Create parameters.

options
BackendCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, string, BackendDeleteOptionalParams)

Deletes the specified backend.

function delete(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options?: BackendDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

backendId

string

Identifier of the Backend entity. Must be unique in the current API Management service instance.

ifMatch

string

ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

options
BackendDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, BackendGetOptionalParams)

Gets the details of the backend specified by its identifier.

function get(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetOptionalParams): Promise<BackendGetResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

backendId

string

Identifier of the Backend entity. Must be unique in the current API Management service instance.

options
BackendGetOptionalParams

The options parameters.

Returns

getEntityTag(string, string, string, BackendGetEntityTagOptionalParams)

Gets the entity state (Etag) version of the backend specified by its identifier.

function getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetEntityTagOptionalParams): Promise<BackendGetEntityTagHeaders>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

backendId

string

Identifier of the Backend entity. Must be unique in the current API Management service instance.

options
BackendGetEntityTagOptionalParams

The options parameters.

Returns

listByService(string, string, BackendListByServiceOptionalParams)

Lists a collection of backends in the specified service instance.

function listByService(resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams): PagedAsyncIterableIterator<BackendContract, BackendContract[], PageSettings>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

options
BackendListByServiceOptionalParams

The options parameters.

Returns

reconnect(string, string, string, BackendReconnectOptionalParams)

Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.

function reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendReconnectOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

backendId

string

Identifier of the Backend entity. Must be unique in the current API Management service instance.

options
BackendReconnectOptionalParams

The options parameters.

Returns

Promise<void>

update(string, string, string, string, BackendUpdateParameters, BackendUpdateOptionalParams)

Updates an existing backend.

function update(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, parameters: BackendUpdateParameters, options?: BackendUpdateOptionalParams): Promise<BackendUpdateResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

backendId

string

Identifier of the Backend entity. Must be unique in the current API Management service instance.

ifMatch

string

ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

parameters
BackendUpdateParameters

Update parameters.

options
BackendUpdateOptionalParams

The options parameters.

Returns