Import Configuration - UploadUDBParamGroup
Overview
Import UDB Configuration
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is UploadUDBParamGroup . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | 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 |
DBTypeId | string | DB type id, 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 |
GroupName | string | Configuration Parameter Group Name | Yes |
Description | string | Parameter Group Description | Yes |
Content | string | Configuration content, the imported configuration content uses base64 encoding | Yes |
RegionFlag | boolean | Is this configuration file 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 | Configuration parameter group id | No |
Example
Request Example
https://api.surfercloud.com/?Action=UploadUDBParamGroup
&Region=cn-bj2
&Zone=cn-bj2-04
&DBTypeId=mysql-5.1
&GroupName=mysql-xxx-config
&Description=xxx-config
&Content=W2NsaWVudF0NCiBwb3J0ID0gMzMwNg0KIHNvY2tldCA9IC90bXAvbXlzcWwuc29jaw0KIFtteWlzYW1jaGtdDQoga2V5X2J1ZmZlcl9zaXplID0gMjBNDQogcmVhZF9idWZmZXIgPSAyTQ0K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0KIHRhYmxlX29wZW5fY2FjaGUgPSAxMjgNCiB0aHJlYWRfY2FjaGVfc2l6ZSA9IDUwDQogdG1wZGlyID0gL29wdC91ZGIvaW5zdGFuY2UvbXlzcWwtNS42LzE3ZTM0ZjY5LTg0ZGYtNGRmZS05MzE4LTRmNWE1ZDgyNDQ3Mi90bXANCiB1c2VyID0gbXlzcWwNCiBbbXlzcWxkX3NhZmVdDQogbG9nLWVycm9yID0gL29wdC91ZGIvaW5zdGFuY2UvbXlzcWwtNS42LzE3ZTM0ZjY5LTg0ZGYtNGRmZS05MzE4LTRmNWE1ZDgyNDQ3Mi9sb2cvbXlzcWxkLmxvZw0KIHBpZC1maWxlID0gL29wdC91ZGIvaW5zdGFuY2UvbXlzcWwtNS42LzE3ZTM0ZjY5LTg0ZGYtNGRmZS05MzE4LTRmNWE1ZDgyNDQ3Mi9teXNxbGQucGlkDQogW215c3FsZHVtcF0NCiBtYXhfYWxsb3dlZF9wYWNrZXQgPSAxNk0NCiBxdWljaw0KIFtteXNxbGhvdGNvcHldDQogaW50ZXJhY3RpdmUtdGltZW91dA0KIC9vcHQvdWRiL2luc3RhbmNlL215c3E%3D&DBTypeId=mysql-5.5&Description=test&GroupName=test1222&PublicKey=ucloudpmtest1%40ucloud.cn140474078895539362&Region=cn-east-01&Signature=941092ab104570b68b7d1b0af922b1174a81a50a
Response Example
{
"Action": "UploadUDBParamGroupResponse",
"GroupId": 2,
"RetCode": 0
}