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

How to modify the network connectivity policy in a security group

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

Share

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

How to modify the network connectivity policy within a security group? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

ModifySecurityGroupPolicy

Description

When calling this interface, you need to be aware of:

When the value of parameter InnerAccessPolicy is Accept, the network between instances in the security group is interconnected. At this point, the Accept priority principle is followed, that is, the networks between instances in the security group remain interconnected all the time and are not affected by user-defined security group rules.

When the value of the parameter InnerAccessPolicy is Drop, the network between instances in the security group is isolated. At this point, follow the priority principle of user-defined security group rules, that is, although the networks between instances in the security group are isolated, you can customize the security group rules to change the state of the private network. For example, you can interconnect the networks of two ECS instances in the security group through AuthorizeSecurityGroup.

You can query the private network connection policy of the current security group through DescribeSecurityGroupAttribute.

Request parameter

Return parameters

All are common return parameters. See common parameters.

Example

Request example

Https://ecs.aliyuncs.com/?Action=ModifySecurityGroupPolicy&RegionId=cn-hangzhou&SecurityGroupId=sg-1133aa&InnerAccessPolicy=Drop&

Return the example

XML format

CEF72CEB-54B6-4AE8-B225-F876xxxxxxxx

JSON format

{"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"}

Error code

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

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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