| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
To list your CloudFront origin access identities, you do a GET on the
2012-07-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 /2012-07-01/origin-access-identity/cloudfront?Marker=value&MaxItems=valueHTTP/1.1 Host: cloudfront.amazonaws.com Authorization:AWS authentication stringDate:time stampOther 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/2012-07-01/"> <Marker>value that you specified for Marker parameter in last request</Marker> <NextMarker>value to specify for Marker parameter in next request</NextMarker> <MaxItems>value specified for MaxItems in request</MaxItems> <IsTruncated>true | false</IsTruncated> <Quantity>number of origin access identities created by the current AWS account</Quantity> <Items> <CloudFrontOriginAccessIdentitySummary> <Id>origin access identity</Id> <S3CanonicalUserId>user id</S3CanonicalUserId> <Comment>comment about the origin access identity</Comment> </CloudFrontOriginAccessIdentitySummary> </Items> </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 |
|---|---|
|
|
The value you provided for the Type: String Parent: CloudFrontOriginAccessIdentityList |
|
|
If Type: String Parent: CloudFrontOriginAccessIdentityList |
|
|
The value you provided for the Type: String Parent: CloudFrontOriginAccessIdentityList |
|
|
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: Parent: CloudFrontOriginAccessIdentityList |
|
|
The number of CloudFront origin access identities that were created by the current AWS account. Type: String Parent: CloudFrontOriginAccessIdentityList |
|
|
A complex type that contains one Type: Complex Child: CloudFrontOriginAccessIdentitySummary Parent: CloudFrontOriginAccessIdentityList |
|
|
Type: An XML structure containing a summary of the origin access identity. For information about the child elements, see CloudFrontOriginAccessIdentity Complex Type. |
The action returns no special errors besides the common errors that all actions return. For more information, see Errors.
The following example request lists the first two of your ten origin access identities.
GET /2012-07-01/origin-access-identity/cloudfront?MaxItems=2 HTTP/1.1 Host: cloudfront.amazonaws.com Authorization:AWS authentication stringDate: Thu, 17 May 2012 19:37:58 GMTOther required headers
200 OK
x-amz-request-id: request_id
<?xml version="1.0" encoding="UTF-8"?>
<CloudFrontOriginAccessIdentityList xmlns="http://cloudfront.amazonaws.com/doc/2012-07-01/">
<Marker>EDFDVBD6EXAMPLE</Marker>
<NextMarker>EMLARXS9EXAMPLE</NextMarker>
<MaxItems>2</MaxItems>
<IsTruncated>true</IsTruncated>
<Quantity>4</Quantity>
<Items>
<CloudFrontOriginAccessIdentitySummary>
<Id>E74FTE3AEXAMPLE</Id>
<S3CanonicalUserId>
cd13868f797c227fbea2830611a26fe0a21ba1b826ab4bed9b7771c9aEXAMPLE
</S3CanonicalUserId>
<Comment>First origin access identity</Comment>
</CloudFrontOriginAccessIdentitySummary>
<CloudFrontOriginAccessIdentitySummary>
<Id>E58SRM2XEXAMPLE</Id>
<S3CanonicalUserId>
7d843ae7f1792436e72691ab96a9c1414b7c3fbe2ab739a1cf21b0fe2EXAMPLE
</S3CanonicalUserId>
<Comment>Another origin access identity</Comment>
</CloudFrontOriginAccessIdentitySummary>
</Items>
</CloudFrontOriginAccessIdentityList>The following example request gets the next four origin access identities in your list.
GET /2012-07-01/origin-access-identity/cloudfront?MaxItems=4?Marker=E58SRM2XEXAMPLE HTTP/1.1 Host: cloudfront.amazonaws.com Authorization:AWS authentication stringDate: Thu, 17 May 2012 19:39:00 GMTOther required headers