Memanggil JoinSecurityGroup untuk menambahkan instance ENS ke grup keamanan yang ditentukan.
Deskripsi operasi
Saat Anda memanggil operasi ini, perhatikan hal berikut: Sebelum Anda menambahkan instance ke grup keamanan, instance harus dalam status Stopped atau Running.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:JoinSecurityGroup |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityGroupId |
string |
Yes |
ID grup keamanan. |
sg-bp67acfmxazb4ph*** |
| InstanceId |
string |
No |
ID instance. |
i-bp67acfmxazb4ph*** |
| NetworkInterfaceId |
string |
No |
ID elastic network interface (ENI). |
eni-58z57orgmt6d1**** |
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"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | InvalidSecurityGroupId.NotFound | The specified SecurityGroupId does not exist. | |
| 400 | SecurityGroupRuleConflict.Duplicated | The SecurityGroup rule already exists. | |
| 400 | AuthorizationLimitExceed | The limit of authorization records in the security group reaches. | |
| 400 | SecurityGroupRule.NotFound | The input security group rule does not exist. | |
| 400 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 400 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | RegionNotSupport | The specified InstanceId of regionId does not support SecurityGroup | |
| 400 | InstanceAlreadyBound | The instance is already bound to a SecurityGroup. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.