Mengubah nama atau deskripsi kelompok keamanan tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifySecurityGroupAttribute |
update |
*SecurityGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityGroupId |
string |
Yes |
ID kelompok keamanan. |
sg-bp67acfmxazb4p**** |
| Description |
string |
No |
Deskripsi kelompok keamanan. Deskripsi harus memiliki panjang 2 hingga 256 karakter dan tidak boleh diawali dengan Nilai default: null. Deskripsi tidak diubah. |
TestDescription |
| SecurityGroupName |
string |
No |
Nama kelompok keamanan. Nama harus memiliki panjang 2 hingga 128 karakter dan harus diawali dengan huruf atau karakter Tionghoa. Nama tidak boleh diawali dengan Nilai default: null. Nama tidak diubah. |
SecurityGroupTestName |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Respons error
JSONformat
{
"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSecurityGroupName.Malformed | Specified security group name is not valid. | The format of the specified security group name is invalid. Configure it according to the following rules: the default value is empty; the length is 2 to 128 English or Chinese characters; it must start with a letter or a Chinese character, and can contain digits, periods (.), underscores (_), or hyphens (-). The security group name is displayed in the console. It cannot start with http:// or https://. |
| 400 | InvalidSecurityGroupDiscription.Malformed | Specified security group description is not valid. | The specified security group description is invalid. |
| 400 | InvalidParameter | Invalid Parameter. | |
| 403 | InvalidOperation.ResourceManagedByCloudProduct | %s | Security groups managed by cloud services do not support modification operations. |
| 404 | InvalidSecurityGroupId.NotFound | The specified SecurityGroupId does not exist. | The specified security group does not exist under this user account. Check whether the security group ID is correct. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.