调用RevokeSecurityGroupEgress删除一条出方向安全组规则,撤销安全组出方向的访问权限。
接口说明
安全组的 API 文档中,流量的发起端为源端(Source),数据传输的接收端为目的端(Dest)。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:RevokeSecurityGroupEgress |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| IpProtocol |
string |
是 |
传输层协议。取值大小写敏感。取值范围:
枚举值:
|
all |
| PortRange |
string |
是 |
目的端安全组开放的传输层协议相关的端口范围。取值范围:
|
22/22 |
| SecurityGroupId |
string |
是 |
安全组 ID。 |
sg-bp67acfmxazb4ph*** |
| Policy |
string |
否 |
设置访问权限。取值:
默认值:accept。 枚举值:
|
accept |
| Priority |
integer |
否 |
安全组规则优先级。取值范围:1~100,数值越小,代表优先级越高。 默认值:1。 |
1 |
| DestCidrIp |
string |
是 |
目的端 IP 地址范围。支持 CIDR 格式和 IPv4 格式的 IP 地址范围。 默认值:无。 |
10.0.0.0/8 |
| SourcePortRange |
string |
否 |
源端安全组开放的传输层协议相关的端口范围。取值范围:
|
22/22 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
示例
正常返回示例
JSON格式
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 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. | 指定的安全组ID不存在。 |
| 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 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. | 接口调用出错。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。