调用DescribeDomainCustomLogConfig查询域名自定义日志格式配置信息。
接口说明
说明
单用户调用频率:100 次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cdn:DescribeDomainCustomLogConfig |
get |
*Domain
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DomainName |
string |
是 |
域名,只支持单个查询。 |
example.com |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| ConfigId |
string |
日志配置 ID。 |
123 |
| Tag |
string |
日志配置 tag 信息。 |
book |
| RequestId |
string |
请求 ID。 |
94E3559F-7B6A-4A5E-AFFD-44E2A208A249 |
| Remark |
string |
具体配置格式。 |
$time_iso8601_$request_method_$ |
| Sample |
string |
样例。 |
[9/Jun/2015:01:58:09+0800]188.165.15.75-1542\"-\"\"GET http://www.aliyun.com/index.html\ |
示例
正常返回示例
JSON格式
{
"ConfigId": "123",
"Tag": "book",
"RequestId": "94E3559F-7B6A-4A5E-AFFD-44E2A208A249",
"Remark": "$time_iso8601_$request_method_$",
"Sample": "[9/Jun/2015:01:58:09+0800]188.165.15.75-1542\\\"-\\\"\\\"GET http://www.aliyun.com/index.html\\"
}
异常返回示例
JSON格式
{"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8","HostId":"cdn.aliyuncs.com","Code":"InternalError","Message":"The request processing has failed due to some unknown error."}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | Config.NotFound | The domain provided doesn't apply any custom log config, please refer to the standard log config. | 该域名不存在对应的定制日志格式 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?