Determine the database type and HA policy based on field code of the flavor. For example, if field code of the flavor is rds.mysql.m1.large.ha, you can create MySQL primary/standby DB instances.
curl -i -k -X POST https://auth.otc-tsi.de:31943/v3/auth/tokens -d '{"auth": {"identity": {"methods": ["password"],"password": {"user": {"name": "*****","domain": {"name": "****"},"password": "****"}}},"scope": {"project": {"name": "eu-de"}}}}' -H "Content-Type: application/json"
Save the token obtained in 1 and import variables.
The following is an example command:
export token=MIIF5gY*******cNxyvq4=
URI format: GET /rds/{versionId}/{project_id}/datastores/{datastore_name}/versions
The following is an example command:
curl -i -X GET https://rds.eu-de.otc.t-systems.com/rds/v1/3160d79af34b45e78fad478a046d7615/datastores/PostgreSQL/versions -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' -k -H "X-Auth-Token: $token" -H 'X-Language: en-us'
In the URI, datastore_name indicates the type of the database to be created. Currently, the following database types are supported: MySQL, PostgreSQL, and SQLServer. These types are case sensitive.
URI format: GET /rds/{versionId}/{project_id}/flavors
Example command: curl -i -k -X GET "https://rds.eu-de.otc.t-systems.com/rds/v1/3160d79af34b45e78fad478a046d7615/flavors?dbId=c66772dd-bd7a-11e7-a4c9-00ffa8375c2a®ion=eu-de" -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' -H "X-Auth-Token: $token" -H "X-Language: en-us"
Determine the database type and HA policy based on field specCode of the flavor. For example, if field specCode of the flavor is rds.mysql.m1.large.ha, you can create MySQL primary/standby DB instances.