| Did this page help you? Yes No Tell us about it... |
To list your streaming distributions, you do a GET on the
2010-11-01/streaming-distribution resource. The response includes a
StreamingDistributionList element with zero or more
StreamingDistributionSummary child elements. By default, your entire list of
streaming distributions 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/streaming-distribution?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 streaming distributions. The results include distributions in the
list that occur after the marker. To get the next
page of results, set the Type: String Default: All your streaming distributions are listed from the beginning | No |
|
|
The maximum number of streaming distributions 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"?> <StreamingDistributionList xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/"> <Marker>marker</Marker> <NextMarker>marker</NextMarker> <MaxItems>number</MaxItems> <IsTruncated>true or false</IsTruncated> <StreamingDistributionSummary> <Id>id</Id> <Status>status</Status> <LastModifiedTime>time</LastModifiedTime> <DomainName>name</DomainName> <S3Origin> <DNSName>dns name</DNSName> <OriginAccessIdentity>OAI</OriginAccessIdentity> </S3Origin> <CNAME>cannoical name</CNAME> <Comment>The comment.</Comment> <Enabled>true or false</Enabled> </StreamingDistributionSummary> </StreamingDistributionList>
The body of the response includes an XML document with a
StreamingDistributionList element. The following table lists the child
elements of the StreamingDistributionList element.
| Name | Description |
|---|---|
|
|
A flag that indicates whether more streaming distributions 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 |
|
|
Type: An XML structure containing a summary of the streaming distribution. For information about the child elements, see StreamingDistribution Complex Type. |
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 streaming distributions.
GET /2010-11-01/streaming-distribution?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"?>
<StreamingDistributionList xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<Marker>EGTXBD79H29TRA8</Marker>
<NextMarker>ED4L98SBKX31A05</NextMarker>
<MaxItems>2</MaxItems>
<IsTruncated>true</IsTruncated>
<StreamingDistributionSummary>
<Id>EGTXBD79H29TRA8</Id>
<Status>Deployed</Status>
<LastModifiedTime>2009-11-19T19:37:58Z</LastModifiedTime>
<DomainName>s5c39gqb8ow64r.cloudfront.net</DomainName>
<S3Origin>
<DNSName>mystreamingbucket.s3.amazonaws.com</DNSName>
</S3Origin>
<CNAME>beagles.com</CNAME>
<CNAME>beagles.dogs.com</CNAME>
<Comment>First distribution</Comment>
<Enabled>true</Enabled>
</StreamingDistributionSummary>
<StreamingDistributionSummary>
<Id>ED4L98SBKX31A05</Id>
<Status>Deployed</Status>
<LastModifiedTime>2009-11-27T06:51:03Z</LastModifiedTime>
<DomainName>s92x38afp47st1.cloudfront.net</DomainName>
<S3Origin>
<DNSName>anotherstreamingbucket.s3.amazonaws.com</DNSName>
</S3Origin>
<Comment>Another distribution</Comment>
<Enabled>true</Enabled>
</StreamingDistributionSummary>
</StreamingDistributionList>The following example request gets the next four streaming distributions in your list.
GET /2010-11-01/streaming-distribution?MaxItems=4?Marker=ED4L98SBKX31A05 HTTP/1.1 Host: cloudfront.amazonaws.com Authorization: AWS O39F6A430S6FJNPPGDR2:frJIUN8DYpKDtOLEXAMPLE= Date: Thu, 19 Nov 2009 19:39:00 GMT [Other required headers]