How to authorize security group permissions while only allowing instances within the security group to access each other

坏嘻嘻
Release: 2018-09-21 16:59:23
Original
2624 people have browsed it

The content of this article is about how to authorize security group permissions when only instances in the security group are allowed to access each other. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. helped.

CreateSecurityGroup

Create a new security group. By default, a newly created security group only allows instances within the security group to access each other, and all communication requests outside the security group will be rejected. If you want to allow communication requests from other security group instances or access requests from the Internet, you need to authorize the security group permissions (AuthorizeSecurityGroup).

Description

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

In an Alibaba Cloud region, you can have up to Create 100 security groups.

When creating a VPC type security group, you must specify the parameter VpcId.

Request parameters

How to authorize security group permissions while only allowing instances within the security group to access each other

##Return parametersHow to authorize security group permissions while only allowing instances within the security group to access each other

Example

Request example

https://ecs.aliyuncs.com/?Action=CreateSecurityGroup &RegionId=cn-hangzhou &Description=for_demo &<公共请求参数>
Copy after login

Return example

XML format

 CEF72CEB-54B6-4AE8-B225-F876FF7BA984 sg-F876FF7BA 
Copy after login

JSON format

{ "RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984", "SecurityGroupId":"sg-F876FF7BA" }
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 authorize security group permissions while only allowing instances within the security group to access each other

The above is the detailed content of How to authorize security group permissions while only allowing instances within the security group to access each other. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!