ListOriginRequestPolicies
Gets a list of origin request policies.
You can optionally apply a filter to return only the managed policies created by AWS, or only the custom policies created in your AWS account.
You can optionally specify the maximum number of items to receive in the response. If
the total number of items in the list exceeds the maximum that you specify, or the
default maximum, the response is paginated. To get the next page of items, send a
subsequent request that specifies the NextMarker
value from the current
response as the Marker
value in the subsequent request.
Request Syntax
GET /2020-05-31/origin-request-policy?Marker=Marker
&MaxItems=MaxItems
&Type=Type
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- Marker
-
Use this field when paginating results to indicate where to begin in your list of origin request policies. The response includes origin request policies in the list that occur after the marker. To get the next page of the list, set this field's value to the value of
NextMarker
from the current page's response. - MaxItems
-
The maximum number of origin request policies that you want in the response.
- Type
-
A filter to return only the specified kinds of origin request policies. Valid values are:
-
managed
– Returns only the managed policies created by AWS. -
custom
– Returns only the custom policies created in your AWS account.
Valid Values:
managed | custom
-
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<OriginRequestPolicyList>
<Items>
<OriginRequestPolicySummary>
<OriginRequestPolicy>
<Id>string</Id>
<LastModifiedTime>timestamp</LastModifiedTime>
<OriginRequestPolicyConfig>
<Comment>string</Comment>
<CookiesConfig>
<CookieBehavior>string</CookieBehavior>
<Cookies>
<Items>
<Name>string</Name>
</Items>
<Quantity>integer</Quantity>
</Cookies>
</CookiesConfig>
<HeadersConfig>
<HeaderBehavior>string</HeaderBehavior>
<Headers>
<Items>
<Name>string</Name>
</Items>
<Quantity>integer</Quantity>
</Headers>
</HeadersConfig>
<Name>string</Name>
<QueryStringsConfig>
<QueryStringBehavior>string</QueryStringBehavior>
<QueryStrings>
<Items>
<Name>string</Name>
</Items>
<Quantity>integer</Quantity>
</QueryStrings>
</QueryStringsConfig>
</OriginRequestPolicyConfig>
</OriginRequestPolicy>
<Type>string</Type>
</OriginRequestPolicySummary>
</Items>
<MaxItems>integer</MaxItems>
<NextMarker>string</NextMarker>
<Quantity>integer</Quantity>
</OriginRequestPolicyList>
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in XML format by the service.
- OriginRequestPolicyList
-
Root level tag for the OriginRequestPolicyList parameters.
Required: Yes
- Items
-
Contains the origin request policies in the list.
Type: Array of OriginRequestPolicySummary objects
- MaxItems
-
The maximum number of origin request policies requested.
Type: Integer
- NextMarker
-
If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the
Marker
field of a subsequent request to continue listing origin request policies where you left off.Type: String
- Quantity
-
The total number of origin request policies returned in the response.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDenied
-
Access denied.
HTTP Status Code: 403
- InvalidArgument
-
An argument is invalid.
HTTP Status Code: 400
- NoSuchOriginRequestPolicy
-
The origin request policy does not exist.
HTTP Status Code: 404
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: