Skip to main content

product_apis

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

Overview

Nameproduct_apis
TypeResource
Idazure.api_management.product_apis

Fields

The following fields are returned by SELECT queries:

The response body contains a collection of Api entities in the product.

NameDatatypeDescription
propertiesobjectAPI entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_productselectresourceGroupName, serviceName, productId, subscriptionId$filter, $top, $skipLists a collection of the APIs associated with a product.
create_or_updateinsertresourceGroupName, serviceName, productId, apiId, subscriptionIdAdds an API to the specified product.
deletedeleteresourceGroupName, serviceName, productId, apiId, subscriptionIdDeletes 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
apiIdstringAPI 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.
productIdstringProduct identifier. Must be unique in the current API Management service instance.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
$filterstring| 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>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.

SELECT examples

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

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
;

DELETE examples

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
;