graph_ql_api_resolver_policy
Creates, updates, deletes, gets or lists a graph_ql_api_resolver_policy resource.
Overview
| Name | graph_ql_api_resolver_policy |
| Type | Resource |
| Id | azure.api_management.graph_ql_api_resolver_policy |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resolver
| 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. |
format | string | Format of the policyContent. Known values are: "xml", "xml-link", "rawxml", and "rawxml-link". (xml, xml-link, rawxml, rawxml-link) |
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". |
value | string | Contents of the Policy as defined by the format. Required. |
| 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. |
format | string | Format of the policyContent. Known values are: "xml", "xml-link", "rawxml", and "rawxml-link". (xml, xml-link, rawxml, rawxml-link) |
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". |
value | string | Contents of the Policy as defined by the format. Required. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, service_name, api_id, resolver_id, policy_id, subscription_id | format | Get the policy configuration at the GraphQL API Resolver level. |
list_by_resolver | select | resource_group_name, service_name, api_id, resolver_id, subscription_id | Get the list of policy configuration at the GraphQL API Resolver level. | |
create_or_update | insert | resource_group_name, service_name, api_id, resolver_id, policy_id, subscription_id | Creates or updates policy configuration for the GraphQL API Resolver level. | |
create_or_update | replace | resource_group_name, service_name, api_id, resolver_id, policy_id, subscription_id | Creates or updates policy configuration for the GraphQL API Resolver level. | |
delete | delete | resource_group_name, service_name, api_id, resolver_id, policy_id, subscription_id | Deletes the policy configuration at the GraphQL Api Resolver. | |
get_entity_tag | exec | resource_group_name, service_name, api_id, resolver_id, policy_id, subscription_id | Gets the entity state (Etag) version of the GraphQL API resolver policy 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 |
|---|---|---|
api_id | string | API 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. Required. |
policy_id | string | The identifier of the Policy. "policy" Required. |
resolver_id | string | Resolver identifier within a GraphQL API. 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 | |
format | string | Policy Export Format. Known values are: "xml" and "rawxml". Default value is None. |
SELECT examples
- get
- list_by_resolver
Get the policy configuration at the GraphQL API Resolver level.
SELECT
id,
name,
format,
systemData,
type,
value
FROM azure.api_management.graph_ql_api_resolver_policy
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND api_id = '{{ api_id }}' -- required
AND resolver_id = '{{ resolver_id }}' -- required
AND policy_id = '{{ policy_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND format = '{{ format }}'
;
Get the list of policy configuration at the GraphQL API Resolver level.
SELECT
id,
name,
format,
systemData,
type,
value
FROM azure.api_management.graph_ql_api_resolver_policy
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND api_id = '{{ api_id }}' -- required
AND resolver_id = '{{ resolver_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates policy configuration for the GraphQL API Resolver level.
INSERT INTO azure.api_management.graph_ql_api_resolver_policy (
properties,
resource_group_name,
service_name,
api_id,
resolver_id,
policy_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ api_id }}',
'{{ resolver_id }}',
'{{ policy_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: graph_ql_api_resolver_policy
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the graph_ql_api_resolver_policy resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the graph_ql_api_resolver_policy resource.
- name: api_id
value: "{{ api_id }}"
description: Required parameter for the graph_ql_api_resolver_policy resource.
- name: resolver_id
value: "{{ resolver_id }}"
description: Required parameter for the graph_ql_api_resolver_policy resource.
- name: policy_id
value: "{{ policy_id }}"
description: Required parameter for the graph_ql_api_resolver_policy resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the graph_ql_api_resolver_policy resource.
- name: properties
description: |
Properties of the Policy.
value:
value: "{{ value }}"
format: "{{ format }}"
REPLACE examples
- create_or_update
Creates or updates policy configuration for the GraphQL API Resolver level.
REPLACE azure.api_management.graph_ql_api_resolver_policy
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND api_id = '{{ api_id }}' --required
AND resolver_id = '{{ resolver_id }}' --required
AND policy_id = '{{ policy_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Deletes the policy configuration at the GraphQL Api Resolver.
DELETE FROM azure.api_management.graph_ql_api_resolver_policy
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND api_id = '{{ api_id }}' --required
AND resolver_id = '{{ resolver_id }}' --required
AND policy_id = '{{ policy_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- get_entity_tag
Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier.
EXEC azure.api_management.graph_ql_api_resolver_policy.get_entity_tag
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@api_id='{{ api_id }}' --required,
@resolver_id='{{ resolver_id }}' --required,
@policy_id='{{ policy_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;