调用DescribeDcdnSLSRealtimeLogDelivery查看实时日志项目。
说明 单用户调用频率:100次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDcdnSLSRealtimeLogDelivery |
系统规定参数。取值:DescribeDcdnSLSRealtimeLogDelivery。 |
ProjectName | String | 是 | example |
日志服务(SLS)项目名称。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | F32C57AA-7BF8-49AE-A2CC-9F42390F5A19 |
请求ID。 |
Content | Object |
域名配置结果信息。 |
|
Status | String | success |
SLS实时日志状态。
|
Type | String | SLS_POST |
投递类型。目前仅支持SLS_POST(SLS投递)类型。 |
SLSLogStore | String | example-cn |
日志库名称。 |
DataCenter | String | cn |
数据中心。 |
FieldName | String | field1,field2 |
字段名称。所有字段请参见实时日志采集字段说明。 |
ProjectName | String | example |
项目名称。 |
SamplingRate | String | 1.0 |
采样率。 |
SLSProject | String | example-cn |
日志名称。 |
DomainName | String | example.com,example.org |
域名列表,多个域名用半角逗号(,)隔开。 |
BusinessType | String | cdn_log_access_l1 |
业务类型,取值:
|
SLSRegion | String | cn-hangzhou |
日志区域名称。 |
示例
请求示例
https://dcdn.aliyuncs.com?Action=DescribeDcdnSLSRealtimeLogDelivery
&ProjectName=example
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDcdnSLSRealtimeLogDeliveryResponse>
<RequestId>F32C57AA-7BF8-49AE-A2CC-9F42390F5A19</RequestId>
<Content>
<ProjectName>example</ProjectName>
<DomainName>example.com,example.org</DomainName>
<FieldName>field1,field2</FieldName>
<SamplingRate>1.0</SamplingRate>
<DataCenter>cn</DataCenter>
<SLSRegion>cn-hangzhou</SLSRegion>
<SLSProject>example-cn</SLSProject>
<SLSLogStore>example-cn</SLSLogStore>
<BusinessType>cdn_log_access_l1</BusinessType>
<Type>SLS_POST</Type>
</Content>
</DescribeDcdnSLSRealtimeLogDeliveryResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "F32C57AA-7BF8-49AE-A2CC-9F42390F5A19",
"Content" : {
"ProjectName" : "example",
"DomainName" : "example.com,example.org",
"FieldName" : "field1,field2",
"SamplingRate" : "1.0",
"DataCenter" : "cn",
"SLSRegion" : "cn-hangzhou",
"SLSProject" : "example-cn",
"SLSLogStore" : "example-cn",
"BusinessType" : "cdn_log_access_l1",
"Type" : "SLS_POST"
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ProjectNotFound | The project provided does not belong to you. | 项目不存在或不属于当前用户 |
访问错误中心查看更多错误码。