Share via


ProductApiLink interface

Interface representing a ProductApiLink.

Method Details

Adds an API to the specified product via link.

function createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: ProductApiLinkCreateOrUpdateOptionalParams): Promise<ProductApiLinkContract>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

productId

string

Product identifier. Must be unique in the current API Management service instance.

apiLinkId

string

Product-API link identifier. Must be unique in the current API Management service instance.

parameters
ProductApiLinkContract

Create or update parameters.

options
ProductApiLinkCreateOrUpdateOptionalParams

The options parameters.

Returns

Deletes the specified API from the specified product.

function delete(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkDeleteOptionalParams): 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.

productId

string

Product identifier. Must be unique in the current API Management service instance.

apiLinkId

string

Product-API link identifier. Must be unique in the current API Management service instance.

options
ProductApiLinkDeleteOptionalParams

The options parameters.

Returns

Promise<void>

Gets the API link for the product.

function get(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkGetOptionalParams): Promise<ProductApiLinkGetResponse>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

productId

string

Product identifier. Must be unique in the current API Management service instance.

apiLinkId

string

Product-API link identifier. Must be unique in the current API Management service instance.

options
ProductApiLinkGetOptionalParams

The options parameters.

Returns

Lists a collection of the API links associated with a product.

function listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator<ProductApiLinkContract, ProductApiLinkContract[], PageSettings>

Parameters

resourceGroupName

string

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

serviceName

string

The name of the API Management service.

productId

string

Product identifier. Must be unique in the current API Management service instance.

options
ProductApiLinkListByProductOptionalParams

The options parameters.

Returns