Skip to Content
Private Network(UVPC)UpdateSecGroupRule

Update Security Group Rules - UpdateSecGroupRule

Overview

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateSecGroupRule.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Availability Zone ListYes
ProjectIdstringProject ID. Leave blank for the default project, sub-account must fill in. Please refer to GetProjectList APINo
SecGroupIdstringID of the security group to which the rule belongs.Yes
Rule.N.RuleIdstringRule IDYes
Rule.N.DirectionstringIngress/Egress, Inbound Rules/Outbound RulesYes
Rule.N.IPRangestringIP address information, comma-separated.Yes
Rule.N.PriorityintRule Priority. Range in [1,200]Yes
Rule.N.ProtocolTypestringProtocol Type. “TCP”, “UDP”, “ICMP”, “ICMPv6”, “ALLYes
Rule.N.DstPortstringDestination port. Comma separated, such as “80,443”, “443,2000-10000Yes
Rule.N.RuleActionstringAction of rule. “Accept” or “Drop”Yes
Rule.N.RemarkstringRemark of ruleYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.dezai.com/?Action=UpdateSecGroupRule &Region=cn-zj &ProjectId=jvEKWLzK &SecGroupId=UcLTqGJl &Rule.n=XHjGGBhc &Rule.N.Direction=EZJEyKTM &Rule.N.IPRange=tpWErrRS &Rule.N.Priority=6 &Rule.N.ProtocolType=tuxVMrMm &Rule.N.DstPort=IaCWyYds &Rule.N.RuleAction=wYxNSsjS &Rule.N.Remark=OHkDyYdg

Response Example

{ "Action": "UpdateSecGroupRuleResponse", "RetCode": 0 }