Graph QL Api Resolver Policy - List By Resolver
Haal de lijst met beleidsconfiguraties op het niveau van de GraphQL API Resolver op.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies?api-version=2024-05-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
api
|
path | True |
string minLength: 1maxLength: 256 pattern: ^[^*#&+:<>?]+$ |
API-revisie-id. Moet uniek zijn in het huidige EXEMPLAAR van de API Management-service. Niet-huidige herziening heeft ; rev=n als achtervoegsel waarbij n het revisienummer is. |
resolver
|
path | True |
string minLength: 1maxLength: 80 |
Resolver-id binnen een GraphQL-API. Moet uniek zijn in het huidige EXEMPLAAR van de API Management-service. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
De naam van de API Management-service. |
subscription
|
path | True |
string (uuid) |
De id van het doelabonnement. De waarde moet een UUID zijn. |
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
GraphQL Api Resolvers Policy Collection. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de resolver is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
ApiManagementListGraphQLApiResolverPolicies
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/599e2953193c3c0bd0b3e2fa/resolvers/599e29ab193c3c0bd0b3e2fb/policies?api-version=2024-05-01
Voorbeeldrespons
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/599e2953193c3c0bd0b3e2fa/resolvers/599e29ab193c3c0bd0b3e2fb/policies/policy",
"type": "Microsoft.ApiManagement/service/apis/resolvers/policies",
"name": "policy",
"properties": {
"value": "<!--\r\n IMPORTANT:\r\n - Resolver elements can appear only within the <http-request>, <http-response>, <backend> section elements.\r\n - Only the <forward-request> policy element can appear within the <backend> section element.\r\n - To apply a policy to the query request (before it is forwarded to the backend service), place a corresponding policy element within the <http-request> section element.\r\n - To apply a policy to the resolver response (before it is sent back to the document executor), place a corresponding policy element within the <http-response> section element.\r\n - To add a policy position the cursor at the desired insertion point and click on the round button associated with the policy.\r\n - To remove a policy, delete the corresponding policy statement from the policy document.\r\n - Policies are applied in the order of their appearance, from the top down.\r\n-->\r\n<http-data-source>\r\n <http-request>\r\n <set-method>GET</set-method>\r\n<set-backend-service base-url=\"https://some.service.com\" />\r\n<set-url>/api/users</set-url> </http-request>\r\n <backend>\r\n <forward-request />\r\n </backend>\r\n <http-response>\r\n <set-body template=\"liquid\">\r\n { \"id\": \"{{body.id}}\" } </http-response>\r\n</http-data-source>"
}
}
],
"count": 1,
"nextLink": ""
}
Definities
Name | Description |
---|---|
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Policy |
Het antwoord van de bewerking lijstbeleid. |
Policy |
Indeling van de policyContent. |
Policy |
Beleidscontractgegevens. |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
PolicyCollection
Het antwoord van de bewerking lijstbeleid.
Name | Type | Description |
---|---|---|
count |
integer (int64) |
Totaal aantal records. |
nextLink |
string |
Koppeling naar volgende pagina indien aanwezig. |
value |
Beleidscontractwaarde. |
PolicyContentFormat
Indeling van de policyContent.
Waarde | Description |
---|---|
rawxml |
De inhoud is inline en het inhoudstype is een niet-XML-gecodeerd beleidsdocument. |
rawxml-link |
Het beleidsdocument is niet xml-gecodeerd en wordt gehost op een HTTP-eindpunt dat toegankelijk is vanuit de API Management-service. |
xml |
De inhoud is inline en het inhoudstype is een XML-document. |
xml-link |
Het XML-document van het beleid wordt gehost op een HTTP-eindpunt dat toegankelijk is vanuit de API Management-service. |
PolicyContract
Beleidscontractgegevens.
Name | Type | Default value | Description |
---|---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
|
name |
string |
De naam van de resource |
|
properties.format | xml |
Indeling van de policyContent. |
|
properties.value |
string |
Inhoud van het beleid zoals gedefinieerd door de indeling. |
|
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |