Updates the safety lock of a service to prevent accidental operations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateServiceSafetyLock |
update |
*Service
|
None | None |
Request syntax
PUT /api/v2/services/{ClusterId}/{ServiceName}/lock HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region where the service is deployed. |
cn-beijing |
| ServiceName |
string |
Yes |
The service name. For information about how to query the service name, see ListServices. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Lock |
string |
Yes |
The lock scope. Valid values:
Valid values:
|
dangerous |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
E089D584-B6F4-50C4-9902-DA2295B7**** |
| Message |
string |
The returned message. |
service safety lock updated to dangerous |
Examples
Success response
JSON format
{
"RequestId": "E089D584-B6F4-50C4-9902-DA2295B7****",
"Message": "service safety lock updated to dangerous"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.