You need to enable JavaScript to run this app.
导航
StartLogging - 开启跟踪
最近更新时间:2024.12.31 17:17:32首次发布时间:2024.12.31 17:17:32

开启跟踪

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

StartLogging

要执行的操作,取值:StartLogging。

Version
String

2018-01-01

API的版本,取值:2018-01-01。

TrailName
String

trail-test

跟踪名

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

POST /?Action=StartLogging&Version=2018-01-01 HTTP/1.1
Host: volcengineapi.byted.org
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Date: 20241217T094017Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20241217/cn-beijing/cloud_trail/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

TrailName=test1

返回示例

{
  "ResponseMetadata": {
    "RequestId": "202412171740241092031800373F4C03",
    "Action": "StartLogging",
    "Version": "2018-01-01",
    "Service": "cloud_trail",
    "Region": "cn-beijing"
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
SiteDoesNotMatch
The site does not match the identity.
400
InvalidParameter
The parameter '%s' is invalid.
400
InvalidTrailName
The specified trail name '%s' is invalid.
403
AccessDenied
You have no permission for this action.
404
TrailNotExist
Trail '%s' does not exist.
500
ServiceFailure
The requested service failed due to an unknown error.