product_api_links
Creates, updates, deletes, gets or lists a product_api_links
resource.
Overview
Name | product_api_links |
Type | Resource |
Id | azure.api_management.product_api_links |
Fields
- vw_product_api_links
- product_api_links
Name | Datatype | Description |
---|---|---|
apiLinkId | text | field from the properties object |
api_id | text | field from the properties object |
productId | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Product-API link entity properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiLinkId, productId, resourceGroupName, serviceName, subscriptionId | Gets the API link for the product. |
list_by_product | SELECT | productId, resourceGroupName, serviceName, subscriptionId | Lists a collection of the API links associated with a product. |
create_or_update | INSERT | apiLinkId, productId, resourceGroupName, serviceName, subscriptionId | Adds an API to the specified product via link. |
delete | DELETE | apiLinkId, productId, resourceGroupName, serviceName, subscriptionId | Deletes the specified API from the specified product. |
SELECT
examples
Lists a collection of the API links associated with a product.
- vw_product_api_links
- product_api_links
SELECT
apiLinkId,
api_id,
productId,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_product_api_links
WHERE productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.api_management.product_api_links
WHERE productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new product_api_links
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.product_api_links (
apiLinkId,
productId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apiLinkId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: apiId
value: string
DELETE
example
Deletes the specified product_api_links
resource.
/*+ delete */
DELETE FROM azure.api_management.product_api_links
WHERE apiLinkId = '{{ apiLinkId }}'
AND productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';