| Did this page help you? Yes No Tell us about it... |
To list your CloudFront origin access identities, you do a GET on the
2010-11-01/origin-access-identity/cloudfront resource. The response
includes a CloudFrontOriginAccessIdentityList element with zero or more
CloudFrontOriginAccessIdentitySummary child elements. By default, your entire
list of origin access identities is returned in one single page. If the list is long, you can
paginate it using the MaxItems and Marker
parameters.
GET /2010-11-01/origin-access-identity/cloudfront?Marker=value&MaxItems=valueHTTP/1.1 Host: cloudfront.amazonaws.com Authorization: [AWS authentication string] Date: [time stamp] [Other required headers]
The request must include the headers required in all CloudFront requests. For more information, see Common REST Headers.
| Name | Description | Required |
|---|---|---|
|
|
Use this when paginating results to indicate where to begin in your
list of origin access identities. The results include identities in the
list that occur after the marker. To get the next
page of results, set the Type: String Default: All your origin access identities are listed from the beginning | No |
|
|
The maximum number of origin access identities you want in the response body. Type: String with a maximum value of 100 Default: 100 | No |
200 OK x-amz-request-id: [Request ID] <?xml version="1.0" encoding="UTF-8"?> <CloudFrontOriginAccessIdentityList xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/"> <Marker>marker</Marker> <NextMarker>marker</NextMarker> <MaxItems>number</MaxItems> <IsTruncated>true or false</IsTruncated> <CloudFrontOriginAccessIdentitySummary> <Id>id</Id> <S3CanonicalUserId>user id</S3CanonicalUserId> <Comment>The comment.</Comment> <CloudFrontOriginAccessIdentitySummary>OAI summary</CloudFrontOriginAccessIdentitySummary> </CloudFrontOriginAccessIdentityList>
The body of the response includes an XML document with a
CloudFrontOriginAccessIdentityList element. The following table lists the
child elements of the CloudFrontOriginAccessIdentityList element.
| Name | Description |
|---|---|
|
|
Type: An XML structure containing a summary of the origin access identity. For information about the child elements, see CloudFrontOriginAccessIdentity Complex Type. |
|
|
A flag that indicates whether more origin access identities remain to
be listed. If your results were truncated, you can make a follow-up
pagination request using the Type: String Valid Values: |
|
|
The value you provided for the Type: String |
|
|
The value you provided for the Type: String |
|
|
If Type: String |
The action returns no special errors besides the common errors all actions return (for more information, see Errors).
The following example request lists the first two of your ten origin access identities.
GET /2010-11-01/origin-access-identity/cloudfront?MaxItems=2 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
x-amz-request-id: request_id
<?xml version="1.0" encoding="UTF-8"?>
<CloudFrontOriginAccessIdentityList xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<Marker>EDFDVBD632BHDS5</Marker>
<NextMarker>EMLARXS993KSTG8</NextMarker>
<MaxItems>2</MaxItems>
<IsTruncated>true</IsTruncated>
<CloudFrontOriginAccessIdentitySummary>
<Id>E74FTE3AJFJ256A</Id>
<S3CanonicalUserId>
cd13868f797c227fbea2830611a26fe0a21ba1b826ab4bed9b7771c9a69ba19f
</S3CanonicalUserId>
<Comment>First origin access identity</Comment>
</CloudFrontOriginAccessIdentitySummary>
<CloudFrontOriginAccessIdentitySummary>
<Id>E58SRM2XIPL448F</Id>
<S3CanonicalUserId>
7d843ae7f1792436e72691ab96a9c1414b7c3fbe2ab739a1cf21b0fe26b22980
</S3CanonicalUserId>
<Comment>Another origin access identity</Comment>
</CloudFrontOriginAccessIdentitySummary>
</CloudFrontOriginAccessIdentityList>The following example request gets the next four origin access identities in your list.
GET /2010-11-01/origin-access-identity/cloudfront?MaxItems=4?Marker=E58SRM2XIPL448F HTTP/1.1 Host: cloudfront.amazonaws.com Authorization: AWS O39F6A430S6FJNPPGDR2:frJIUN8DYpKDtOLEXAMPLE= Date: Thu, 19 Nov 2009 19:39:00 GMT [Other required headers]