云审计服务 CTS-示例1:创建管理类追踪器:创建管理类追踪器

时间:2023-12-22 17:31:29

创建管理类追踪器

  • 接口相关信息

    URI格式:POST /v3/{project_id}/tracker

  • 请求示例

    POST https://{cts_endpoint}/v3/{project_id}/tracker

    {cts_endpoint}信息请从地区和终端节点获取。

    Body:

    {	
    "tracker_type": "system",
    	"tracker_name": "system",
    	"obs_info": {
    		"is_obs_created": false,
    		"bucket_name": "test_tracker",
    		"file_prefix_name": " yO8Q "
    	}
    }
  • 响应示例
    {
      "id" : "2e6fa9b8-8c6e-456d-b5d3-77be97xxxx",
      "create_time" : 1587958482923,
      "domain_id" : "aexxxxxxxx4d4fb4bexxxxxxx791fbf",
      "obs_info" : {
        "bucket_name" : " test_tracker ",
        "file_prefix_name" : "yO8Q"
      },
      "project_id" : "bb1xxxxxxxxe4f498cbxxxxxxxx35634",
      "tracker_name" : "system",
      "tracker_type" : "system",
      "status" : "enabled"
    }

support.huaweicloud.com/api-cts/cts_api_0501.html