diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-06-16 22:46:16 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-06-16 22:46:16 +1200 |
commit | d81542481b2c753b0c03664ee7b67cc59356598f (patch) | |
tree | 43f3184c7dc2b17fae1b4d2690cb478f7c38acc6 | |
parent | 428e3644f8770a608f6e4dfc617f45f6e17cb685 (diff) | |
download | trove-d81542481b2c753b0c03664ee7b67cc59356598f.tar.gz |
Doc: Fix configuration API
Change-Id: Ieff5200c220376f5927835f46c1b0a5a4f34052e
-rwxr-xr-x | api-ref/source/parameters.yaml | 4 | ||||
-rw-r--r-- | api-ref/source/samples/config-group-create-request.json | 9 | ||||
-rw-r--r-- | api-ref/source/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 8dc1fd81..a685ce88 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 2da236da..51472330 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 7a2c4fe6..825ea1ab 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 |