Example 1: Creating a Management Tracker
Introduction
This section describes how to create a management tracker for an OBS bucket which is used for log transfer.
Other Involved APIs
Listing Buckets: The name of the OBS bucket to which traces will be transferred is required for creating a management tracker. Call this API to list all the OBS buckets you have created to obtain the name.
Creating a Management Tracker
- URI:
- Example request:
POST https://{cts_endpoint}/v3/{project_id}/tracker
Obtain the value of {cts_endpoint} from the enterprise administrator.
Body:
{ "tracker_type": "system", "tracker_name": "system", "obs_info": { "is_obs_created": false, "bucket_name": "test_tracker", "file_prefix_name": " yO8Q " } }
- Example response:
{ "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" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.