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
- vw_graph_ql_api_resolver_policies
- graph_ql_api_resolver_policies
Name | Datatype | Description |
---|---|---|
apiId | text | field from the properties object |
format | text | field from the properties object |
policyId | text | field from the properties object |
resolverId | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
value | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Policy contract Properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiId, policyId, resolverId, resourceGroupName, serviceName, subscriptionId | Get the policy configuration at the GraphQL API Resolver level. |
list_by_resolver | SELECT | apiId, resolverId, resourceGroupName, serviceName, subscriptionId | Get the list of policy configuration at the GraphQL API Resolver level. |
create_or_update | INSERT | apiId, policyId, resolverId, resourceGroupName, serviceName, subscriptionId | Creates or updates policy configuration for the GraphQL API Resolver level. |
delete | DELETE | If-Match, apiId, policyId, resolverId, resourceGroupName, serviceName, subscriptionId | Deletes the policy configuration at the GraphQL Api Resolver. |
SELECT
examples
Get the list of policy configuration at the GraphQL API Resolver level.
- vw_graph_ql_api_resolver_policies
- graph_ql_api_resolver_policies
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: value
value: string
- name: format
value: string
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 }}';