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

Creating an Application for Tracing

Function

This API is used to create an application for tracing.

URI

POST /v1/apm2/openapi/tracing/business/create

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

name

Yes

String

Application name.

eps_id

No

String

Enterprise project ID. 0: ID of the default project.

display_name

Yes

String

Name displayed in the CMDB tree.

descp

Yes

String

Description.

cmdb_datasource_type

No

String

Agent type. Default: SKYWALKING. Options: OTEL SKYWALKING

Enumeration values:

  • OTEL
  • SKYWALKING

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

id

Integer

Application ID.

ok

String

  

Example Requests

/v1/apm2/openapi/tracing/business/create

{
  "cmdb_datasource_type" : "SKYWALKING",
  "name" : "test-sky",
  "eps_id" : "0",
  "display_name" : "SkyWalking application",
  "descp" : "SkyWalking application"
}

Example Responses

Status code: 200

OK: The request is successful.

{
  "id" : 404547,
  "ok" : "ok"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

400

Bad Request: Semantic or parameter error.

401

Unauthorized: No permissions.

403

Forbidden: Access forbidden.

404

Not Found: The requested resource is not found.

Error Codes

See Error Codes.