Creates a security rule set.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateStandardGroup

The operation that you want to perform. Set the value to CreateStandardGroup.

GroupName String Yes Finance - Production environment

The name of the security rule set.

Description String Yes The security rule set for financial instances in the production environment.

The description of the security rule set.

DbType String Yes mysql

The type of the database engine. For more information about the valid values of this parameter, see DbType parameter.

Tid Long No 3000

The ID of the tenant.

RegionId String No cn-hangzhou

The region in which Data Management Service (DMS) is activated.

Response parameters

Parameter Type Example Description
RequestId String 34E01EDD-6A16-4CF0-9541-C644D1BE01AA

The ID of the request.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
ErrorMessage String xxx

The error message returned if the request fails.

ErrorCode String 403

The error code returned if the request fails.

StandardGroup Object

The created security rule set.

GroupName String Finance - Production environment

The name of the security rule set.

Description String The security rule set for financial instances in the production environment.

The description of the security rule set.

DbType String mysql

The type of the database engine. For more information about the valid values of this parameter, see DbType parameter.

LastMenderId Long 51****

The ID of the user who creates the security rule set.

GroupMode String COMMON

The control mode. Valid values:

  • NONE_CONTROL: Flexible Management
  • STABLE: Stable Change
  • COMMON: Security Collaboration

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=CreateStandardGroup
&GroupName=Finance - Production environment
&Description=The security rule set for financial instances in the production environment.
&DbType=mysql
&Tid=3***
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateStandardGroupResponse>
    <RequestId>8EB6AE45-B52E-58DA-A400-58F4F31373DA</RequestId>
    <StandardGroup>
        <GroupName>Finance - Production environment</GroupName>
        <Description>The security rule set for financial instances in the production environment.</Description>
        <LastMenderId>51****</LastMenderId>
        <GroupMode>COMMON</GroupMode>
        <DbType>mysql</DbType>
    </StandardGroup>
    <Success>true</Success>
</CreateStandardGroupResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "8EB6AE45-B52E-58DA-A400-58F4F31373DA",
  "StandardGroup" : {
    "GroupName" : "Finance - Production environment",
    "Description" : "The security rule set for financial instances in the production environment.",
    "LastMenderId" : "51****",
    "GroupMode" : "COMMON",
    "DbType" : "mysql"
  },
  "Success" : true
}

Error codes

For a list of error codes, visit the API Error Center.