Skip to main content

content_items

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

Overview

Namecontent_items
TypeResource
Idazure.api_management.content_items

Fields

The following fields are returned by SELECT queries:

Returns the content item.

NameDatatypeDescription
propertiesobjectProperties of the content item.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, contentTypeId, contentItemId, subscriptionIdReturns the developer portal's content item specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, contentTypeId, subscriptionIdLists developer portal's content items specified by the provided content type.
create_or_updateinsertresourceGroupName, serviceName, contentTypeId, contentItemId, subscriptionIdIf-MatchCreates a new developer portal's content item specified by the provided content type.
deletedeleteresourceGroupName, serviceName, contentTypeId, contentItemId, If-Match, subscriptionIdRemoves the specified developer portal's content item.

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
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
contentItemIdstringContent item identifier.
contentTypeIdstringContent type identifier.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

Returns the developer portal's content item specified by its identifier.

SELECT
properties
FROM azure.api_management.content_items
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND contentTypeId = '{{ contentTypeId }}' -- required
AND contentItemId = '{{ contentItemId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new developer portal's content item specified by the provided content type.

INSERT INTO azure.api_management.content_items (
data__properties,
resourceGroupName,
serviceName,
contentTypeId,
contentItemId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ contentTypeId }}',
'{{ contentItemId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

DELETE examples

Removes the specified developer portal's content item.

DELETE FROM azure.api_management.content_items
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND contentTypeId = '{{ contentTypeId }}' --required
AND contentItemId = '{{ contentItemId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;