Skip to main content

ModifySecurityGroupPolicy

Description

Call the ModifySecurityGroupPolicy to modify the internal network connection policy of the normal security group. The enterprise security group does not support modifying the internal network connection policy of the group.

Request Method

POST

Request Path

/apsara/route/Ecs/ModifySecurityGroupPolicy

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
SecurityGroupIdBODYstringYessg-bp67acfmxazb4ph***ID of the security group.
InnerAccessPolicyBODYstringYesDropIntranet connectivity policy between ECS instances in the security group. Value range: Accept: Interoperability Drop: Isolation The value is not case sensitive.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the security group. You can call the DescribeRegions to view the latest region list.
ClientTokenBODYstringNo123e4567-e89b-12d3-a456-426655440000Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters. For more details, please refer to the section on how to ensure idempotence in the cloud server ECS development guide.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}