开通日志服务。
接口说明
前提条件
先开通 Log Service, 已创建服务管理角色并授权云安全中心访问云资源。您可以调用 CreateServiceLinkedRole 接口创建服务关联角色并授权云安全中心访问云资源。
使用场景
使用云安全中心日志分析功能前,您需要先调用 ModifyOpenLogShipper 接口开通日志服务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:ModifyOpenLogShipper |
update |
*LogShipper
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| From |
string |
否 |
请求来源标识,默认 aegis,取值:
说明
安骑士用户请使用 aegis,云安全中心用户则使用 sas。 |
sas |
| ResourceDirectoryAccountId |
integer |
否 |
资源目录成员账号 ID(阿里云账号)。 说明
调用 DescribeMonitorAccounts 接口可以获取该参数。 |
127608589417**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
25EC270F-5783-4416-AD7C-1EDF063A039C |
示例
正常返回示例
JSON格式
{
"RequestId": "25EC270F-5783-4416-AD7C-1EDF063A039C"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalHotTTL | The hot storage TTL is invalid. | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。