Skip to main content

workspace_product_api_links

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

Overview

Nameworkspace_product_api_links
TypeResource
Idazure.api_management.workspace_product_api_links

Fields

NameDatatypeDescription
apiLinkIdtextfield from the properties object
api_idtextfield from the properties object
productIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the API link for the product.
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of the API links associated with a product.
create_or_updateINSERTapiLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdAdds an API to the specified product via link.
deleteDELETEapiLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the specified API from the specified product.

SELECT examples

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

SELECT
apiLinkId,
api_id,
productId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId
FROM azure.api_management.vw_workspace_product_api_links
WHERE productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

Use the following StackQL query and manifest file to create a new workspace_product_api_links resource.

/*+ create */
INSERT INTO azure.api_management.workspace_product_api_links (
apiLinkId,
productId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ apiLinkId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified workspace_product_api_links resource.

/*+ delete */
DELETE FROM azure.api_management.workspace_product_api_links
WHERE apiLinkId = '{{ apiLinkId }}'
AND productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';