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

NameDatatypeDescription
contentItemIdtextfield from the properties object
contentTypeIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcontentItemId, contentTypeId, resourceGroupName, serviceName, subscriptionIdReturns the developer portal's content item specified by its identifier.
list_by_serviceSELECTcontentTypeId, resourceGroupName, serviceName, subscriptionIdLists developer portal's content items specified by the provided content type.
create_or_updateINSERTcontentItemId, contentTypeId, resourceGroupName, serviceName, subscriptionIdCreates a new developer portal's content item specified by the provided content type.
deleteDELETEIf-Match, contentItemId, contentTypeId, resourceGroupName, serviceName, subscriptionIdRemoves the specified developer portal's content item.

SELECT examples

Lists developer portal's content items specified by the provided content type.

SELECT
contentItemId,
contentTypeId,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_content_items
WHERE contentTypeId = '{{ contentTypeId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new content_items resource.

/*+ create */
INSERT INTO azure.api_management.content_items (
contentItemId,
contentTypeId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ contentItemId }}',
'{{ contentTypeId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified content_items resource.

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