ListInvalidations - Amazon CloudFront


Lists invalidation batches.

Request Syntax

GET /2020-05-31/distribution/DistributionId/invalidation?Marker=Marker&MaxItems=MaxItems HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.


The distribution's ID.

Required: Yes


Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.


The maximum number of invalidation batches that you want in the response body.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <InvalidationList> <IsTruncated>boolean</IsTruncated> <Items> <InvalidationSummary> <CreateTime>timestamp</CreateTime> <Id>string</Id> <Status>string</Status> </InvalidationSummary> </Items> <Marker>string</Marker> <MaxItems>integer</MaxItems> <NextMarker>string</NextMarker> <Quantity>integer</Quantity> </InvalidationList>

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.


Root level tag for the InvalidationList parameters.

Required: Yes


A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

Type: Boolean


A complex type that contains one InvalidationSummary element for each invalidation batch created by the current AWS account.

Type: Array of InvalidationSummary objects


The value that you provided for the Marker request parameter.

Type: String


The value that you provided for the MaxItems request parameter.

Type: Integer


If IsTruncated is true, this element is present and contains the value that you can use for the Marker request parameter to continue listing your invalidation batches where they left off.

Type: String


The number of invalidation batches that were created by the current AWS account.

Type: Integer


For information about the errors that are common to all actions, see Common Errors.


Access denied.

HTTP Status Code: 403


An argument is invalid.

HTTP Status Code: 400


The specified distribution 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: