Skip to main content

graph_ql_api_resolver_policies

Creates, updates, deletes, gets or lists a graph_ql_api_resolver_policies resource.

Overview

Namegraph_ql_api_resolver_policies
TypeResource
Idazure.api_management.graph_ql_api_resolver_policies

Fields

The following fields are returned by SELECT queries:

GraphQL Api Resolver Policy information.

NameDatatypeDescription
propertiesobjectProperties of the Policy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, apiId, resolverId, policyId, subscriptionIdformatGet the policy configuration at the GraphQL API Resolver level.
list_by_resolverselectresourceGroupName, serviceName, apiId, resolverId, subscriptionIdGet the list of policy configuration at the GraphQL API Resolver level.
create_or_updateinsertresourceGroupName, serviceName, apiId, resolverId, policyId, subscriptionIdIf-MatchCreates or updates policy configuration for the GraphQL API Resolver level.
deletedeleteresourceGroupName, serviceName, apiId, resolverId, policyId, If-Match, subscriptionIdDeletes 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.

NameDatatypeDescription
If-MatchstringETag 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.
apiIdstringAPI 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.
policyIdstringThe identifier of the Policy.
resolverIdstringResolver identifier within a GraphQL API. Must be unique in the current API Management service instance.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.
formatstringPolicy Export Format.

SELECT examples

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 }}'
;

INSERT examples

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
;

DELETE examples

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
;