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
datastore:
description: |
Data store assigned to the configuration group.
Required if you did not configure the default data store.
Data store type and version assigned to the configuration group.
Required if the default data store is not configured.
in: body
required: true
type: string

View File

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

View File

@ -1,14 +1,16 @@
{
"updated": "2015-07-01T16:38:27",
"name": "group1",
"created": "2015-07-01T16:38:27",
"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_version_name": "5.6",
"description": null
"configuration": {
"created": "2020-06-16T10:40:50",
"updated": "2020-06-16T10:40:50",
"datastore_name": "mysql",
"datastore_version_id": "cf91aa9a-2192-4ec4-b7ce-5cac3b1e7dbe",
"datastore_version_name": "5.7.29",
"description": null,
"id": "9dcfca0b-d181-4b36-bbf0-09bc47b103ab",
"instance_count": 0,
"name": "group1",
"values": {
"connect_timeout": 200
}
}
}