Get the App
SLTechnology News&Howtos  ›  Servers  › 

Modify the description of the security group entry direction rule after adding the security group rule

Shulou Source: shulou.com Published: 2022-06-02 18:29:45 10月02日 Update

This article shows you the description of modifying the security group orientation rules after adding the security group rules. The code is concise and easy to understand, which can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

ModifySecurityGroupRule

Modify the description information of the security group entry direction rule. If you haven't added security group rules, you can call AuthorizeSecurityGroup add.

Description

Any of the following sets of parameters can determine a security group entry direction rule, and specifying only one parameter cannot determine a security group rule.

Authorize access to the specified IP address range: IpProtocol, PortRange, (optional) SourcePortRange, NicType, Policy, DestCiderIp, and (optional) SourceCidrIp

Authorize access to other security groups: IpProtocol, PortRange, (optional) SourcePortRange, NicType, Policy, (optional) DestCiderIp, DestGroupOwnerAccount, and DestGroupId

Request parameter

Return parameters

All are common return parameters. See common parameters.

Example

Request example

Https://ecs.aliyuncs.com/?Action=ModifySecurityGroupRule&SecurityGroupId=sg-F876FF7BA&SourceGroupId=sg-1651FBB64&SourceGroupOwnerAccount=test@aliyun.com&IpProtocol=tcp&PortRange=80/80&Policy=allow&Description=This is a new security group rule.&

Return the example

XML format

CEF72CEB-54B6-4AE8-B225-F876FF7BA984

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.

The above content is to modify the description of the security group entry direction rules after adding the security group rules. have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Security rules parameters direction errors examples skills more permissions formats knowledge concise concise code information content address that is interfaces articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Linux Docker NVidia Shulou Tech Info