Deletes a service label.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:DeleteServiceLabel |
update |
*Service
|
None | None |
Request syntax
DELETE /api/v2/services/{ClusterId}/{ServiceName}/label HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region where the service is located. |
cn-shanghai |
| ServiceName |
string |
Yes |
The service name. For more information, see ListServices. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
Keys
deprecated
|
array |
No |
The keys of the service labels that you want to delete. This parameter is deprecated. Use the LabelKeys parameter instead. |
|
|
string |
No |
The key of a service label. |
key1,key2 |
|
| LabelKeys |
array |
No |
The keys of the service labels that you want to delete. |
|
|
string |
No |
The key of a service label. |
key1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The ID of the request. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Succeed to delete service [service_from_zxxx] labels. |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Succeed to delete service [service_from_zxxx] labels."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.