product_apis
Creates, updates, deletes, gets or lists a product_apis
resource.
Overview
Name | product_apis |
Type | Resource |
Id | azure.api_management.product_apis |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | API Entity Properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_product | SELECT | productId, resourceGroupName, serviceName, subscriptionId | Lists a collection of the APIs associated with a product. |
create_or_update | INSERT | apiId, productId, resourceGroupName, serviceName, subscriptionId | Adds an API to the specified product. |
delete | DELETE | apiId, productId, resourceGroupName, serviceName, subscriptionId | Deletes the specified API from the specified product. |
SELECT
examples
Lists a collection of the APIs associated with a product.
SELECT
properties
FROM azure.api_management.product_apis
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_apis
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.product_apis (
apiId,
productId,
resourceGroupName,
serviceName,
subscriptionId
)
SELECT
'{{ apiId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified product_apis
resource.
/*+ delete */
DELETE FROM azure.api_management.product_apis
WHERE apiId = '{{ apiId }}'
AND productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';