Create Configuration File - CreateUDBParamGroup
Overview
Create a new configuration file from an existing configuration file
Definition
Public Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Action | string | Corresponding API command name, the current API is CreateUDBParamGroup. | Yes |
| PublicKey | string | The user’s public key can be obtained from Console  | Yes |
| Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Region | string | Region. See List of Regions and Availability Zones | Yes |
| Zone | string | Availability Zone. See Availability Zone List | Yes |
| ProjectId | string | Project ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface. | No |
| GroupName | string | New configuration parameter group name | Yes |
| Description | string | Parameter Group Description | Yes |
| SrcGroupId | int | Source parameter group id | Yes |
| DBTypeId | string | DB type id, mysql/mongodb/postgesql are subdivided by version 1: mysql-5.1, 2: mysql-5.5, 3: percona-5.5, 4: mysql-5.6, 5: percona-5.6, 6: mysql-5.7, 7: percona-5.7, 8: mariadb-10.0, 9: mongodb-2.4, 10: mongodb-2.6, 11: mongodb-3.0, 12: mongodb-3.2, 13: postgresql-9.4, 14: postgresql-9.6 | Yes |
| RegionFlag | boolean | Is it a regional level configuration file? The default is false. | No |
Response Field
| Field Name | Type | Description Information | Required |
|---|---|---|---|
| RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
| Action | string | Operation command name. | Yes |
| Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
| GroupId | int | New configuration parameter group id | No |
Example
Request Example
https://api.surfercloud.com/?Action=CreateUDBParamGroup
&Region=cn-bj2
&Zone=cn-bj2-04
&DBTypeId=mysql-5.1
&SrcGroupId=2
&GroupName=mysql-xxx-config
&Description=xxx-config Response Example
{
"Action": "CreateUDBParamGroupResponse",
"GroupId": 3,
"RetCode": 0
}