Obtaining the Log Aggregation Switch Status
Function
This API can be called only by administrators or delegated administrators to obtain the status of the log aggregation switch.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/lts/log-converge-config/switch
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. |
Content-Type |
Yes |
String |
Set this parameter to application/json;charset=utf8. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
log_converge_switch |
Boolean |
Log aggregation switch. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error description. |
Example Requests
Obtain the log aggregation switch status.
GET https://{endpoint}/v1/{project_id}/lts/log-converge-config/switch /v1/{project_id}/lts/log-converge-config/switch
Example Responses
Status code: 200
Query succeeded.
{ "log_converge_switch" : true }
Status Codes
Status Code |
Description |
---|---|
200 |
Query succeeded. |
400 |
Error response |
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