Memperbarui informasi tentang kelompok sumber daya khusus. Hanya nama kelompok sumber daya khusus yang dapat diperbarui.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateResource |
update |
*Resource
|
None | None |
Sintaks permintaan
PUT /api/v2/resources/{ClusterId}/{ResourceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah tempat kelompok sumber daya berada. |
cn-shanghai |
| ResourceId |
string |
Yes |
ID kelompok sumber daya. Untuk informasi selengkapnya tentang cara mengkueri ID kelompok sumber daya, lihat ListResources. |
eas-r-asdasdasd**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| ResourceName |
string |
No |
The new name of the resource group after the update. The name can be up to 27 characters in length. |
iot |
| SelfManagedResourceOptions |
object |
No |
The configuration items of the self-managed resource group. |
|
| NodeMatchLabels |
object |
No |
The tag key-value pairs for nodes. |
|
|
string |
No |
The tag key-value pairs for a node. |
"key1": "value1" |
|
| NodeTolerations |
array<object> |
No |
The tolerations for nodes. |
|
|
object |
No |
The tolerations for nodes. |
||
| key |
string |
No |
The key name. |
key1 |
| value |
string |
No |
The key value. |
value1 |
| operator |
string |
No |
Relationship between key names and key values. Valid values:
Valid values:
|
Equal |
| effect |
string |
No |
The effect. Valid values:
Valid values:
|
NoSchedule |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| ResourceId |
string |
The ID of the resource group. |
eas-r-asdasdasd**** |
| ResourceName |
string |
The name of the resource group. |
iot |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"ResourceId": "eas-r-asdasdasd****",
"ResourceName": "iot"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.