调用DescribeSecurityGroupAttribute查询一个安全组的安全组规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
SecurityGroupId | string | 是 | 安全组ID。 | sg-bp67acfmxazb4ph*** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Description": "testDescription1",
"SecurityGroupId": "sg-bp1gxw6bznjjvhu3****",
"SecurityGroupName": "testSecurityGroupName2",
"Permissions": {
"Permission": [
{
"CreationTime": "2018-12-12T07:28:38Z",
"Direction": "ingress",
"Policy": "Accept",
"PortRange": "80/80",
"SourceCidrIp": "0.0.0.0/0",
"IpProtocol": "TCP",
"DestCidrIp": "0.0.0.0/0",
"Priority": 1,
"SourcePortRange": "22/22",
"Description": "testDescription1"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | - |
400 | NoPermission | Permission denied. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
400 | CallInterface | Call Inteface 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 | DependencyViolation | There is still instance(s) in the specified security group. | - |
400 | ens.interface.error | An error occurred while calling the API. | - |
访问错误中心查看更多错误码。