Querying a Region's Environments on Which URLs Are Added for Tracing
Function
This API is used to query a region's environments on which URLs are added for tracing.
URI
POST /v1/apm2/openapi/transaction/business-env
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | User token obtained from IAM. |
x-business-id | Yes | Long | Application ID. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
business_id | Yes | Long | Application ID. |
region | No | String | Region name. |
start_time | No | String | Start time. |
end_time | No | String | End time. |
Response Parameters
Status code: 200
Parameter | Type | Description |
---|---|---|
env_entry_list | Array of EnvEntry objects | Environment list. |
Parameter | Type | Description |
---|---|---|
env_id | Long | Environment ID. |
env_name | String | Environment name. |
Example Requests
Query the list of the region's environments on which URLs are added for tracing. The application ID is 6.
/v1/apm2/openapi/transaction/business-env{"region" : "","business_id" : 6,"start_time" : "-20m","end_time" : "now"}
Example Responses
Status code: 200
OK: The request is successful.
{"env_entry_list" : [ {"env_id" : 48,"env_name" : "apm-api:"}, {"env_id" : 51,"env_name" : "config-web"}, {"env_id" : 52,"env_name" : "lubanops-web:"}, {"env_id" : 295,"env_name" : "lubanops-api:"} ]}
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.
- Function
- URI
- Request Parameters
- Response Parameters
- Example Requests
- Example Responses
- Status Codes
- Error Codes