| Did this page help you? Yes No Tell us about it... |
To get the information about a distribution, you do a GET on
the 2010-11-01/distribution/<distribution
ID> resource.
GET /2010-11-01/distribution/<distribution ID>HTTP/1.1 Host: cloudfront.amazonaws.com Authorization:AWS authentication stringDate:time stamp[Other required headers]
The request must include the headers required in all CloudFront requests. For more information, see Common REST Headers.
200 OK
ETag: [ETag value to use later when doing a PUT or DELETE]
x-amz-request-id: [Request ID]
<?xml version="1.0" encoding="UTF-8"?>
<Distribution xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<Id>EDFDVBD632BHDS5</Id>
<Status>Deployed</Status>
<LastModifiedTime>2009-11-19T19:37:58Z</LastModifiedTime>
<InProgressInvalidationBatches>1</InProgressInvalidationBatches>
<DomainName>d604721fxaaqy9.cloudfront.net</DomaineName>
<ActiveTrustedSigners>
<Signer>
<Self/>
<KeyPairId>APKAI72T5DYBXEXAMPLE</KeyPairId>
</Signer>
<Signer>
<AwsAccountNumber>111122223333</AwsAccountNumber>
<KeyPairId>APKA9ONS7QCOWEXAMPLE</KeyPairId>
</Signer>
</ActiveTrustedSigners>
<DistributionConfig>
<S3Origin>
<DNSName>mybucket.s3.amazonaws.com</DNSName>
<OriginAccessIdentity>
origin-access-identity/cloudfront/E127EXAMPLE51Z
</OriginAccessIdentity>
</S3Origin>
<CustomOrigin>
<DNSName>www.example.com</DNSName>
<HTTPPort>80</HTTPPort>
<OriginProtocolPolicy>http-only</OriginProtocolPolicy>
</CustomOrigin>
<CallerReference>your unique caller reference</CallerReference>
<CNAME>mysite.example.com</CNAME>
<Comment>My comments</Comment>
<Enabled>true</Enabled>
<DefaultRootObject>index.html</DefaultRootObject>
<Logging>
<Bucket>mylogs.s3.amazonaws.com</Bucket>
<Prefix>myprefix/</Prefix>
</Logging>
<TrustedSigners>
<Self/>
<AwsAccountNumber>111122223333</AwsAccountNumber>
<AwsAccountNumber>444455556666</AwsAccountNumber>
</TrustedSigners>
</DistributionConfig>
</Distribution>
The | |
The |
| Name | Description |
|---|---|
|
|
The current version of the distribution's information. For
example: Type: String |
| Name | Description |
|---|---|
|
|
The distribution's information. For more information, see Distribution Complex Type. Type: |
The following table lists the special errors returned in addition to the common errors all actions return (for more information, see Errors).
| Error | Description | HTTP Status Code |
|---|---|---|
|
|
The specified distribution does not exist. |
404 |
The following example request gets the information about the EDFDVBD632BHDS5 distribution.
GET /2010-11-01/distribution/EDFDVBD632BHDS5 HTTP/1.1 Host: cloudfront.amazonaws.com Authorization: AWS O39F6A430S6FJNPPGDR2:frJIUN8DYpKDtOLEXAMPLE= Date: Thu, 19 Nov 2009 19:37:58 GMT [Other required headers]
200 OK
ETag: E2QWRUHAPOMQZL
x-amz-request-id: request_id
<Distribution xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<Id>EDFDVBD632BHDS5</Id>
<Status>Deployed</Status>
<LastModifiedTime>2009-11-19T19:37:58Z</LastModifiedTime>
<DomainName>d604721fxaaqy9.cloudfront.net</DomainName>
<DistributionConfig>
<S3Origin>
<DNSName>mybucket.s3.amazonaws.com</DNSName>
</S3Origin>
<CallerReference>20091130090000</CallerReference>
<CNAME>beagles.com</CNAME>
<Comment>My comments</Comment>
<Enabled>true</Enabled>
<Logging>
<Bucket>mylogs.s3.amazonaws.com</Bucket>
<Prefix>myprefix/</Prefix>
</Logging>
</DistributionConfig>
</Distribution>