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
The following fields are returned by SELECT
queries:
- list_by_product
The response body contains a collection of Api entities in the product.
Name | Datatype | Description |
---|---|---|
properties | object | API entity contract properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_by_product | select | resourceGroupName , serviceName , productId , subscriptionId | $filter , $top , $skip | Lists a collection of the APIs associated with a product. |
create_or_update | insert | resourceGroupName , serviceName , productId , apiId , subscriptionId | Adds an API to the specified product. | |
delete | delete | resourceGroupName , serviceName , productId , apiId , subscriptionId | Deletes 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.
Name | Datatype | Description |
---|---|---|
apiId | string | API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. |
productId | string | Product identifier. Must be unique in the current API Management service instance. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serviceName | string | The name of the API Management service. |
subscriptionId | string | The ID of the target subscription. |
$filter | string | | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br> |
$skip | integer (int32) | Number of records to skip. |
$top | integer (int32) | Number of records to return. |
SELECT
examples
- list_by_product
Lists a collection of the APIs associated with a product.
SELECT
properties
FROM azure.api_management.product_apis
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND productId = '{{ productId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;
INSERT
examples
- create_or_update
- Manifest
Adds an API to the specified product.
INSERT INTO azure.api_management.product_apis (
resourceGroupName,
serviceName,
productId,
apiId,
subscriptionId
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ productId }}',
'{{ apiId }}',
'{{ subscriptionId }}'
RETURNING
properties
;
# Description fields are for documentation purposes
- name: product_apis
props:
- name: resourceGroupName
value: string
description: Required parameter for the product_apis resource.
- name: serviceName
value: string
description: Required parameter for the product_apis resource.
- name: productId
value: string
description: Required parameter for the product_apis resource.
- name: apiId
value: string
description: Required parameter for the product_apis resource.
- name: subscriptionId
value: string
description: Required parameter for the product_apis resource.
DELETE
examples
- delete
Deletes the specified API from the specified product.
DELETE FROM azure.api_management.product_apis
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND productId = '{{ productId }}' --required
AND apiId = '{{ apiId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;