Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using ECS Security Group tool to cancel the interworking between accounts

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

In this article, we will learn how to use the ECS security group tool to revoke the interconnection between accounts. There is a certain reference value, friends in need can refer to, hope to help you.

Use the ECS security group tool to undo the previous interworking between accounts

Information that needs to be prepared:

1. Account name: as the name implies, it is the account that logs in to the console.

2. The security group corresponding to ECS: the security group of the ECS that connects the private network of the account can be found in the console or queried through the API method.

3. The name of the region where ECS is located, which is shaped like a string of "cn-beijing".

The API method to be used is RevokeSecurityGroup, which is a method to undo the "outbound direction" of the security group. The relevant parameters are as follows:

Request parameter

The operation needs to be carried out in two steps: first, the An account is used to revoke the authorization rule of the B account in the An account, and then the B account is used to revoke the authorization rule of the An account.

For example, first use the An account to revoke the access rules of the B account through AliyunCLI:

The relevant account and other information is assumed to be as follows, and it is also assumed that the private network of the account was connected by submitting a ticket:

Based on the previous information, the values of all the parameters passed into AliyunCLI are as follows:

Therefore, the final command entered and executed is:

Aliyuncli ecs RevokeSecurityGroup-- SecurityGroupId sg-a12345-- RegionId cn-beijing-- IpProtocol all-- PortRange-1 Yuyu 1-- SourceGroupId sg-b67890-- SourceGroupOwnerAccount b@aliyun.com-- NicType intranet

This removes the rule of allowing access to account B under account A. Then, by analogy, change the B account to revoke the rule that allows An account access, thus completing the rule of revoking the intranet interconnection between An and B accounts.

These are the details of how to use the ECS security group tool to cancel the interconnection between accounts. have you learned anything after reading it? If you want to know more about it, welcome to the industry information!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report