graph_ql_api_resolver_policies
Creates, updates, deletes, gets or lists a graph_ql_api_resolver_policies
resource.
Overview
Name | graph_ql_api_resolver_policies |
Type | Resource |
Id | azure.api_management.graph_ql_api_resolver_policies |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_resolver
GraphQL Api Resolver Policy information.
Name | Datatype | Description |
---|---|---|
properties | object | Properties of the Policy. |
GraphQL Api Resolvers Policy Collection.
Name | Datatype | Description |
---|---|---|
properties | object | Properties of the Policy. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serviceName , apiId , resolverId , policyId , subscriptionId | format | Get the policy configuration at the GraphQL API Resolver level. |
list_by_resolver | select | resourceGroupName , serviceName , apiId , resolverId , subscriptionId | Get the list of policy configuration at the GraphQL API Resolver level. | |
create_or_update | insert | resourceGroupName , serviceName , apiId , resolverId , policyId , subscriptionId | If-Match | Creates or updates policy configuration for the GraphQL API Resolver level. |
delete | delete | resourceGroupName , serviceName , apiId , resolverId , policyId , If-Match , subscriptionId | Deletes the policy configuration at the GraphQL Api Resolver. |
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 |
---|---|---|
If-Match | string | ETag 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. |
apiId | 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. |
policyId | string | The identifier of the Policy. |
resolverId | string | Resolver identifier within a GraphQL API. Must be unique in the current API Management service instance. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serviceName | string | The name of the API Management service. |
subscriptionId | string | The ID of the target subscription. |
If-Match | string | ETag of the Entity. Not required when creating an entity, but required when updating an entity. |
format | string | Policy Export Format. |
SELECT
examples
- get
- list_by_resolver
Get the policy configuration at the GraphQL API Resolver level.
SELECT
properties
FROM azure.api_management.graph_ql_api_resolver_policies
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND apiId = '{{ apiId }}' -- required
AND resolverId = '{{ resolverId }}' -- required
AND policyId = '{{ policyId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND format = '{{ format }}'
;
Get the list of policy configuration at the GraphQL API Resolver level.
SELECT
properties
FROM azure.api_management.graph_ql_api_resolver_policies
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND apiId = '{{ apiId }}' -- required
AND resolverId = '{{ resolverId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- 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_policies (
data__properties,
resourceGroupName,
serviceName,
apiId,
resolverId,
policyId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ apiId }}',
'{{ resolverId }}',
'{{ policyId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;
# Description fields are for documentation purposes
- name: graph_ql_api_resolver_policies
props:
- name: resourceGroupName
value: string
description: Required parameter for the graph_ql_api_resolver_policies resource.
- name: serviceName
value: string
description: Required parameter for the graph_ql_api_resolver_policies resource.
- name: apiId
value: string
description: Required parameter for the graph_ql_api_resolver_policies resource.
- name: resolverId
value: string
description: Required parameter for the graph_ql_api_resolver_policies resource.
- name: policyId
value: string
description: Required parameter for the graph_ql_api_resolver_policies resource.
- name: subscriptionId
value: string
description: Required parameter for the graph_ql_api_resolver_policies resource.
- name: properties
value: object
description: |
Properties of the Policy.
- name: If-Match
value: string
description: ETag of the Entity. Not required when creating an entity, but required when updating an entity.
DELETE
examples
- delete
Deletes the policy configuration at the GraphQL Api Resolver.
DELETE FROM azure.api_management.graph_ql_api_resolver_policies
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND apiId = '{{ apiId }}' --required
AND resolverId = '{{ resolverId }}' --required
AND policyId = '{{ policyId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;