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. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
env_entry_list |
Array of EnvEntry objects |
Environment list. |
Example Requests
Query the list of the ap-southeast-3 region's environments on which URLs are added for tracing. The application ID is 6.
/v1/apm2/openapi/transaction/business-env { "region" : "xx-xxx-xxx", "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:xx-xxx-xxx" }, { "env_id" : 51, "env_name" : "config-web:xx-xxx-xxx" }, { "env_id" : 52, "env_name" : "lubanops-web:xx-xxx-xxx" }, { "env_id" : 295, "env_name" : "lubanops-api:xx-xxx-xxx" } ] }
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot