product_wiki
Creates, updates, deletes, gets or lists a product_wiki resource.
Overview
| Name | product_wiki |
| Type | Resource |
| Id | azure.api_management.product_wiki |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
documents | array | Collection wiki documents included into this wiki. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, service_name, product_id, subscription_id | Gets the details of the Wiki for a Product specified by its identifier. | |
create_or_update | insert | resource_group_name, service_name, product_id, subscription_id | Creates a new Wiki for a Product or updates an existing one. | |
update | update | resource_group_name, service_name, product_id, subscription_id | Updates the details of the Wiki for a Product specified by its identifier. | |
create_or_update | replace | resource_group_name, service_name, product_id, subscription_id | Creates a new Wiki for a Product or updates an existing one. | |
delete | delete | resource_group_name, service_name, product_id, subscription_id | Deletes the specified Wiki from a Product. | |
get_entity_tag | exec | resource_group_name, service_name, product_id, subscription_id | Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. |
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 |
|---|---|---|
product_id | string | Product identifier. Must be unique in the current API Management service instance. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
service_name | string | The name of the API Management service. Required. |
subscription_id | string |
SELECT examples
- get
Gets the details of the Wiki for a Product specified by its identifier.
SELECT
id,
name,
documents,
systemData,
type
FROM azure.api_management.product_wiki
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND product_id = '{{ product_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates a new Wiki for a Product or updates an existing one.
INSERT INTO azure.api_management.product_wiki (
properties,
resource_group_name,
service_name,
product_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ product_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: product_wiki
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the product_wiki resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the product_wiki resource.
- name: product_id
value: "{{ product_id }}"
description: Required parameter for the product_wiki resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the product_wiki resource.
- name: properties
description: |
Wiki details.
value:
documents:
- documentationId: "{{ documentationId }}"
UPDATE examples
- update
Updates the details of the Wiki for a Product specified by its identifier.
UPDATE azure.api_management.product_wiki
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND product_id = '{{ product_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
REPLACE examples
- create_or_update
Creates a new Wiki for a Product or updates an existing one.
REPLACE azure.api_management.product_wiki
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND product_id = '{{ product_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Deletes the specified Wiki from a Product.
DELETE FROM azure.api_management.product_wiki
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND product_id = '{{ product_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- get_entity_tag
Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier.
EXEC azure.api_management.product_wiki.get_entity_tag
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@product_id='{{ product_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;