Skip to Content
Private Network(UVPC)CreateSecGroup

Create Security Group - CreateSecGroup

Overview

Create Security Group

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateSecGroup.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
VPCIDstringVPC of the Resource IDYes
NamestringSecurity Group Name, up to 64 characters.Yes

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
SecGroupIdstringSecgroup IDYes

Example

Request Example

https://api.dezai.com/?Action=CreateSecGroup &Region=cn-zj &ProjectId=ERKOTrqw &VPCId=HpXgyYRP &Name=LDARZxGR &SecGroupRecommendation=rsEyDock

Response Example

{ "Action": "CreateSecGroupResponse", "RetCode": 0, "SecGroupId": "zsZiLFlM" }