Enabling or Disabling WTP
Function
This API is used to enable or disable WTP.
Calling Method
For details, see Calling APIs.
URI
POST /v5/{project_id}/webtamper/static/status
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enterprise_project_id |
No |
String |
Enterprise project |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
IAM token |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
status |
No |
Boolean |
Status (enabled or disabled) |
host_id_list |
No |
Array of strings |
HostId list |
resource_id |
No |
String |
Resource ID |
charging_mode |
No |
String |
Billing mode. The value can be:
|
Response Parameters
Status code: 200
successful response
None
Example Requests
Enable WTP, set the target server IDs to a and b, and set the billing mode to pay-per-use.
POST https://{endpoint}/v5/{project_id}/webtamper/static/status { "status" : true, "host_id_list" : [ "a", "b" ], "resource_id" : "aaxxx", "charging_mode" : "on_demand" }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
successful 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