CreateSecurityGroup
CreateSecurityGroup
1. API Description
This API is used to create a security group.
Note
A single team can create a limited number of security groups. If you need more, please contact us.
A security group has a limited number of rules. If you need more, please contact us.
Rules in the same direction cannot be duplicated.
2. Input Parameters
The following request parameter list only provides API request parameters.
securityGroupName
Yes
String
Security group name.
The length is 1 to 64 characters. Only letters, numbers, - and periods (.) are supported.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
securityGroupId
String
The security group ID.
4. Code Example
Create a security group.
5. Developer Resources
Zenlayer Cloud API 2.0 SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
400
INVALID_PARAMETER_SECURITY_GROUP_RULE_ID_NOT_ALLOW
Security group rule ID is not allowed to be provided.
400
INVALID_PARAMETER_SECURITY_GROUP_POLICY
Invalid security group rule Policy parameter.
400
INVALID_PARAMETER_SECURITY_GROUP_PORT_RANGE
Invalid security group rule PortRange parameter.
400
INVALID_PARAMETER_SECURITY_GROUP_PRIORITY
Invalid security group rule Priority parameter.
400
INVALID_PARAMETER_SECURITY_GROUP_SOURCE_CIDR_IP
Invalid security group rule SourceCidrIp parameter.
403
OPERATION_DENIED_SECURITY_GROUP_EXIST_REPEAT_RULE
Duplicated security group rules.
403
OPERATION_DENIED_SECURITY_GROUP_RULE_EXCEED_LIMIT
Quantity of security group rules exceeds the limit.
403
OPERATION_DENIED_SECURITY_GROUP_TEAM_EXCEED_LIMIT
Quantity of security groups in a single team exceeds the limit.
Last updated