ModifySecurityGroupAttribute
Description
call ModifySecurityGroupAttribute modify the name or description of a security group.
Request Method
POST
Request Path
/apsara/route/Ecs/ModifySecurityGroupAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Description | BODY | string | No | TestDescription | security group description information. 2 to 256 English or Chinese characters in length and cannot start with http:// or https. default value: empty. |
SecurityGroupName | BODY | string | No | SecurityGroupTestName | security group name. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or dashes (-). default value: empty. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
SecurityGroupId | BODY | string | Yes | sg-bp67acfmxazb4p**** | security group ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}