Updating a Log
Function
This API is used to update a log.
Calling Method
For details, see Calling APIs.
URI
PUT /v3/{project_id}/elb/logtanks/{logtank_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
logtank_id |
Yes |
String |
Specifies the log ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the token used for IAM authentication. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
logtank |
Yes |
UpdateLogtankOption object |
Specifies the request parameter for updating a log. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
log_group_id |
No |
String |
Specifies the log group ID. This parameter is available for all services other than ELB. Minimum: 1 Maximum: 36 |
log_topic_id |
No |
String |
Specifies the ID of the log subscription topic. This parameter is available for all services other than ELB. Minimum: 1 Maximum: 36 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
request_id |
String |
Specifies the response body to the request for updating a log. |
logtank |
Logtank object |
Specifies the log details. |
Example Requests
Updating a log
PUT https://{ELB_Endpoint}/v3/060576798a80d5762fafc01a9b5eedc7/elb/logtanks/603e507f-3e18-498b-9460-01a3b6c28fc5 { "logtank" : { "log_topic_id" : "5b9b8370-a1fc-4c59-a509-483a673c8a94", "log_group_id" : "7733882e-f7fa-4fb0-a460-0605c48a2280" } }
Example Responses
Status code: 200
OK
{ "logtank" : { "project_id" : "060576798a80d5762fafc01a9b5eedc7", "log_topic_id" : "5b9b8370-a1fc-4c59-a509-483a673c8a94", "id" : "603e507f-3e18-498b-9460-01a3b6c28fc5", "log_group_id" : "7733882e-f7fa-4fb0-a460-0605c48a2280", "loadbalancer_id" : "47ecc304-3f1a-4cc6-9c1c-72add483b9ce" }, "request_id" : "59662f86620f8fc09c908eed060a2f0e" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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.