Docs
api
Cloud Database(UDB)
CreateUDBParamGroup

Create Configuration File - CreateUDBParamGroup

Overview

Create a new configuration file from an existing configuration file

Definition

Public Parameters

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

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject 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
GroupNamestringNew configuration parameter group nameYes
DescriptionstringParameter Group DescriptionYes
SrcGroupIdintSource parameter group idYes
DBTypeIdstringDB 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.6Yes
RegionFlagbooleanIs it a regional level configuration file? The default is false.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
GroupIdintNew configuration parameter group idNo

Example

Request Example

https://api.dezai.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
}