Skip to Content
Private Network(UVPC)UpdateSecGroup

Update Security Group Basic Information - UpdateSecGroup

Overview

Update Security Group Basic Information

💡 Batch Use Array

Definition

Public Parameters

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

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. Please refer to GetProjectList APIYes
ProjectIdstringProject ID. Leave blank for the default project; sub-accounts must fill in. Please refer to GetProjectList APINo
SecGroupIdstringSecurity group resource ID array. The .n format is not supported. Type is a string array.Yes
NamestringSecurity Group Name, default is empty, if empty, no modification will be made. Name, Tag, Remark must fill in 1 or more.No
RemarkstringSecurity group remarks, default is empty, if empty, no modification will be made. Name, Tag, Remark must fill in 1 or more.No

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=UpdateSecGroup &Region=cn-zj &ProjectId=jaJNDhuE &VPCId=niVFVPGk &Name=JHizsfmg &Tag=iJMcYRQE &Remark=EJrWyZcL &SecGroupId.n=ivzIJLhI

Response Example

{ "Action": "UpdateSecGroupResponse", "RetCode": 0, "SecGroupId": "wUdGLOFL" }