هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Trace Structure

Updated on 2025-02-27 GMT+08:00

A trace consists of multiple key fields shown in Table 1.

NOTE:
  • This section describes the key trace fields displayed on the CTS console.
  • When some fields are displayed on the CTS console, their formats are optimized for easy understanding.
Table 1 Key trace fields

Field

Mandatory

Type

Description

time

Yes

Long

Timestamp when a trace was generated. The value is the local standard time, for example, 1660927593570. This field is transmitted and stored in the form of a timestamp. It is the total number of milliseconds from 00:00:00, January 1, 1970 to the current time.

user

Yes

UserInfo object

Information of the user who performed the operation that triggered the trace.

request

No

Structure

Request of an operation on resources.

response

No

Structure

Response to a user request, that is, the returned information for an operation on resources.

service_type

Yes

String

Type of a cloud service whose traces are to be queried.

event_type

Yes

String

Trace type.

project_id

Yes

String

ID of the project to which the trace belongs.

resource_type

Yes

String

Type of the resource on which the operation was performed.

resource_account_id

No

String

ID of the account to which the resource belongs. This parameter has a value only when resources are operated across tenants. For example, if tenant A operates resources of tenant B, the value is the account ID of account B.

Note: In the cross-tenant scenario, CTS copies an audit log so that both tenants can view the trace on the CTS console.

read_only

No

boolean

Whether a user request is read-only.

tracker_name

No

String

Name of the tracker that records the trace.

  • When trace_type is set to system, the default value system is used.
  • When trace_type is set to data, the value is the name of the corresponding data tracker.

operation_id

Yes

String

Operation ID of the trace.

resource_name

No

String

Name of a resource on which the recorded operation was performed.

resource_id

No

String

ID of a cloud resource on which the recorded operation was performed.

source_ip

Yes

String

IP address of the tenant who performed the operation that triggered the trace. The value of this parameter is empty if the operation is triggered by the system.

domain_id

Yes

String

ID of the account that triggers the trace.

trace_name

Yes

String

Trace name.

trace_rating

Yes

String

Trace status. The value can be normal, warning, or incident.

  • normal: The operation succeeded.
  • warning: The operation failed.
  • incident: The operation caused a serious consequence, for example, a node failure or service interruption.

trace_type

Yes

String

Trace source. For management traces, the value can be ApiCall, ConsoleAction, or SystemAction. For data traces, the value can be ObsSDK or ObsAPI.

api_version

No

String

Version of the API called in a trace.

message

No

Structure

Remarks added by other cloud services to a trace.

record_time

Yes

Number

Timestamp when a trace was recorded by CTS.

trace_id

Yes

String

Trace ID. The value is the UUID generated by the system.

code

No

String

HTTP status code returned by the associated API.

request_id

No

String

Request ID.

location_info

No

String

Additional information required for fault locating after a request error.

endpoint

No

String

Endpoint in the detail page URL of the cloud resource on which a recorded operation was performed.

resource_url

No

String

Detail page URL (excluding the endpoint) of the cloud resource on which a recorded operation was performed.

enterprise_project_id

Yes

String

ID of the enterprise project to which the resource belongs.

user_agent

No

String

ID of the request client agent.

content_length

No

Number

Length of the request message body.

total_time

No

Number

Request response time.

Table 2 UserInfo

Field

Mandatory

Type

Description

type

No

String

Identity type of the operator.

principal_id

No

String

Identity ID of the operator.

  • For an IAM user, the format is <user-id>.
  • For an IAM assumed-agency session identity, the format is <agency-id>:<agency-session-name>.
  • For an IAM federated identity, the format is <idp_id>:<user-session-name>.

principal_urn

No

String

URN of the operator.

  • For an IAM user, the format is iam::<account-id>:user:<user-name>.
  • For an IAM agency session identity, the format is sts::<account-id>:assumed-agency:<agency-name>/<agency-session-name>.
  • For an IAM federated identity, the format is sts::<account-id>:external-user:<idp_id>/<user-session-name>.

account_id

No

String

Account ID. To obtain it, hover over the username in the upper right corner of the console, select My Credentials from the drop-down menu, and locate the ID on the right of Account ID.

access_key_id

No

String

Access key ID.

id

Yes

String

User ID. To obtain it, hover over the username in the upper right corner of the console, select My Credentials from the drop-down menu, and locate the ID on the right of IAM User ID.

name

Yes

String

Username. To obtain it, hover over the username in the upper right corner of the console, select My Credentials from the drop-down menu, and locate the name on the right of IAM Username.

domain

Yes

BaseUser object

Domain information of the user who performed the operation generating the trace.

user_name

No

String

Username.

The meaning of user_name is the same as that of name.

principal_is_root_user

No

String

Whether the operator is user root.

  • If the value is true, the operator is user root.
  • If the value is false, the operator is an IAM user of an assumed-agency session identity, a federated identity, or a non-root user.

invoked_by

No

Array of strings

Name of the service that sends the request. The value is ["service.console"] for console operations.

session_context

No

SessionContext object

Temporary security credential attribute.

OriginUser

No

String

Information about the original user who initiates the assumed session.

Table 3 BaseUser

Field

Mandatory

Type

Description

id

Yes

String

Account ID. To obtain it, hover over the username in the upper right corner of the console, select My Credentials from the drop-down menu, and locate the ID on the right of Account ID.

name

Yes

String

Account name. To obtain it, hover over the username in the upper right corner of the console, select My Credentials from the drop-down menu, and locate the name on the right of Account Name.

Table 4 SessionContext

Field

Mandatory

Type

Description

attributes

No

Attributes object

Temporary security credential attribute.

Table 5 Attributes

Field

Mandatory

Type

Description

mfa_authenticated

No

String

Whether MFA identity authentication has been passed.

created_at

No

String

Time when the temporary security credential was issued.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback