content_items
Creates, updates, deletes, gets or lists a content_items
resource.
Overview
Name | content_items |
Type | Resource |
Id | azure.api_management.content_items |
Fields
- vw_content_items
- content_items
Name | Datatype | Description |
---|---|---|
contentItemId | text | field from the properties object |
contentTypeId | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | contentItemId, contentTypeId, resourceGroupName, serviceName, subscriptionId | Returns the developer portal's content item specified by its identifier. |
list_by_service | SELECT | contentTypeId, resourceGroupName, serviceName, subscriptionId | Lists developer portal's content items specified by the provided content type. |
create_or_update | INSERT | contentItemId, contentTypeId, resourceGroupName, serviceName, subscriptionId | Creates a new developer portal's content item specified by the provided content type. |
delete | DELETE | If-Match, contentItemId, contentTypeId, resourceGroupName, serviceName, subscriptionId | Removes the specified developer portal's content item. |
SELECT
examples
Lists developer portal's content items specified by the provided content type.
- vw_content_items
- content_items
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.content_items (
contentItemId,
contentTypeId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ contentItemId }}',
'{{ contentTypeId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value: []
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 }}';