Updating a Policy Definition
Function
This API is used to update a policy definition.
URI
PUT /v1/policydefinitions/{policydefinitionid}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
policydefinitionid |
Yes |
String |
Policy definition ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
tag |
No |
String |
Tags. Use semicolons (;) to separate tags. |
Response Parameters
Status code: 200
Policy definition updated
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Example Requests
Updating a policy definition
PUT https://ucs.myhuaweicloud.com/v1/policydefinitions/{policydefinitionid}
{
"tag" : "test"
}
Example Responses
Status code: 200
Policy definition updated
{ }
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Policy definition updated |
|
400 |
Client request error. The server could not execute the request. |
|
500 |
Internal server error |
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