Updated on 2024-12-03 GMT+08:00

Before You Start

Cloud Trace Service (CTS) is a log audit service designed to strengthen cloud security. It allows you to collect, store, and query resource operation records. You can use these records to perform security analysis, track resource changes, audit compliance, and locate faults.

You can use APIs introduced in this document to perform operations on CTS, such as creating and deleting a tracker. For details about all supported operations, see API Overview.

Before calling CTS APIs, ensure that you are familiar with CTS concepts and functions. For details, see Service Overview.

Endpoints

An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of CTS, see Regions and Endpoints.

The following table lists CTS endpoints. Select a desired one based on the service requirements.
Table 1 CTS endpoints

Region

Region

Endpoint

AF-Johannesburg

af-south-1

cts.af-south-1.myhuaweicloud.com

CN-Hong Kong

ap-southeast-1

cts.ap-southeast-1.myhuaweicloud.com

AP-Bangkok

ap-southeast-2

cts.ap-southeast-2.myhuaweicloud.com

AP-Singapore

ap-southeast-3

cts.ap-southeast-3.myhuaweicloud.com

AP-Jakarta

ap-southeast-4

cts.ap-southeast-4.myhuaweicloud.com

CN East-Shanghai2

cn-east-2

cts.cn-east-2.myhuaweicloud.com

CN East-Shanghai1

cn-east-3

cts.cn-east-3.myhuaweicloud.com

CN North-Beijing1

cn-north-1

cts.cn-north-1.myhuaweicloud.com

CN North-Beijing2

cn-north-2

cts.cn-north-2.myhuaweicloud.com

CN North-Beijing4

cn-north-4

cts.cn-north-4.myhuaweicloud.com

CN North-Ulanqab1

cn-north-9

cts.cn-north-9.myhuaweicloud.com

CN South-Guangzhou

cn-south-1

cts.cn-south-1.myhuaweicloud.com

CN South-Shenzhen

cn-south-2

cts.cn-south-2.myhuaweicloud.com

CN South-Guangzhou-InvitationOnly

cn-south-4

cts.cn-south-4.myhuaweicloud.com

CN Southwest-Guiyang1

cn-southwest-2

cts.cn-southwest-2.myhuaweicloud.com

EU-Paris

eu-west-0

cts.eu-west-0.myhuaweicloud.com

LA-Mexico City2

la-north-2

cts.la-north-2.myhuaweicloud.com

LA-Santiago

la-south-2

cts.la-south-2.myhuaweicloud.com

ME-Riyadh

me-east-1

cts.me-east-1.myhuaweicloud.com

AP-Kuala Lumpur-OP6

my-kualalumpur-1

cts.my-kualalumpur-1.myhuaweicloud.com

LA-Mexico City1

na-mexico-1

cts.na-mexico-1.myhuaweicloud.com

RU-Moscow2

ru-northwest-2

cts.ru-northwest-2.myhuaweicloud.com

LA-Sao Paulo1

sa-brazil-1

cts.sa-brazil-1.myhuaweicloud.com

TR-Istanbul

tr-west-1

cts.tr-west-1.myhuaweicloud.com

Constraints

  • A maximum of 100 data trackers and one management tracker can be created in an account. The quotas cannot be modified.
  • For more constraints, see API description.

Concepts

  • Trackers

    Before using CTS, you need to enable it. A tracker is automatically created when CTS is enabled. The tracker identifies and associates with all cloud services you are using, and records all operations on the services.

    A management tracker and 100 data trackers can be created for a tenant.

  • Traces

    Traces are cloud resource operation logs captured and stored by CTS. You can view traces to identify when operations were performed by which users for tracking.

    There are two types of traces. Management traces are operation records reported by cloud services, whereas data traces are read/write operation records reported by Object Storage Service (OBS).

  • Domain

    An account is created upon successful registration with the cloud system. The account has full access permissions for all of its cloud services and resources. It can be used to reset user passwords and grant user permissions. The account is a payment entity and should not be used directly to perform routine management. For security purposes, create Identity and Access Management (IAM) users and grant them permissions for routine management.

  • User

    An IAM user is created using an account to use cloud services. Each IAM user has their own identity credentials (password and access keys).

    The account name, username, and password will be required for API authentication.

  • Region

    Regions are divided based on geographical location and network latency. Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region. Regions are classified into universal regions and dedicated regions. A universal region provides universal cloud services for common tenants. A dedicated region provides specific services for specific tenants.

    For details, see Region and AZ.

  • AZ

    An AZ comprises one or multiple physical data centers equipped with independent ventilation, fire, water, and electricity facilities. Computing, network, storage, and other resources in an AZ are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to allow you to build cross-AZ high-availability systems.

  • Project

    A project corresponds to a region. Projects group and isolate resources (including compute, storage, and network resources) across physical regions. Users can be granted permissions in a default project to access all resources in the region associated with the project. If you need more refined access control, create subprojects under a default project and create resources in subprojects. Then you can assign users the permissions required to access only the resources in the specific subprojects.

    Figure 1 Project isolation model
  • Enterprise project

    Enterprise projects group and manage resources across regions. Resources in enterprise projects are logically isolated. An enterprise project can contain resources in multiple regions, and resources can be transferred between enterprise projects.

    For details about enterprise projects and how to obtain enterprise project IDs, see Enterprise Management User Guide.

API Versions

It is recommended that you use the V3 APIs, which are more powerful and easy to use.

The V1 APIs will be brought offline soon.