Share via


ProductGroupLink interface

Interface representing a ProductGroupLink.

Methods

createOrUpdate(string, string, string, string, ProductGroupLinkContract, ProductGroupLinkCreateOrUpdateOptionalParams)

Adds a group to the specified product via link.

delete(string, string, string, string, ProductGroupLinkDeleteOptionalParams)

Deletes the specified group from the specified product.

get(string, string, string, string, ProductGroupLinkGetOptionalParams)

Gets the group link for the product.

listByProduct(string, string, string, ProductGroupLinkListByProductOptionalParams)

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

Method Details

Adds a group to the specified product via link.

function createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: ProductGroupLinkCreateOrUpdateOptionalParams): Promise<ProductGroupLinkContract>

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.

groupLinkId

string

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

parameters
ProductGroupLinkContract

Create or update parameters.

options
ProductGroupLinkCreateOrUpdateOptionalParams

The options parameters.

Returns

Deletes the specified group from the specified product.

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

groupLinkId

string

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

options
ProductGroupLinkDeleteOptionalParams

The options parameters.

Returns

Promise<void>

Gets the group link for the product.

function get(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkGetOptionalParams): Promise<ProductGroupLinkGetResponse>

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.

groupLinkId

string

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

options
ProductGroupLinkGetOptionalParams

The options parameters.

Returns

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

function listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator<ProductGroupLinkContract, ProductGroupLinkContract[], 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
ProductGroupLinkListByProductOptionalParams

The options parameters.

Returns