From d81542481b2c753b0c03664ee7b67cc59356598f Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Tue, 16 Jun 2020 22:46:16 +1200 Subject: [PATCH] Doc: Fix configuration API Change-Id: Ieff5200c220376f5927835f46c1b0a5a4f34052e --- api-ref/source/parameters.yaml | 4 +-- .../samples/config-group-create-request.json | 9 +++--- .../samples/config-group-create-response.json | 28 ++++++++++--------- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 8dc1fd81d4..a685ce8845 100755 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -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 diff --git a/api-ref/source/samples/config-group-create-request.json b/api-ref/source/samples/config-group-create-request.json index 2da236da2f..51472330c3 100644 --- a/api-ref/source/samples/config-group-create-request.json +++ b/api-ref/source/samples/config-group-create-request.json @@ -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 + } } } diff --git a/api-ref/source/samples/config-group-create-response.json b/api-ref/source/samples/config-group-create-response.json index 7a2c4fe68d..825ea1aba1 100644 --- a/api-ref/source/samples/config-group-create-response.json +++ b/api-ref/source/samples/config-group-create-response.json @@ -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 + } + } +} \ No newline at end of file