Skip to main content

workspace_product_api_link

Creates, updates, deletes, gets or lists a workspace_product_api_link resource.

Overview

Nameworkspace_product_api_link
TypeResource
Idazure.api_management.workspace_product_api_link

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
apiIdstringFull resource Id of an API. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, workspace_id, product_id, api_link_id, subscription_idGets the API link for the product.
list_by_productselectresource_group_name, service_name, workspace_id, product_id, subscription_id$filter, $top, $skipLists a collection of the API links associated with a product.
create_or_updateinsertresource_group_name, service_name, workspace_id, product_id, api_link_id, subscription_idAdds an API to the specified product via link.
create_or_updatereplaceresource_group_name, service_name, workspace_id, product_id, api_link_id, subscription_idAdds an API to the specified product via link.
deletedeleteresource_group_name, service_name, workspace_id, product_id, api_link_id, subscription_idDeletes the specified API from the specified product.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
product_idstringProduct identifier. Must be unique in the current API Management service instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
workspace_idstringWorkspace identifier. Must be unique in the current API Management service instance. Required.
$filterstring| Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Gets the API link for the product.

SELECT
id,
name,
apiId,
systemData,
type
FROM azure.api_management.workspace_product_api_link
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
AND product_id = '{{ product_id }}' -- required
AND api_link_id = '{{ api_link_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Adds an API to the specified product via link.

INSERT INTO azure.api_management.workspace_product_api_link (
properties,
resource_group_name,
service_name,
workspace_id,
product_id,
api_link_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ workspace_id }}',
'{{ product_id }}',
'{{ api_link_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Adds an API to the specified product via link.

REPLACE azure.api_management.workspace_product_api_link
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND product_id = '{{ product_id }}' --required
AND api_link_id = '{{ api_link_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the specified API from the specified product.

DELETE FROM azure.api_management.workspace_product_api_link
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND product_id = '{{ product_id }}' --required
AND api_link_id = '{{ api_link_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;