Help Center/ Application Performance Management/ API Reference(2.0)/ APIs/ CMDB/ Querying the Details About a Sub-application
Updated on 2023-08-02 GMT+08:00

Querying the Details About a Sub-application

Function

This API is used to query the details about a sub-application.

URI

GET /v1/apm2/openapi/cmdb/sub-business/get-sub-business-detail/{sub_business_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

sub_business_id

Yes

Long

Sub-application ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

x-business-id

Yes

Long

Application ID.

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

id

Long

Sub-application ID.

gmt_create

String

Creation time.

gmt_modify

String

Update time.

parent_id

Long

Parent node ID.

name

String

Sub-application name.

display_name

String

Display name of the sub-application.

business_id

Long

ID of the application.

inner_domain_id

Integer

Internal tenant ID.

creator_id

Long

ID of the creator.

uuid

String

UUID of the application.

descp

String

Application description.

create_time

String

Creation time.

modify_time

String

Update time.

creator_name

String

Name of the creator.

Example Requests

Query details about sub-application 8.

/v1/apm2/openapi/cmdb/sub-business/get-sub-business-detail/8

Example Responses

Status code: 200

OK: The request is successful.

{
  "name" : "App",
  "uuid" : "6e59**************36072",
  "descp" : null,
  "id" : 8,
  "gmt_create" : null,
  "gmt_modify" : null,
  "display_name" : "App",
  "parent_id" : null,
  "business_id" : 6,
  "inner_domain_id" : 3,
  "creator_id" : null,
  "create_time" : "2021-07-14 22:33:33",
  "modify_time" : "2021-07-14 22:33:33",
  "creator_name" : "API"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

401

Unauthorized: No permissions.

403

Forbidden: Access forbidden.

404

Not Found: The requested resource is not found.

Error Codes

See Error Codes.