Doc: Fix configuration API

Change-Id: Ieff5200c220376f5927835f46c1b0a5a4f34052e
This commit is contained in:
Lingxian Kong 2020-06-16 22:46:16 +12:00
parent 428e3644f8
commit d81542481b
3 changed files with 22 additions and 19 deletions

View File

@ -273,8 +273,8 @@ databases:
type: array type: array
datastore: datastore:
description: | description: |
Data store assigned to the configuration group. Data store type and version assigned to the configuration group.
Required if you did not configure the default data store. Required if the default data store is not configured.
in: body in: body
required: true required: true
type: string type: string

View File

@ -1,11 +1,12 @@
{ {
"configuration": { "configuration": {
"name": "group1",
"datastore": { "datastore": {
"type": "mysql" "type": "mysql",
"version": "5.7.29"
}, },
"values": { "values": {
"sync_binlog": 1 "connect_timeout": 200
}, }
"name": "group1"
} }
} }

View File

@ -1,14 +1,16 @@
{ {
"updated": "2015-07-01T16:38:27", "configuration": {
"name": "group1", "created": "2020-06-16T10:40:50",
"created": "2015-07-01T16:38:27", "updated": "2020-06-16T10:40:50",
"instance_count": 0,
"values": {
"sync_binlog": 1
},
"datastore_version_id": "2dc7faa0-efff-4c2b-8cff-bcd949c518a5",
"id": "2aa51628-5c42-4086-8682-137caffd2ba6",
"datastore_name": "mysql", "datastore_name": "mysql",
"datastore_version_name": "5.6", "datastore_version_id": "cf91aa9a-2192-4ec4-b7ce-5cac3b1e7dbe",
"description": null "datastore_version_name": "5.7.29",
"description": null,
"id": "9dcfca0b-d181-4b36-bbf0-09bc47b103ab",
"instance_count": 0,
"name": "group1",
"values": {
"connect_timeout": 200
}
}
} }