How to query a security group and which other security groups have security group-level authorization behaviors

坏嘻嘻
Release: 2018-09-25 14:26:09
Original
2377 people have browsed it

The content of this article is about how to query a security group and which other security groups have security group-level authorization behaviors. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. helped.

DescribeSecurityGroupReferences

Query a security group and which other security groups have security group-level authorization behaviors.

Description

When calling this interface, you need to pay attention to:

Authorization behavior includes inbound authorization and outbound authorization .

This interface can return up to 100 records at a time.

When you cannot delete a security group (DeleteSecurityGroup), you can call this interface to check whether the specified security group has been authorized by other security groups. If the specified security group has been authorized, you need to deauthorize it before deleting the security group.

Request parameters

How to query a security group and which other security groups have security group-level authorization behaviors

##Return parameters

How to query a security group and which other security groups have security group-level authorization behaviors

Example

Request Example

https://ecs.aliyuncs.com/?Action=DescribeSecurityGroupReferences
&RegionId=cn-hangzhou
&SecurityGroupId.1=sg-1133aa
&<公共请求参数>
Copy after login

Return example

XML format

<DescribeSecurityGroupReferencesResponse>
    <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
    <SecurityGroupReferences>
      <SecurityGroupReference>
        <SecurityGroupId>sg-1133aa</SecurityGroupId>
        <ReferencingSecurityGroups>
          <ReferencingSecurityGroup>
            <SecurityGroupId>sg-2255cc</SecurityGroupId>
            <AliUid>123</AliUid>
          </ReferencingSecurityGroup>
          <ReferencingSecurityGroup>
            <SecurityGroupId>sg-2255dd</SecurityGroupId>
            <AliUid>123</AliUid>
          </ReferencingSecurityGroup>
        </ReferencingSecurityGroups>
      </SecurityGroupReference>
    </SecurityGroupReferences>
</DescribeSecurityGroupReferencesResponse>
Copy after login

JSON format

{
    "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
    "SecurityGroupReferences":[
        {
            "SecurityGroupId":"sg-1133aa",
            "SecurityReferencingGroups":[
                {
                    "AliUid":123,
                    "SecurityGroupId":"sg-2255cc"
                },
                {
                    "AliUid":123,
                    "SecurityGroupId":"sg-2255dd"
                }
            ]
        }
    ]
}
Copy after login

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to query a security group and which other security groups have security group-level authorization behaviors

The above is the detailed content of How to query a security group and which other security groups have security group-level authorization behaviors. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template