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

GET Origin Access Identity Config

Description

To get a CloudFront origin access identity's configuration information, you do a GET on the 2016-09-07/origin-access-identity/CloudFront/<identity ID>/config resource.

Requests

Syntax

GET /2016-09-07/origin-access-identity/cloudfront/<identity ID>/config HTTP/1.1
Host: cloudfront.amazonaws.com
Authorization: AWS authentication string
Date: time stamp
Other required headers

Headers

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

Responses

Syntax

200 OK
ETag: ETag value to use later when doing a PUT on the config
x-amz-request-id: Request ID

<?xml version="1.0" encoding="UTF-8"?>
<CloudFrontOriginAccessIdentityConfig xmlns="http://cloudfront.amazonaws.com/doc/2016-09-07/">
   <CallerReference>20120229090000</CallerReference>
   <Comment>The comment.</Comment>
</CloudFrontOriginAccessIdentityConfig>

Headers

NameDescription

ETag

The current version of the configuration. For example: E2QWRUHEXAMPLE.

Type: String

Elements

NameDescription

CloudFrontOriginAccessIdentityConfig

The origin access identity's configuration information. For more information, see CloudFrontOriginAccessIdentityConfig Complex Type.

Type: CloudFrontOriginAccessIdentityConfig complex type

Special Errors

The following table lists the special errors returned in addition to the common errors that all actions return. For more information, see Errors.

ErrorDescriptionHTTP Status Code

NoSuchCloudFrontOriginAccessIdentity

The specified origin access identity does not exist.

404

Examples

The following example request gets the configuration information for the CloudFront origin access identity with ID E74FTE3AEXAMPLE.

Sample Request

GET /2016-09-07/origin-access-identity/cloudfront/E74FTE3AEXAMPLE/config HTTP/1.1
Host: cloudfront.amazonaws.com
Authorization: AWS authentication string
Date: Thu, 17 May 2012 19:37:58 GMT
Other required headers

Sample Response

200 OK
ETag: E2QWRUHEXAMPLE
x-amz-request-id: request_id

<?xml version="1.0" encoding="UTF-8"?>
<CloudFrontOriginAccessIdentityConfig xmlns="http://cloudfront.amazonaws.com/doc/2016-09-07/">
   <CallerReference>20120229090000</CallerReference>
   <Comment>My comments</Comment>
</CloudFrontOriginAccessIdentityConfig>