调用UpdateDcdnSLSRealtimeLogDelivery更新实时日志项目。
接口说明
单用户调用频率:100 次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dcdn:UpdateDcdnSLSRealtimeLogDelivery |
update |
*Domain
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProjectName |
string |
是 |
项目名称。 |
example |
| DomainName |
string |
是 |
域名列表,多个域名用半角逗号(,)隔开。 |
example.com |
| SamplingRate |
string |
否 |
采样率。 |
1.0 |
| SLSRegion |
string |
是 |
日志区域名称。 |
cn-hangzhou |
| SLSProject |
string |
是 |
日志名称。 |
example-cn |
| SLSLogStore |
string |
是 |
日志库名称。 |
example-cn |
| DataCenter |
string |
是 |
数据中心,取值:
|
cn |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
F32C57AA-7BF8-49AE-A2CC-9F42390F5A19 |
| Content |
object |
||
| Domains |
array<object> |
域名配置结果信息。 |
|
|
object |
|||
| Status |
string |
日志状态,取值:
|
success |
| DomainName |
string |
域名。 |
example.com |
| Region |
string |
区域名称。 |
cn |
| Desc |
string |
日志描述。 |
updated |
示例
正常返回示例
JSON格式
{
"RequestId": "F32C57AA-7BF8-49AE-A2CC-9F42390F5A19",
"Content": {
"Domains": [
{
"Status": "success",
"DomainName": "example.com",
"Region": "cn",
"Desc": "updated"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Invalid.Parameter | The specified parameter is invalid. | 输入参数无效 |
| 400 | ProjectNotFound | The project provided does not belong to you. | 项目不存在或不属于当前用户 |
| 400 | InternalError | An internal exception occurred, please try again later. | 触发内部异常,请稍后再试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。