[API Doc] Support datastore version number

Change-Id: Ia38f313a87067f664e11b3f61fb60b6ce584e930
Story: 2008358
Task: 41263
This commit is contained in:
Lingxian Kong 2020-11-19 17:38:01 +13:00
parent ac0db3aec7
commit 19552632f8
9 changed files with 53 additions and 16 deletions

View File

@ -275,8 +275,11 @@ Create datastore version
.. rest_method:: POST /v1.0/{project_id}/mgmt/datastore-versions .. rest_method:: POST /v1.0/{project_id}/mgmt/datastore-versions
Admin only API. Register a datastore version, create the datastore if doesn't Admin only API. Register a datastore version, the datastore is created
exist. automatically if doesn't exist.
It's allowed to create datastore versions with the same name but different
version numbers, or vice versa.
Normal response codes: 202 Normal response codes: 202
@ -293,6 +296,7 @@ Request
- image_tags: image_tags - image_tags: image_tags
- active: active - active: active
- default: default - default: default
- version: version_number
Request Example Request Example
--------------- ---------------
@ -361,6 +365,8 @@ Update datastore version details
Admin only API. Update a specific datastore version. Admin only API. Update a specific datastore version.
The version number is not allowed to update.
Normal response codes: 202 Normal response codes: 202
Request Request
@ -370,6 +376,7 @@ Request
- project_id: project_id - project_id: project_id
- datastore_version_id: datastore_version_id - datastore_version_id: datastore_version_id
- name: datastore_version_name_optional
- datastore_manager: datastore_type - datastore_manager: datastore_type
- image: image_id - image: image_id
- image_tags: image_tags - image_tags: image_tags

View File

@ -92,11 +92,15 @@ Create database instance
Creates a database instance. Creates a database instance.
Asynchronously provisions a database instance. You must specify a flavor ID, a Normally, you must specify a flavor ID, a volume size and the network the
volume size and the tenant network ID. The service provisions the instance with instance is attached to. The service provisions the instance with a volume of
a volume of the requested size, which serves as storage for the database the requested size, which serves as storage for the database instance.
instance. The database service can only be access within the tenant network,
unless the ``access`` parameter is defined. If creating replica (a secondary instance of the replication cluster), flavor
and volume size are not needed.
The database service can only be access within the tenant network, unless the
``access`` parameter is defined.
Normal response codes: 200 Normal response codes: 200
@ -115,6 +119,7 @@ Request
- datastore: datastore1 - datastore: datastore1
- datastore.type: datastore_type - datastore.type: datastore_type
- datastore.version: datastore_version - datastore.version: datastore_version
- datastore.version_number: version_number
- name: instanceName1 - name: instanceName1
- flavorRef: flavorRef - flavorRef: flavorRef
- volume: volume - volume: volume
@ -166,6 +171,7 @@ Response Parameters
- datastore: datastore2 - datastore: datastore2
- datastore.type: datastore_type - datastore.type: datastore_type
- datastore.version: datastore_version1 - datastore.version: datastore_version1
- datastore.version_number: version_number
- volume: volume - volume: volume
- volume.size: volume_size - volume.size: volume_size
- volume.used: volume_used - volume.used: volume_used

View File

@ -74,7 +74,8 @@ user_project:
type: string type: string
version: version:
description: | description: |
Name or ID of the datastore version. Name or ID of the datastore version. If there are multiple datastore
versions with the same name but different version numbers, ID is needed.
in: path in: path
required: false required: false
type: string type: string
@ -353,10 +354,18 @@ datastore_version_id1:
type: string type: string
datastore_version_name: datastore_version_name:
description: | description: |
The name of the datastore version. The name of the datastore version. Different datastore versions can have
the same name.
in: body in: body
required: true required: true
type: string type: string
datastore_version_name_optional:
description: |
The name of the datastore version. Different datastore versions can have
the same name.
in: body
required: false
type: string
default: default:
description: | description: |
When true this datastore version is created as the default in the When true this datastore version is created as the default in the
@ -910,6 +919,14 @@ values:
in: body in: body
required: true required: true
type: string type: string
version_number:
description: |
The version number for the database. In container based trove instance
deployment, the version number is the same as the container image tag,
e.g. for MySQL, a valid version number is 5.7.30
in: body
required: false
type: string
volume: volume:
description: | description: |
A ``volume`` object. A ``volume`` object.

View File

@ -3,9 +3,10 @@
"datastore_name": "mysql", "datastore_name": "mysql",
"datastore_manager": "mysql", "datastore_manager": "mysql",
"name": "test", "name": "test",
"image": "58b83318-cb18-4189-8d89-a015dc3839dd", "image_tags": ["trove"],
"active": true, "active": true,
"default": false, "default": false,
"packages": [] "packages": [],
"version": "5.7.30"
} }
} }

View File

@ -13,7 +13,8 @@
"rel": "bookmark" "rel": "bookmark"
} }
], ],
"name": "12" "name": "12",
"version": "5.7.29"
} }
] ]
} }

View File

@ -11,7 +11,8 @@
"name": "10.4-dev-train", "name": "10.4-dev-train",
"packages": [ "packages": [
"" ""
] ],
"version": "10.4.12"
}, },
{ {
"active": true, "active": true,
@ -24,7 +25,8 @@
"name": "12", "name": "12",
"packages": [ "packages": [
"" ""
] ],
"version": "12.4"
} }
] ]
} }

View File

@ -1,4 +1,5 @@
{ {
"name": "new name",
"image": "42706631-3b76-4d1c-95c9-6a85e72eebda", "image": "42706631-3b76-4d1c-95c9-6a85e72eebda",
"active": true "active": true
} }

View File

@ -10,6 +10,7 @@
"name": "10.4-dev-train", "name": "10.4-dev-train",
"packages": [ "packages": [
"" ""
] ],
"version": "10.4.12"
} }
} }

View File

@ -12,6 +12,7 @@
"rel": "bookmark" "rel": "bookmark"
} }
], ],
"name": "12" "name": "12",
"version": "5.7.29"
} }
} }