Menu
Amazon CloudFront
API Reference (API Version 2016-09-07)

GET Invalidation

Description

To get the information about an invalidation, you do a GET on the 2016-09-07/distribution/distribution ID/invalidation resource.

Requests

Syntax

GET /2016-09-07/distribution/distribution ID/invalidation/invalidation ID HTTP/1.0
Host: cloudfront.amazonaws.com
Authorization: AWS authentication string

Headers

The request must include the headers required in all CloudFront requests. For more information, see Common REST Headers.

Responses

Syntax

HTTP/1.0 200 OK
Content-Type: text/xml

<Invalidation xmlns="http://cloudfront.amazonaws.com/doc/2016-09-07/">
   <Id>id that CloudFront assigned to the invalidation</Id>
   <Status>InProgress | Completed</Status>
   <CreateTime>date and time of request</CreateTime>
   <InvalidationBatch>
      <Paths>
         <Quantity>number of objects to invalidate</Quantity>
         <Items>
            <Path>/path to object to invalidate</Path>
         </Items>
      </Paths>
      <CallerReference>unique identifier for this invalidation batch</CallerReference>
   </InvalidationBatch>
</Invalidation>

Headers

The request must include the headers required in all CloudFront requests. For more information, see Common REST Headers.

Elements

NameDescription

Invalidation

Information about the invalidation. For more information, see Invalidation Complex Type.

Type: Invalidation complex type

Examples

The following example request gets the information about the invalidation.

Sample Request

GET /2016-09-07/distribution/distribution ID/invalidation/invalidation ID HTTP/1.0
Host: cloudfront.amazonaws.com
Authorization: AWS authentication string

Sample Response

HTTP/1.0 200 OK
Content-Type: text/xml

<Invalidation xmlns="http://cloudfront.amazonaws.com/doc/2016-09-07/">
   <Id>IDFDVBD632BHDS5</Id>
   <Status>InProgress</Status>
   <CreateTime>2009-11-19T19:37:58Z</CreateTime>   
   <InvalidationBatch>
      <Paths>
         <Quantity>3</Quantity>
         <Items>
            <Path>/image1.jpg</Path>
            <Path>/image2.jpg</Path>
            <Path>/videos/movie.flv</Path>
         </Items>
      </Paths>
      <CallerReference>20120301090001</CallerReference>
   </InvalidationBatch>
</Invalidation>