Queries information about a real-time log delivery project.

Note The maximum number of times that each user can call this operation per second is 100.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListDcdnRealTimeDeliveryProject

The operation that you want to perform. Set the value to ListDcdnRealTimeDeliveryProject.

BusinessType String No cdn_log_access_l1

The type of the collected logs. Default value: cdn_log_access_l1. Valid values:

  • cdn_log_access_l1: access logs of L1 Dynamic Route for CDN (DCDN) nodes
  • cdn_log_origin: back-to-origin logs
  • cdn_log_er: EdgeRoutine logs
DomainName String No example.com

The domain name. You can specify only one domain name in each request.

PageNumber Integer No 1

The number of the page to return. Valid values: 1 to 100000. Default value: 1.

PageSize Integer No 20

The number of entries to return on each page. Default value: 20.

Response parameters

Parameter Type Example Description
Content Array of Projects

The configuration results of the domain name.

Projects
BusinessType String cdn_log_access_l1

The type of the collected logs. Default value: cdn_log_access_l1. Valid values:

  • cdn_log_access_l1: access logs of L1 DCDN nodes
  • cdn_log_origin: back-to-origin logs
  • cdn_log_er: EdgeRoutine logs
DataCenter String cn

The region from which logs were collected.

DomainName String example.com,example.org

The domain names. The returned domain names are separated with commas (,).

FieldName String field1,field2

The name of the field. For more information about the fields in real-time log entries, see Fields in a real-time log.

ProjectName String example

The name of the real-time log delivery project.

SLSLogStore String example-cn

The name of the Logstore.

SLSProject String example-cn

The name of the Log Service project.

SLSRegion String cn-hangzhou

The region to which logs were delivered.

SamplingRate Float 1

The sampling rate.

Type String SLS_POST

The type of log delivery. Only SLS_POST is supported.

RequestId String 3EACD23C-F49F-4BF7-B9AD-C2CD3BA888C4

The ID of the request.

TotalCount Integer 2

The total number of returned entries.

Examples

Sample requests

https://dcdn.aliyuncs.com?Action=ListDcdnRealTimeDeliveryProject&BusinessType=cdn_log_access_l1&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

<ListDcdnRealTimeDeliveryProjectResponse>
  <RequestId>3EACD23C-F49F-4BF7-B9AD-C2CD3BA888C4</RequestId>
  <Content>
        <Projects>
              <ProjectName>example</ProjectName>
              <Type>SLS_POST</Type>
              <DomainName>example.com,example.org</DomainName>
              <FieldName>field1,field2</FieldName>
              <SamplingRate>1</SamplingRate>
              <DataCenter>cn</DataCenter>
              <SLSRegion>cn-hangzhou</SLSRegion>
              <SLSProject>example-cn</SLSProject>
              <SLSLogStore>example-cn</SLSLogStore>
              <BusinessType>cdn_log_access_l1</BusinessType>
        </Projects>
        <Projects>
              <ProjectName>aliyundoc</ProjectName>
              <Type>SLS_POST</Type>
              <DomainName>example.org</DomainName>
              <FieldName>field1,field2</FieldName>
              <SamplingRate>1</SamplingRate>
              <DataCenter>cn</DataCenter>
              <SLSRegion>cn-hangzhou</SLSRegion>
              <SLSProject>aliyundoc-cn</SLSProject>
              <SLSLogStore>aliyundoc-cn</SLSLogStore>
              <BusinessType>cdn_log_access_l1</BusinessType>
        </Projects>
  </Content>
  <TotalCount>2</TotalCount>
</ListDcdnRealTimeDeliveryProjectResponse>

JSON format

{
    "RequestId": "3EACD23C-F49F-4BF7-B9AD-C2CD3BA888C4",
    "Content": {
        "Projects": [
            {
                "ProjectName": "example",
                "Type": "SLS_POST",
                "DomainName": "example.com,example.org",
                "FieldName": "field1,field2",
                "SamplingRate": 1,
                "DataCenter": "cn",
                "SLSRegion": "cn-hangzhou",
                "SLSProject": "example-cn",
                "SLSLogStore": "example-cn",
                "BusinessType": "cdn_log_access_l1"
            },
            {
                "ProjectName": "aliyundoc",
                "Type": "SLS_POST",
                "DomainName": "example.org",
                "FieldName": "field1,field2",
                "SamplingRate": 1,
                "DataCenter": "cn",
                "SLSRegion": "cn-hangzhou",
                "SLSProject": "aliyundoc-cn",
                "SLSLogStore": "aliyundoc-cn",
                "BusinessType": "cdn_log_access_l1"
            }
        ]
    },
    "TotalCount": 2
}

Error codes

For a list of error codes, visit the API Error Center.