Modifying the Log Aggregation Switch Status
Function
This API can be called only by administrators or delegated administrators to modify the status of the log aggregation switch.
Calling Method
For details, see Calling APIs.
URI
PUT /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. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
log_converge_switch |
Yes |
String |
Switch parameters |
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 |
---|---|---|
result |
String |
Result of modifying the log aggregation switch |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. Minimum: 8 Maximum: 36 |
error_msg |
String |
Error description. Minimum: 2 Maximum: 512 |
Example Requests
Log aggregation is enabled.
PUT https://{endpoint}/v1/{project_id}/lts/log-converge-config/switch /v1/{project_id}/lts/log-converge-config/switch?log_converge_switch=true
Example Responses
Status code: 200
Response body for modifying the log aggregation switch
{ "result" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body for modifying the log aggregation switch |
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