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

GetCloudFrontOriginAccessIdentity

Get the information about an origin access identity.

Request Syntax

GET /2016-09-29/origin-access-identity/cloudfront/Id HTTP/1.1

URI Request Parameters

The request requires the following URI parameters.

Id

The identity's ID.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200
ETag: ETag
<?xml version="1.0" encoding="UTF-8"?>
<GetCloudFrontOriginAccessIdentityResult>
   <CloudFrontOriginAccessIdentity>
      <CloudFrontOriginAccessIdentityConfig>
         <CallerReference>string</CallerReference>
         <Comment>string</Comment>
      </CloudFrontOriginAccessIdentityConfig>
      <Id>string</Id>
      <S3CanonicalUserId>string</S3CanonicalUserId>
   </CloudFrontOriginAccessIdentity>
</GetCloudFrontOriginAccessIdentityResult>

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The response returns the following HTTP headers.

ETag

The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.

The following data is returned in XML format by the service.

GetCloudFrontOriginAccessIdentityResult

Root level tag for the GetCloudFrontOriginAccessIdentityResult parameters.

Required: Yes

CloudFrontOriginAccessIdentity

The origin access identity's information.

Type: CloudFrontOriginAccessIdentity object

Errors

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

AccessDenied

Access denied.

HTTP Status Code: 403

NoSuchCloudFrontOriginAccessIdentity

The specified origin access identity does not exist.

HTTP Status Code: 404