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

NameDatatypeDescription
apiIdtextfield from the properties object
formattextfield from the properties object
policyIdtextfield from the properties object
resolverIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
valuetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, policyId, resolverId, resourceGroupName, serviceName, subscriptionIdGet the policy configuration at the GraphQL API Resolver level.
list_by_resolverSELECTapiId, resolverId, resourceGroupName, serviceName, subscriptionIdGet the list of policy configuration at the GraphQL API Resolver level.
create_or_updateINSERTapiId, policyId, resolverId, resourceGroupName, serviceName, subscriptionIdCreates or updates policy configuration for the GraphQL API Resolver level.
deleteDELETEIf-Match, apiId, policyId, resolverId, resourceGroupName, serviceName, subscriptionIdDeletes the policy configuration at the GraphQL Api Resolver.

SELECT examples

Get the list of policy configuration at the GraphQL API Resolver level.

SELECT
apiId,
format,
policyId,
resolverId,
resourceGroupName,
serviceName,
subscriptionId,
value
FROM azure.api_management.vw_graph_ql_api_resolver_policies
WHERE apiId = '{{ apiId }}'
AND resolverId = '{{ resolverId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new graph_ql_api_resolver_policies resource.

/*+ create */
INSERT INTO azure.api_management.graph_ql_api_resolver_policies (
apiId,
policyId,
resolverId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apiId }}',
'{{ policyId }}',
'{{ resolverId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified graph_ql_api_resolver_policies resource.

/*+ delete */
DELETE FROM azure.api_management.graph_ql_api_resolver_policies
WHERE If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND policyId = '{{ policyId }}'
AND resolverId = '{{ resolverId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';