Introduction
The IBM Cloud Databases v5 API is a supplemental layer that adds the capability to manage IBM Cloud Databases through a REST API. The API is designed to provide users and developers the ability to examine their database deployments, upgrade deployments, manage users, manage connections, monitor tasks, and work with backups.
Prior versions of the IBM Cloud Databases API documentation can be found at:
IBM Cloud Databases SDKs
The IBM Cloud Databases SDKs interact with the IBM Cloud Databases APIs. Current SDK availability:
Installing the IBM Cloud Databases Node.js SDK requires:
- an IBM Cloud account and
- Node.js version greater than 10.
npm install ibm-cloud-databases
View the SDK on GitHub at: https://github.com/IBM/cloud-databases-node-sdk
For general SDK usage information, refer to the Using the SDK
section usage of the IBM Cloud SDK Common Readme
file.
Installing the IBM Cloud Databases Go SDK requires:
- an IBM Cloud account
- An IAM API key to allow the SDK to access your account and
- Go version 1.14 or newer
If your application uses Go modules for dependency management (recommended), just add an import for each service that you will use in your application:
import (
"github.com/IBM/cloud-databases-go-sdk/clouddatabasesv5"
)
Next, run go build
or go mod tidy
to download and install the new dependencies and update your application's go.mod
file.
In the example shown, the clouddatabasesv5
part of the import path is the package name associated with the IBM Cloud Databases service.
Alternatively, you can use the go get
command to download and install the appropriate packages needed by your application:
go get -u github.com/IBM/cloud-databases-go-sdk/clouddatabasesv5
Be sure to use the appropriate package name for the services used by your application.
View the SDK on GitHub at: https://github.com/IBM/cloud-databases-go-sdk
For general SDK usage information, refer to the Using the SDK
section usage of the IBM Cloud SDK Common Readme
file.
Installing the IBM Cloud Databases Python SDK requires:
- an IBM Cloud account
- An IAM API key to allow the SDK to access your account and
- Python version 3.6 or newer
To install, use pip
or easy_install
:
pip install --upgrade "ibm-cloud-databases>=0.1.0"
or
easy_install --upgrade "ibm-cloud-databases>=0.1.0"
View the SDK on GitHub at: https://github.com/IBM/cloud-databases-python-sdk
For general SDK usage information, refer to the Using the SDK
section usage of the IBM Cloud SDK Common Readme
file.
Endpoint URLs
The API is available at these public endpoints
- https://api.us-south.databases.cloud.ibm.com/v5/ibm/
- https://api.eu-de.databases.cloud.ibm.com/v5/ibm/
- https://api.jp-tok.databases.cloud.ibm.com/v5/ibm/
- https://api.osl01.databases.cloud.ibm.com/v5/ibm/
- https://api.au-syd.databases.cloud.ibm.com/v5/ibm/
- https://api.us-east.databases.cloud.ibm.com/v5/ibm/
- https://api.eu-gb.databases.cloud.ibm.com/v5/ibm/
- https://api.seo01.databases.cloud.ibm.com/v5/ibm/
- https://api.che01.databases.cloud.ibm.com/v5/ibm/
The API is also available at these private endpoints
- https://api.us-south.private.databases.cloud.ibm.com/v5/ibm/
- https://api.eu-de.private.databases.cloud.ibm.com/v5/ibm/
- https://api.jp-tok.private.databases.cloud.ibm.com/v5/ibm/
- https://api.osl01.private.databases.cloud.ibm.com/v5/ibm/
- https://api.au-syd.private.databases.cloud.ibm.com/v5/ibm/
- https://api.us-east.private.databases.cloud.ibm.com/v5/ibm/
- https://api.eu-gb.private.databases.cloud.ibm.com/v5/ibm/
- https://api.seo01.private.databases.cloud.ibm.com/v5/ibm/
- https://api.che01.private.databases.cloud.ibm.com/v5/ibm/
You must use the endpoint from the same region as your deployment. A deployment's endpoint is also available on its Overview tab or in any generated service credentials.
Authentication
Access to the API uses token authentication, by using the header Authorization: Bearer <token>
. The token must be IAM-issued. You can send in an IAM API key directly as the token or use the API key to generate an IAM Bearer Token.
To call each method, you'll need to be assigned a role that includes the required IAM actions. Each method lists the associated action. For more information about IAM actions and how they map to roles, see Managing access for IBM Cloud.
Error Handling
The IBM Cloud Databases API uses standard HTTP response codes to indicate whether a method completed successfully. A 200
response always indicates success. A 4xx
type response is some sort of failure, and a 500
type response usually indicates an internal system error. Any of these responses might be accompanied by a JSON formatted body that contains more detailed error information.
Event tracking
You can monitor API activity within your account by using the IBM Cloud Activity Tracker service. Whenever an API method is called, an event is generated that you can then track and audit from within Activity Tracker. The specific event type is listed for each individual method.
For more information about how to track Certificate Manager activity, see Auditing events for IBM Cloud.
Deployment IDs and CRNs
Deployment IDs are CRNs on the IBM Cloud Databases v5 API platform. When you use the CRN, remember to URL encode the CRN value as it might include the forward-slash (/) %2F
character. For example,
crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
becomes
crn:v1:bluemix:public:databases-for-redis:us-south:a%2F274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
when URL encoded.
Related APIs
This API does not support listing your deployments. You can retrieve a list of all service instances (including your database deployments) from the Resource Controller and the Resource Controller API.
Specifically, the [`GET /resource_instances endpoint](https://cloud.ibm.com/apidocs/resource-controller#get-a-list-of-all-resource-instances) either with no query parameters or with a `resource_plan_id` can be used to list your deployments.
This API does not support provisioning and decommissioning of database deployments. Those functions are the responsibility of the Resource Controller and the Resource Controller API.
Specifically the POST /resource_instances
endpoint with appropriate resource_plan_id
(such as databases-for-postgresql-standard
or databases-for-redis-standard
) can be used to create a new database instance. Consult the Cloud Databases provisioning documentation page for details of plan ids and other settings.
Methods
List all deployable databases
Returns a list of all the types and associated major versions of database deployments that can be provisioned.
Returns a list of all the types and associated major versions of database deployments that can be provisioned.
Returns a list of all the types and associated major versions of database deployments that can be provisioned.
Returns a list of all the types and associated major versions of database deployments that can be provisioned.
GET /deployables
(cloudDatabases *CloudDatabasesV5) ListDeployables(listDeployablesOptions *ListDeployablesOptions) (result *ListDeployablesResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ListDeployablesWithContext(ctx context.Context, listDeployablesOptions *ListDeployablesOptions) (result *ListDeployablesResponse, response *core.DetailedResponse, err error)
listDeployables(params)
list_deployables(self,
**kwargs
) -> DetailedResponse
Request
No Request Parameters
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
No Request Parameters
No Request Parameters
No Request Parameters
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployables -H 'Authorization: Bearer <>' \
listDeployablesOptions := cloudDatabasesService.NewListDeployablesOptions() listDeployablesResponse, response, err := cloudDatabasesService.ListDeployables(listDeployablesOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(listDeployablesResponse, "", " ") fmt.Println(string(b))
cloudDatabasesService.listDeployables({}) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
list_deployables_response = cloud_databases_service.list_deployables().get_result() print(json.dumps(list_deployables_response, indent=2))
Response
Deployable databases with their version information
- deployables
Deployment type - typically the name of the database
Example:
elasticsearch
An array of versions of the database, their status, preferedness, and transitions
- versions
The version number
Example:
5.6
The status of this version: To be finalized
Possible values: [
deprecated
,beta
,stable
]Example:
stable
Should this version be preferred over others?
Example:
true
versions that this version can be upgraded to
- transitions
The database type
Example:
elasticsearch
method of going from from_version to to_version
Example:
restore
The version the transition in from
Example:
5.6
The version the transition is to
Example:
6.7
{
"deployables": [
{
"type": "elasticsearch",
"versions": [
{
"version": "6.7",
"status": "stable",
"is_preferred": true,
"transitions": []
},
{
"version": "5.6",
"status": "stable",
"is_preferred": false,
"transitions": [
{
"application": "elasticsearch",
"method": "restore",
"from_version": "5.6",
"to_version": "6.7"
}
]
}
]
}
]
}
Deployable databases with their version information.
- Deployables
Deployment type - typically the name of the database.
Examples:elasticsearch
An array of versions of the database, their status, preferedness, and transitions.
- Versions
The version number.
Examples:5.6
The status of this version: To be finalized.
Possible values: [
deprecated
,beta
,stable
]Examples:stable
Should this version be preferred over others?.
Examples:true
versions that this version can be upgraded to.
- Transitions
The database type.
Examples:elasticsearch
method of going from from_version to to_version.
Examples:restore
The version the transition in from.
Examples:5.6
The version the transition is to.
Examples:6.7
{
"deployables": [
{
"type": "elasticsearch",
"versions": [
{
"version": "6.7",
"status": "stable",
"is_preferred": true,
"transitions": []
},
{
"version": "5.6",
"status": "stable",
"is_preferred": false,
"transitions": [
{
"application": "elasticsearch",
"method": "restore",
"from_version": "5.6",
"to_version": "6.7"
}
]
}
]
}
]
}
Deployable databases with their version information.
- deployables
Deployment type - typically the name of the database.
Examples:elasticsearch
An array of versions of the database, their status, preferedness, and transitions.
- versions
The version number.
Examples:5.6
The status of this version: To be finalized.
Possible values: [
deprecated
,beta
,stable
]Examples:stable
Should this version be preferred over others?.
Examples:true
versions that this version can be upgraded to.
- transitions
The database type.
Examples:elasticsearch
method of going from from_version to to_version.
Examples:restore
The version the transition in from.
Examples:5.6
The version the transition is to.
Examples:6.7
{
"deployables": [
{
"type": "elasticsearch",
"versions": [
{
"version": "6.7",
"status": "stable",
"is_preferred": true,
"transitions": []
},
{
"version": "5.6",
"status": "stable",
"is_preferred": false,
"transitions": [
{
"application": "elasticsearch",
"method": "restore",
"from_version": "5.6",
"to_version": "6.7"
}
]
}
]
}
]
}
Deployable databases with their version information.
- deployables
Deployment type - typically the name of the database.
Examples:elasticsearch
An array of versions of the database, their status, preferedness, and transitions.
- versions
The version number.
Examples:5.6
The status of this version: To be finalized.
Possible values: [
deprecated
,beta
,stable
]Examples:stable
Should this version be preferred over others?.
Examples:true
versions that this version can be upgraded to.
- transitions
The database type.
Examples:elasticsearch
method of going from from_version to to_version.
Examples:restore
The version the transition in from.
Examples:5.6
The version the transition is to.
Examples:6.7
Status Code
Deployable database objects
Invalid token
{ "deployables": [ { "type": "elasticsearch", "versions": [ { "version": "6.7", "status": "stable", "is_preferred": true, "transitions": [] }, { "version": "5.6", "status": "stable", "is_preferred": false, "transitions": [ { "application": "elasticsearch", "method": "restore", "from_version": "5.6", "to_version": "6.7" } ] } ] } ] }
{ "deployables": [ { "type": "elasticsearch", "versions": [ { "version": "6.7", "status": "stable", "is_preferred": true, "transitions": [] }, { "version": "5.6", "status": "stable", "is_preferred": false, "transitions": [ { "application": "elasticsearch", "method": "restore", "from_version": "5.6", "to_version": "6.7" } ] } ] } ] }
List all deployable regions
Returns a list of all the regions that deployments can be provisioned into from the current region. Used to determine region availability for read-only replicas
Returns a list of all the regions that deployments can be provisioned into from the current region. Used to determine region availability for read-only replicas.
Returns a list of all the regions that deployments can be provisioned into from the current region. Used to determine region availability for read-only replicas.
Returns a list of all the regions that deployments can be provisioned into from the current region. Used to determine region availability for read-only replicas.
GET /regions
(cloudDatabases *CloudDatabasesV5) ListRegions(listRegionsOptions *ListRegionsOptions) (result *ListRegionsResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ListRegionsWithContext(ctx context.Context, listRegionsOptions *ListRegionsOptions) (result *ListRegionsResponse, response *core.DetailedResponse, err error)
listRegions(params)
list_regions(self,
**kwargs
) -> DetailedResponse
Request
No Request Parameters
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
No Request Parameters
No Request Parameters
No Request Parameters
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/regions -H 'Authorization: Bearer <>' \
listRegionsOptions := cloudDatabasesService.NewListRegionsOptions() listRegionsResponse, response, err := cloudDatabasesService.ListRegions(listRegionsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(listRegionsResponse, "", " ") fmt.Println(string(b))
cloudDatabasesService.listRegions({}) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
list_regions_response = cloud_databases_service.list_regions().get_result() print(json.dumps(list_regions_response, indent=2))
Response
An array of region ids
{
"regions": [
"eu-gb",
"us-south"
]
}
An array of region ids.
{
"regions": [
"eu-gb",
"us-south"
]
}
An array of region ids.
{
"regions": [
"eu-gb",
"us-south"
]
}
An array of region ids.
Status Code
A regions object
Invalid token
{ "regions": [ "eu-gb", "us-south" ] }
{ "regions": [ "eu-gb", "us-south" ] }
Get deployment information
Gets the full data that is associated with a deployment. This data includes the ID, name, database type, and version.
Gets the full data that is associated with a deployment. This data includes the ID, name, database type, and version.
Gets the full data that is associated with a deployment. This data includes the ID, name, database type, and version.
Gets the full data that is associated with a deployment. This data includes the ID, name, database type, and version.
GET /deployments/{id}
(cloudDatabases *CloudDatabasesV5) GetDeploymentInfo(getDeploymentInfoOptions *GetDeploymentInfoOptions) (result *GetDeploymentInfoResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetDeploymentInfoWithContext(ctx context.Context, getDeploymentInfoOptions *GetDeploymentInfoOptions) (result *GetDeploymentInfoResponse, response *core.DetailedResponse, err error)
getDeploymentInfo(params)
get_deployment_info(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetDeploymentInfoOptions
struct and set the fields to provide parameter values for the GetDeploymentInfo
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetDeploymentInfo options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id} -H 'Authorization: Bearer <>' \
getDeploymentInfoOptions := cloudDatabasesService.NewGetDeploymentInfoOptions( deploymentID, ) getDeploymentInfoResponse, response, err := cloudDatabasesService.GetDeploymentInfo(getDeploymentInfoOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(getDeploymentInfoResponse, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.getDeploymentInfo(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
get_deployment_info_response = cloud_databases_service.get_deployment_info( id=deployment_id, ).get_result() print(json.dumps(get_deployment_info_response, indent=2))
Response
- deployment
ID of this deployment.
Example:
crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Readable name of this deployment.
Example:
crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Database type within this deployment.
Example:
redis
Platform for this deployment.
Example:
satellite, classic
Platform-specific options for this deployment.
- platform_options
Version number of the database.
Example:
4
Login name of administration level user.
- admin_usernames
Whether access to this deployment is enabled from the public internet. This property can be modified by updating this service instance through the Resource Controller API.
Example:
true
Whether access to this deployment is enabled from IBM Cloud via the IBM Cloud backbone network. This property can be modified by updating this service instance through the Resource Controller API.
{
"deployment": {
"id": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::",
"name": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::",
"type": "enterprisedb",
"platform_options": {
"disk_encryption_key_crn": "",
"backup_encryption_key_crn": ""
},
"version": "12",
"admin_usernames": {
"database": "admin"
},
"enable_private_endpoints": false,
"enable_public_endpoints": true,
"disablements": []
}
}
- Deployment
ID of this deployment.
Examples:crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Readable name of this deployment.
Examples:crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Database type within this deployment.
Examples:redis
Platform-specific options for this deployment.
Version number of the database.
Examples:4
Login name of administration level user.
Whether access to this deployment is enabled from the public internet. This property can be modified by updating this service instance through the Resource Controller API.
Examples:true
Whether access to this deployment is enabled from IBM Cloud via the IBM Cloud backbone network. This property can be modified by updating this service instance through the Resource Controller API.
Examples:false
{
"deployment": {
"id": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::",
"name": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::",
"type": "enterprisedb",
"platform_options": {
"disk_encryption_key_crn": "",
"backup_encryption_key_crn": ""
},
"version": "12",
"admin_usernames": {
"database": "admin"
},
"enable_private_endpoints": false,
"enable_public_endpoints": true,
"disablements": []
}
}
- deployment
ID of this deployment.
Examples:crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Readable name of this deployment.
Examples:crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Database type within this deployment.
Examples:redis
Platform-specific options for this deployment.
Version number of the database.
Examples:4
Login name of administration level user.
Whether access to this deployment is enabled from the public internet. This property can be modified by updating this service instance through the Resource Controller API.
Examples:true
Whether access to this deployment is enabled from IBM Cloud via the IBM Cloud backbone network. This property can be modified by updating this service instance through the Resource Controller API.
Examples:false
{
"deployment": {
"id": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::",
"name": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::",
"type": "enterprisedb",
"platform_options": {
"disk_encryption_key_crn": "",
"backup_encryption_key_crn": ""
},
"version": "12",
"admin_usernames": {
"database": "admin"
},
"enable_private_endpoints": false,
"enable_public_endpoints": true,
"disablements": []
}
}
- deployment
ID of this deployment.
Examples:crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Readable name of this deployment.
Examples:crn:v1:bluemix:public:databases-for-redis:us-south:a/274074dce64e9c423ffc238516c755e1:29caf0e7-120f-4da8-9551-3abf57ebcfc7::
Database type within this deployment.
Examples:redis
Platform-specific options for this deployment.
Version number of the database.
Examples:4
Login name of administration level user.
Whether access to this deployment is enabled from the public internet. This property can be modified by updating this service instance through the Resource Controller API.
Examples:true
Whether access to this deployment is enabled from IBM Cloud via the IBM Cloud backbone network. This property can be modified by updating this service instance through the Resource Controller API.
Examples:false
Status Code
A deployment response
Invalid token
{ "deployment": { "id": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::", "name": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::", "type": "enterprisedb", "platform": "classic", "platform_options": { "disk_encryption_key_crn": "", "backup_encryption_key_crn": "" }, "version": "12", "admin_usernames": { "database": "admin" }, "enable_private_endpoints": false, "enable_public_endpoints": true, "disablements": [] } }
{ "deployment": { "id": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::", "name": "crn:v1:staging:public:databases-for-enterprisedb:us-south:a/b9552134280015ebfde430a819fa4bb3:5589ecbf-de5f-4eac-9917-df0dd7e706c8::", "type": "enterprisedb", "platform": "classic", "platform_options": { "disk_encryption_key_crn": "", "backup_encryption_key_crn": "" }, "version": "12", "admin_usernames": { "database": "admin" }, "enable_private_endpoints": false, "enable_public_endpoints": true, "disablements": [] } }
Creates a user based on user type
Creates a user in the database that can access the database through a connection.
Creates a user in the database that can access the database through a connection.
Creates a user in the database that can access the database through a connection.
Creates a user in the database that can access the database through a connection.
POST /deployments/{id}/users/{user_type}
(cloudDatabases *CloudDatabasesV5) CreateDatabaseUser(createDatabaseUserOptions *CreateDatabaseUserOptions) (result *CreateDatabaseUserResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) CreateDatabaseUserWithContext(ctx context.Context, createDatabaseUserOptions *CreateDatabaseUserOptions) (result *CreateDatabaseUserResponse, response *core.DetailedResponse, err error)
createDatabaseUser(params)
create_database_user(self,
id: str,
user_type: str,
*,
user: 'CreateDatabaseUserRequestUser' = None,
**kwargs
) -> DetailedResponse
Request
Instantiate the CreateDatabaseUserOptions
struct and set the fields to provide parameter values for the CreateDatabaseUser
method.
Path Parameters
Deployment ID
User type
Examples:database type
allows management, monitoring, and backing up deployments
Allows only read-only connections. Available only on EnterpriseDB and PostgreSQL.
Parameters for creating the user
{
"user": {
"username": "user",
"password": "v3ry-1-secUre-pAssword-2"
}
}
- user
Username for new user
Example:
user
Password for new user. Password must be at least 15 characters in length and contain a letter and number.
Possible values: length ≥ 15
Example:
v3ry-1-secUre-pAssword-2
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The CreateDatabaseUser options.
Deployment ID.
User type.
Examples:database
- Examples:
{ "username": "user", "password": "password123" }
- User
User type for new user.
Examples:database
Username for new user.
Examples:james
Password for new user.
Examples:password123
parameters
Deployment ID.
User type.
Examples:- user
User type for new user.
Examples:database
Username for new user.
Examples:james
Password for new user.
Examples:kickoutthe
parameters
Deployment ID.
User type.
Examples:- user
User type for new user.
Examples:database
Username for new user.
Examples:james
Password for new user.
Examples:kickoutthe
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/users/{user_type} -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"user": {"username": "user", "password": "v3ry-1-secUre-pAssword-2"}}' \
createDatabaseUserRequestUserModel := &clouddatabasesv5.CreateDatabaseUserRequestUser{ Username: &username, Password: &password, } createDatabaseUserOptions := cloudDatabasesService.NewCreateDatabaseUserOptions( deploymentID, userType, ) createDatabaseUserOptions.SetUser(createDatabaseUserRequestUserModel) createDatabaseUserResponse, response, err := cloudDatabasesService.CreateDatabaseUser(createDatabaseUserOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(createDatabaseUserResponse, "", " ") fmt.Println(string(b))
const createDatabaseUserRequestUserModel = { username: username, password: password, }; const params = { id: deploymentId, userType: userType, user: createDatabaseUserRequestUserModel, }; cloudDatabasesService.createDatabaseUser(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
create_database_user_request_user_model = CreateDatabaseUserRequestUser( username=username, password=password, ) create_database_user_response = cloud_databases_service.create_database_user( id=deployment_id, user_type=user_type, user=create_database_user_request_user_model, ).get_result() print(json.dumps(create_database_user_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b",
"description": "Creating user for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:21:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b",
"description": "Creating user for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:21:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b",
"description": "Creating user for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:21:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to create the user
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b", "description": "Creating user for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:21:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b", "description": "Creating user for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:21:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Update a user's password or role.
Sets the password or role of a specified user. Updating roles is only supported for Redis 6.0 or greater.
Sets the password of a specified user.
Sets the password of a specified user.
Sets the password of a specified user.
PATCH /deployments/{id}/users/{user_type}/{username}
(cloudDatabases *CloudDatabasesV5) ChangeUserPassword(changeUserPasswordOptions *ChangeUserPasswordOptions) (result *ChangeUserPasswordResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ChangeUserPasswordWithContext(ctx context.Context, changeUserPasswordOptions *ChangeUserPasswordOptions) (result *ChangeUserPasswordResponse, response *core.DetailedResponse, err error)
changeUserPassword(params)
change_user_password(self,
id: str,
user_type: str,
username: str,
*,
user: 'APasswordSettingUser' = None,
**kwargs
) -> DetailedResponse
Request
Instantiate the ChangeUserPasswordOptions
struct and set the fields to provide parameter values for the ChangeUserPassword
method.
Path Parameters
Deployment ID
User type
Example:
database
User ID
Example:
user
User Details
{
"user": {
"password": "v3ry-1-secUre-pAssword-2"
}
}
- user
Password for user. Password must be at least 15 characters in length and contain a letter and number.
Possible values: length ≥ 15
Example:
v3ry-1-secUre-pAssword-2
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ChangeUserPassword options.
Deployment ID.
User type.
Examples:database
User ID.
Examples:james
- Examples:
{ "password": "xyzzyyzzyx" }
- User
- Examples:
xyzzy
parameters
Deployment ID.
User type.
Examples:User ID.
Examples:- user
- Examples:
xyzzy
parameters
Deployment ID.
User type.
Examples:User ID.
Examples:- user
- Examples:
xyzzy
curl -X PATCH https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/users/{user_type}/{username} -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"user": {"password": "v3ry-1-secUre-pAssword-2"}}' \
aPasswordSettingUserModel := &clouddatabasesv5.APasswordSettingUser{ Password: &newPassword, } changeUserPasswordOptions := cloudDatabasesService.NewChangeUserPasswordOptions( deploymentID, userType, username, ) changeUserPasswordOptions.SetUser(aPasswordSettingUserModel) changeUserPasswordResponse, response, err := cloudDatabasesService.ChangeUserPassword(changeUserPasswordOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(changeUserPasswordResponse, "", " ") fmt.Println(string(b))
const aPasswordSettingUserModel = { password: newPassowrd, }; const params = { id: deploymentId, userType: userType, username: username, user: aPasswordSettingUserModel, }; cloudDatabasesService.changeUserPassword(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
a_password_setting_user_model = APasswordSettingUser( password=new_password, ) change_user_password_response = cloud_databases_service.change_user_password( id=deployment_id, user_type=user_type, username=username, user=a_password_setting_user_model, ).get_result() print(json.dumps(change_user_password_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b",
"description": "Setting user password for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:22:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b",
"description": "Setting user password for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:22:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b",
"description": "Setting user password for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:22:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to set the user password
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b", "description": "Setting user password for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:22:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b", "description": "Setting user password for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:22:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Deletes a user based on user type
Removes a user from the deployment.
Removes a user from the deployment.
Removes a user from the deployment.
Removes a user from the deployment.
DELETE /deployments/{id}/users/{user_type}/{username}
(cloudDatabases *CloudDatabasesV5) DeleteDatabaseUser(deleteDatabaseUserOptions *DeleteDatabaseUserOptions) (result *DeleteDatabaseUserResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) DeleteDatabaseUserWithContext(ctx context.Context, deleteDatabaseUserOptions *DeleteDatabaseUserOptions) (result *DeleteDatabaseUserResponse, response *core.DetailedResponse, err error)
deleteDatabaseUser(params)
delete_database_user(self,
id: str,
user_type: str,
username: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the DeleteDatabaseUserOptions
struct and set the fields to provide parameter values for the DeleteDatabaseUser
method.
Path Parameters
Deployment ID
User type
Example:
database
Username
Example:
user
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The DeleteDatabaseUser options.
Deployment ID.
User type.
Examples:database
Username.
Examples:james
parameters
Deployment ID.
User type.
Examples:Username.
Examples:
parameters
Deployment ID.
User type.
Examples:Username.
Examples:
curl -X DELETE https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/users/{user_type}/{username} -H 'Authorization: Bearer <>' \
deleteDatabaseUserOptions := cloudDatabasesService.NewDeleteDatabaseUserOptions( deploymentID, userType, username, ) deleteDatabaseUserResponse, response, err := cloudDatabasesService.DeleteDatabaseUser(deleteDatabaseUserOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(deleteDatabaseUserResponse, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, userType: userType, username: username, }; cloudDatabasesService.deleteDatabaseUser(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
delete_database_user_response = cloud_databases_service.delete_database_user( id=deployment_id, user_type=user_type, username=username, ).get_result() print(json.dumps(delete_database_user_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96555393b",
"description": "Deleting user from database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-99bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:23:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96555393b",
"description": "Deleting user from database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-99bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:23:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96555393b",
"description": "Deleting user from database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-99bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:23:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to delete the user
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96555393b", "description": "Deleting user from database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-99bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 10, "created_at": "2018-03-28T10:23:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96555393b", "description": "Deleting user from database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-99bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 10, "created_at": "2018-03-28T10:23:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Discover user name and password information for a deployment for a user with an endpoint type.
Only for Redis v5 and prior: Discover connection information for a deployment for a user with an endpoint type.
GET /deployments/{id}/users/{user_id}/
Request
Path Parameters
Deployment ID
User ID
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/users/{user_id} -H 'Authorization: Bearer <>' \
Response
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
User
Not Found
{ "connection": { "rediss": { "user": { "username": "admin", "password": "v3ry-1-secUre-pAssword-2" } } } }
Change your database configuration
Change your database configuration. Available for PostgreSQL, EnterpriseDB, MySQL, RabbitMQ and Redis ONLY.
Change your database configuration. Available for PostgreSQL, EnterpriseDB, and Redis ONLY.
Change your database configuration. Available for PostgreSQL, EnterpriseDB, and Redis ONLY.
Change your database configuration. Available for PostgreSQL, EnterpriseDB, and Redis ONLY.
PATCH /deployments/{id}/configuration
(cloudDatabases *CloudDatabasesV5) UpdateDatabaseConfiguration(updateDatabaseConfigurationOptions *UpdateDatabaseConfigurationOptions) (result *UpdateDatabaseConfigurationResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) UpdateDatabaseConfigurationWithContext(ctx context.Context, updateDatabaseConfigurationOptions *UpdateDatabaseConfigurationOptions) (result *UpdateDatabaseConfigurationResponse, response *core.DetailedResponse, err error)
updateDatabaseConfiguration(params)
update_database_configuration(self,
id: str,
configuration: 'SetConfigurationConfiguration',
**kwargs
) -> DetailedResponse
Request
Instantiate the UpdateDatabaseConfigurationOptions
struct and set the fields to provide parameter values for the UpdateDatabaseConfiguration
method.
Path Parameters
Deployment ID
Database configuration
{
"configuration": {
"max_connections": 200
}
}
PostgreSQL and EnterpriseDB Configuration
- configuration
The number of seconds to wait before forces a switch to the next WAL file if a new file has not been started.
Possible values: value ≥ 300
Deadlock timeout in ms. The time to wait on a lock before checking for deadlock. Also the duration where lock waits will be logged.
Possible values: 100 ≤ value ≤ 2147483647
Number of simultaneous requests that can be handled efficiently by the disk subsystem.
Possible values: 1 ≤ value ≤ 1000
Causes each attempted connection to the server to be logged, as well as successful completion of client authentication.
Allowable values: [
off
,on
]Causes session terminations to be logged. The log output provides information similar to log_connections, plus the duration of the session.
Allowable values: [
off
,on
]The minimum number of milliseconds for execution time above which statements will be logged.
Possible values: value ≥ 100
Maximum connections allowed.
Possible values: value ≥ 115
Max number of transactions that can be in the "prepared" state simultaneously.
Possible values: value ≥ 0
Maximum number of simultaneously defined replication slots.
Possible values: 10 ≤ value ≤ 262143
Maximum number of simultaneously running WAL sender processes.
Possible values: 12 ≤ value ≤ 262143
The number of 8kB shared memory buffers used by the server. Set to 1/4 of memory. Setting too high will cause crashes or prevent the database from starting.
Possible values: 16 ≤ value ≤ 1048576
Sets the current transaction's synchronization level. Off can result in data loss. remote_write with enable synchronous replication which will impact performance and availabilty.
Allowable values: [
local
,off
]The number of TCP keepalives that can be lost before the server's connection to the client is considered dead.
Possible values: 0 ≤ value ≤ 2147483647
The number of seconds of inactivity after which TCP should send a keepalive message to the client.
Possible values: 0 ≤ value ≤ 2147483647
The number of seconds after which a TCP keepalive message that is not acknowledged by the client should be retransmitted
Possible values: 0 ≤ value ≤ 2147483647
WAL level. Set to logical to use logical decoding or logical replication.
Allowable values: [
hot_standby
,logical
]
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The UpdateDatabaseConfiguration options.
Deployment ID.
PostgreSQL and EnterpriseDB Configuration.
- Configuration
Maximum connections allowed.
Possible values: value ≥ 115
Max number of transactions that can be in the "prepared" state simultaneously.
Possible values: value ≥ 0
Deadlock timeout in ms. The time to wait on a lock before checking for deadlock. Also the duration where lock waits will be logged.
Possible values: 100 ≤ value ≤ 2147483647
Number of simultaneous requests that can be handled efficiently by the disk subsystem.
Possible values: 1 ≤ value ≤ 1000
Maximum number of simultaneously defined replication slots.
Possible values: 10 ≤ value ≤ 262143
Maximum number of simultaneously running WAL sender processes.
Possible values: 12 ≤ value ≤ 262143
The number of 8kB shared memory buffers used by the server. Set to 1/4 of memory. Setting too high will cause crashes or prevent the database from starting.
Possible values: 16 ≤ value ≤ 1048576
Sets the current transaction's synchronization level. Off can result in data loss. remote_write with enable synchronous replication which will impact performance and availabilty.
Allowable values: [
local
,off
]WAL level. Set to logical to use logical decoding or logical replication.
Allowable values: [
hot_standby
,logical
]The number of seconds to wait before forces a switch to the next WAL file if a new file has not been started.
Possible values: value ≥ 300
The minimum number of milliseconds for execution time above which statements will be logged.
Possible values: value ≥ 100
parameters
Deployment ID.
PostgreSQL and EnterpriseDB Configuration.
- configuration
Maximum connections allowed.
Possible values: value ≥ 115
Max number of transactions that can be in the "prepared" state simultaneously.
Possible values: value ≥ 0
Deadlock timeout in ms. The time to wait on a lock before checking for deadlock. Also the duration where lock waits will be logged.
Possible values: 100 ≤ value ≤ 2147483647
Number of simultaneous requests that can be handled efficiently by the disk subsystem.
Possible values: 1 ≤ value ≤ 1000
Maximum number of simultaneously defined replication slots.
Possible values: 10 ≤ value ≤ 262143
Maximum number of simultaneously running WAL sender processes.
Possible values: 12 ≤ value ≤ 262143
The number of 8kB shared memory buffers used by the server. Set to 1/4 of memory. Setting too high will cause crashes or prevent the database from starting.
Possible values: 16 ≤ value ≤ 1048576
Sets the current transaction's synchronization level. Off can result in data loss. remote_write with enable synchronous replication which will impact performance and availabilty.
Allowable values: [
local
,off
]WAL level. Set to logical to use logical decoding or logical replication.
Allowable values: [
hot_standby
,logical
]The number of seconds to wait before forces a switch to the next WAL file if a new file has not been started.
Possible values: value ≥ 300
The minimum number of milliseconds for execution time above which statements will be logged.
Possible values: value ≥ 100
parameters
Deployment ID.
PostgreSQL and EnterpriseDB Configuration.
- configuration
Maximum connections allowed.
Possible values: value ≥ 115
Max number of transactions that can be in the "prepared" state simultaneously.
Possible values: value ≥ 0
Deadlock timeout in ms. The time to wait on a lock before checking for deadlock. Also the duration where lock waits will be logged.
Possible values: 100 ≤ value ≤ 2147483647
Number of simultaneous requests that can be handled efficiently by the disk subsystem.
Possible values: 1 ≤ value ≤ 1000
Maximum number of simultaneously defined replication slots.
Possible values: 10 ≤ value ≤ 262143
Maximum number of simultaneously running WAL sender processes.
Possible values: 12 ≤ value ≤ 262143
The number of 8kB shared memory buffers used by the server. Set to 1/4 of memory. Setting too high will cause crashes or prevent the database from starting.
Possible values: 16 ≤ value ≤ 1048576
Sets the current transaction's synchronization level. Off can result in data loss. remote_write with enable synchronous replication which will impact performance and availabilty.
Allowable values: [
local
,off
]WAL level. Set to logical to use logical decoding or logical replication.
Allowable values: [
hot_standby
,logical
]The number of seconds to wait before forces a switch to the next WAL file if a new file has not been started.
Possible values: value ≥ 300
The minimum number of milliseconds for execution time above which statements will be logged.
Possible values: value ≥ 100
curl -X PATCH https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/configuration -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"configuration": {"max_connections": 200}}' \
setConfigurationConfigurationModel := &clouddatabasesv5.SetConfigurationConfigurationPgConfiguration{ MaxConnections: core.Int64Ptr(int64(200)), MaxPreparedTransactions: core.Int64Ptr(int64(0)), DeadlockTimeout: core.Int64Ptr(int64(100)), EffectiveIoConcurrency: core.Int64Ptr(int64(1)), MaxReplicationSlots: core.Int64Ptr(int64(10)), MaxWalSenders: core.Int64Ptr(int64(12)), SharedBuffers: core.Int64Ptr(int64(16)), SynchronousCommit: core.StringPtr("local"), WalLevel: core.StringPtr("hot_standby"), ArchiveTimeout: core.Int64Ptr(int64(300)), LogMinDurationStatement: core.Int64Ptr(int64(100)), } updateDatabaseConfigurationOptions := cloudDatabasesService.NewUpdateDatabaseConfigurationOptions( deploymentID, setConfigurationConfigurationModel, ) updateDatabaseConfigurationResponse, response, err := cloudDatabasesService.UpdateDatabaseConfiguration(updateDatabaseConfigurationOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(updateDatabaseConfigurationResponse, "", " ") fmt.Println(string(b))
const setConfigurationConfigurationModel = { max_connections: 200, max_prepared_transactions: 0, deadlock_timeout: 100, effective_io_concurrency: 1, max_replication_slots: 10, max_wal_senders: 12, shared_buffers: 16, synchronous_commit: 'local', wal_level: 'hot_standby', archive_timeout: 300, log_min_duration_statement: 100, }; const params = { id: deploymentId, configuration: setConfigurationConfigurationModel, }; cloudDatabasesService.updateDatabaseConfiguration(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
set_configuration_configuration_model = SetConfigurationConfigurationPGConfiguration( max_connections=200, max_prepared_transactions=0, deadlock_timeout=100, effective_io_concurrency=1, max_replication_slots=10, max_wal_senders=12, shared_buffers=16, synchronous_commit='local', wal_level='hot_standby', archive_timeout=300, log_min_duration_statement=100, ) update_database_configuration_response = cloud_databases_service.update_database_configuration( id=deployment_id, configuration=set_configuration_configuration_model, ).get_result() print(json.dumps(update_database_configuration_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393a",
"description": "Applying new configuration",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393a",
"description": "Applying new configuration",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393a",
"description": "Applying new configuration",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393a", "description": "Applying new configuration", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393a", "description": "Applying new configuration", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
Get the schema of the database configuration
Get the schema of the database configuration. Available for PostgreSQL and Redis ONLY.
GET /deployments/{id}/configuration/schema
Request
Path Parameters
Deployment ID
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/configuration/schema -H 'Authorization: Bearer <>' \
Response
Database Configuration Schema
- schema
Status Code
A database configuration schema
Invalid token
not found
{ "schema": { "max_connections": { "default": 115, "default_description": "This property has no documentation for its default value.", "description": "Maximum Connections allowed.", "kind": "integer", "requires_restart": true, "min": 115, "max": 30000, "step": null }, "max_prepared_transactions": { "default": 0, "default_description": "This property has no documentation for its default value.", "description": "Max number of transactions that can be in the \"prepared\" state simultaneously.", "kind": "integer", "max": null, "min": 0, "requires_restart": true, "step": null } } }
List read-only replica information
Get the read-only replicas associated with a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
Get the read-only replicas associated with a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
Get the read-only replicas associated with a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
Get the read-only replicas associated with a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
GET /deployments/{id}/remotes
(cloudDatabases *CloudDatabasesV5) ListRemotes(listRemotesOptions *ListRemotesOptions) (result *ListRemotesResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ListRemotesWithContext(ctx context.Context, listRemotesOptions *ListRemotesOptions) (result *ListRemotesResponse, response *core.DetailedResponse, err error)
listRemotes(params)
list_remotes(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the ListRemotesOptions
struct and set the fields to provide parameter values for the ListRemotes
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ListRemotes options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/remotes -H 'Authorization: Bearer <>' \
listRemotesOptions := cloudDatabasesService.NewListRemotesOptions( deploymentID, ) listRemotesResponse, response, err := cloudDatabasesService.ListRemotes(listRemotesOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(listRemotesResponse, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.listRemotes(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
list_remotes_response = cloud_databases_service.list_remotes( id=deployment_id, ).get_result() print(json.dumps(list_remotes_response, indent=2))
Response
Remotes
- remotes
Leader ID, if applicable
Example:
01f30581-54f8-41a4-8193-4a04cc022e9b-h
Replica IDs, if applicable
Examples:[ "23h40521-57g6-31b5-9256-6b15df456f7j-g", "g1d8g764-hngm-595j-7349450f3058-y" ]
{
"remotes": {
"leader": "",
"replicas": [
"crn:v1:bluemix:public:databases-for-postgresql:us-south:a/389574dce64e9c423ffc238516c755e1:0e399ae3-4a1a-476d-b85b-755c7af54788::"
]
}
}
Remotes.
- Remotes
Leader ID, if applicable.
Examples:01f30581-54f8-41a4-8193-4a04cc022e9b-h
Replica IDs, if applicable.
Examples:[ "23h40521-57g6-31b5-9256-6b15df456f7j-g", "g1d8g764-hngm-595j-7349450f3058-y" ]
{
"remotes": {
"leader": "",
"replicas": [
"crn:v1:bluemix:public:databases-for-postgresql:us-south:a/389574dce64e9c423ffc238516c755e1:0e399ae3-4a1a-476d-b85b-755c7af54788::"
]
}
}
Remotes.
- remotes
Leader ID, if applicable.
Examples:01f30581-54f8-41a4-8193-4a04cc022e9b-h
Replica IDs, if applicable.
Examples:[ "23h40521-57g6-31b5-9256-6b15df456f7j-g", "g1d8g764-hngm-595j-7349450f3058-y" ]
{
"remotes": {
"leader": "",
"replicas": [
"crn:v1:bluemix:public:databases-for-postgresql:us-south:a/389574dce64e9c423ffc238516c755e1:0e399ae3-4a1a-476d-b85b-755c7af54788::"
]
}
}
Remotes.
- remotes
Leader ID, if applicable.
Examples:01f30581-54f8-41a4-8193-4a04cc022e9b-h
Replica IDs, if applicable.
Examples:[ "23h40521-57g6-31b5-9256-6b15df456f7j-g", "g1d8g764-hngm-595j-7349450f3058-y" ]
Status Code
A remotes object
Invalid token
not found
{ "remotes": { "leader": "", "replicas": [ "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/389574dce64e9c423ffc238516c755e1:0e399ae3-4a1a-476d-b85b-755c7af54788::" ] } }
{ "remotes": { "leader": "", "replicas": [ "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/389574dce64e9c423ffc238516c755e1:0e399ae3-4a1a-476d-b85b-755c7af54788::" ] } }
Modify read-only replication on a deployment
Promote a read-only remote replica to leader by calling with leader set to an empty string. Available for PostgreSQL and EnterpriseDB ONLY.
PATCH /deployments/{id}/remotes
Request
Path Parameters
Deployment ID
Parameters for promoting a read-only replica
- remotes
Leader should be an empty string
Option to restore instance without taking a backup once data is restored. Allows restored deployment to be available sooner.
Default:
false
curl -X PATCH https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/remotes -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"remotes": {"leader": ""}}' \
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
promotion is the only feature supported and must be requested as an empty string
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0", "description": "Promoting read-only replica to standalone instance.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
Resync read-only replica
Reinitialize a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
Reinitialize a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
Reinitialize a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
Reinitialize a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
POST /deployments/{id}/remotes/resync
(cloudDatabases *CloudDatabasesV5) ResyncReplica(resyncReplicaOptions *ResyncReplicaOptions) (result *ResyncReplicaResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ResyncReplicaWithContext(ctx context.Context, resyncReplicaOptions *ResyncReplicaOptions) (result *ResyncReplicaResponse, response *core.DetailedResponse, err error)
resyncReplica(params)
resync_replica(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the ResyncReplicaOptions
struct and set the fields to provide parameter values for the ResyncReplica
method.
Path Parameters
Deployment ID of the read-only replica
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ResyncReplica options.
Deployment ID of the read-only replica.
parameters
Deployment ID of the read-only replica.
parameters
Deployment ID of the read-only replica.
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/remotes/resync -H 'Authorization: Bearer <>' \
resyncReplicaOptions := cloudDatabasesService.NewResyncReplicaOptions( replicaID, ) resyncReplicaResponse, response, err := cloudDatabasesService.ResyncReplica(resyncReplicaOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(resyncReplicaResponse, "", " ") fmt.Println(string(b))
const params = { id: replicaId, }; cloudDatabasesService.resyncReplica(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
resync_replica_response = cloud_databases_service.resync_replica( id=replica_id, ).get_result() print(json.dumps(resync_replica_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0",
"description": "Reinitializing read-only replica.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0",
"description": "Reinitializing read-only replica.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0",
"description": "Reinitializing read-only replica.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0", "description": "Reinitializing read-only replica.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0", "description": "Reinitializing read-only replica.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
Promote read-only replica to a full deployment
Promote a read-only replica or upgrade and promote a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
Promote a read-only replica or upgrade and promote a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
Promote a read-only replica or upgrade and promote a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
Promote a read-only replica or upgrade and promote a read-only replica. Available for PostgreSQL and EnterpriseDB ONLY.
POST /deployments/{id}/remotes/promotion
(cloudDatabases *CloudDatabasesV5) SetPromotion(setPromotionOptions *SetPromotionOptions) (result *SetPromotionResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) SetPromotionWithContext(ctx context.Context, setPromotionOptions *SetPromotionOptions) (result *SetPromotionResponse, response *core.DetailedResponse, err error)
setPromotion(params)
set_promotion(self,
id: str,
promotion: 'SetPromotionPromotion',
**kwargs
) -> DetailedResponse
Request
Instantiate the SetPromotionOptions
struct and set the fields to provide parameter values for the SetPromotion
method.
Path Parameters
Deployment ID of the read-only replica to promote
Parameters for promoting a read-only replica
{
"promotion": {
"skip_initial_backup": false
}
}
Promotion and Upgrade options
- promotion
Version number to upgrade to.
Skip the initial backup of the deployment post-promotion.
Validate upgrade success, DOES NOT run the promotion and upgrade.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The SetPromotion options.
Deployment ID of the read-only replica to promote.
Promotes a read-only replica to a full deployment.
- Promotion
Promotion options.
parameters
Deployment ID of the read-only replica to promote.
Promotes a read-only replica to a full deployment.
- promotion
Promotion options.
parameters
Deployment ID of the read-only replica to promote.
Promotes a read-only replica to a full deployment.
- promotion
Promotion options.
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/remotes/promotion -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"promotion": {"skip_initial_backup": false}}' \
promotion := map[string]interface{}{ "skip_initial_backup": false, } setPromotionPromotionModel := &clouddatabasesv5.SetPromotionPromotionPromote{ Promotion: promotion, } setPromotionOptions := cloudDatabasesService.NewSetPromotionOptions( replicaID, setPromotionPromotionModel, ) setPromotionResponse, response, err := cloudDatabasesService.SetPromotion(setPromotionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(setPromotionResponse, "", " ") fmt.Println(string(b))
const promotion = { skip_initial_backup: true, }; const setPromotionPromotionModel = { promotion: promotion, }; const params = { id: replicaId, promotion: setPromotionPromotionModel, }; cloudDatabasesService.setPromotion(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
promotion = { 'skip_initial_backup': True, } set_promotion_model = SetPromotionPromotionPromote( promotion=promotion, ) set_promotion_response = cloud_databases_service.set_promotion( id=replica_id, promotion=set_promotion_model, ).get_result() print(json.dumps(set_promotion_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0",
"description": "Promoting read-only replica to standalone instance.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0",
"description": "Promoting read-only replica to standalone instance.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0",
"description": "Promoting read-only replica to standalone instance.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
An error message response from sending invalid body parameters.
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0", "description": "Promoting read-only replica to standalone instance.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:5abb6a7d11a1a5001479a0b0", "description": "Promoting read-only replica to standalone instance.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc257516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
List currently running tasks on a deployment
Obtain a list of tasks currently running or recently run on a deployment. Tasks are ephemeral. Records of successful tasks are shown for 24-48 hours, and unsuccessful tasks are shown for 7-8 days.
Obtain a list of tasks currently running or recently run on a deployment. Tasks are ephemeral. Records of successful tasks are shown for 24-48 hours, and unsuccessful tasks are shown for 7-8 days.
Obtain a list of tasks currently running or recently run on a deployment. Tasks are ephemeral. Records of successful tasks are shown for 24-48 hours, and unsuccessful tasks are shown for 7-8 days.
Obtain a list of tasks currently running or recently run on a deployment. Tasks are ephemeral. Records of successful tasks are shown for 24-48 hours, and unsuccessful tasks are shown for 7-8 days.
GET /deployments/{id}/tasks
(cloudDatabases *CloudDatabasesV5) ListDeploymentTasks(listDeploymentTasksOptions *ListDeploymentTasksOptions) (result *Tasks, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ListDeploymentTasksWithContext(ctx context.Context, listDeploymentTasksOptions *ListDeploymentTasksOptions) (result *Tasks, response *core.DetailedResponse, err error)
listDeploymentTasks(params)
list_deployment_tasks(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the ListDeploymentTasksOptions
struct and set the fields to provide parameter values for the ListDeploymentTasks
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ListDeploymentTasks options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/tasks -H 'Authorization: Bearer <>' \
listDeploymentTasksOptions := cloudDatabasesService.NewListDeploymentTasksOptions( deploymentID, ) tasks, response, err := cloudDatabasesService.ListDeploymentTasks(listDeploymentTasksOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(tasks, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.listDeploymentTasks(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
tasks = cloud_databases_service.list_deployment_tasks( id=deployment_id, ).get_result() print(json.dumps(tasks, indent=2))
Response
- Examples:
[ { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } ]
- tasks
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
- Examples:
[ { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } ]
- Tasks
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
- Examples:
[ { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } ]
- tasks
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
- Examples:
[ { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } ]
- tasks
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
An array of tasks
Invalid token
No Sample Response
Get information about a task
Get information about a task and its status. Tasks themselves are persistent so old tasks can be consulted as well as running tasks.
Get information about a task and its status. Tasks themselves are persistent so old tasks can be consulted as well as running tasks.
Get information about a task and its status. Tasks themselves are persistent so old tasks can be consulted as well as running tasks.
Get information about a task and its status. Tasks themselves are persistent so old tasks can be consulted as well as running tasks.
GET /tasks/{id}
(cloudDatabases *CloudDatabasesV5) GetTask(getTaskOptions *GetTaskOptions) (result *GetTaskResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetTaskWithContext(ctx context.Context, getTaskOptions *GetTaskOptions) (result *GetTaskResponse, response *core.DetailedResponse, err error)
getTask(params)
get_task(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetTaskOptions
struct and set the fields to provide parameter values for the GetTask
method.
Path Parameters
Task ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetTask options.
Task ID.
parameters
Task ID.
parameters
Task ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/tasks/{id} -H 'Authorization: Bearer <>' \
getTaskOptions := cloudDatabasesService.NewGetTaskOptions( taskIDLink, ) getTaskResponse, response, err := cloudDatabasesService.GetTask(getTaskOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(getTaskResponse, "", " ") fmt.Println(string(b))
const params = { id: taskIdLink, }; cloudDatabasesService.getTask(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
get_task_response = cloud_databases_service.get_task( id=task_id_link, ).get_result() print(json.dumps(get_task_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Backing up database on-demand",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Backing up database on-demand",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Backing up database on-demand",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
A completed task redirects to the associated resource.
Invalid token
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "completed", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 100, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "completed", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 100, "created_at": "2018-03-28T10:31:30Z" } }
Get information about a backup
Get information about a backup, such as creation date.
Get information about a backup, such as creation date.
Get information about a backup, such as creation date.
Get information about a backup, such as creation date.
GET /backups/{backup_id}
(cloudDatabases *CloudDatabasesV5) GetBackupInfo(getBackupInfoOptions *GetBackupInfoOptions) (result *GetBackupInfoResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetBackupInfoWithContext(ctx context.Context, getBackupInfoOptions *GetBackupInfoOptions) (result *GetBackupInfoResponse, response *core.DetailedResponse, err error)
getBackupInfo(params)
get_backup_info(self,
backup_id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetBackupInfoOptions
struct and set the fields to provide parameter values for the GetBackupInfo
method.
Path Parameters
Backup ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetBackupInfo options.
Backup ID.
parameters
Backup ID.
parameters
Backup ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/backups/{backup_id} -H 'Authorization: Bearer <>' \
getBackupInfoOptions := cloudDatabasesService.NewGetBackupInfoOptions( backupIDLink, ) getBackupInfoResponse, response, err := cloudDatabasesService.GetBackupInfo(getBackupInfoOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(getBackupInfoResponse, "", " ") fmt.Println(string(b))
const params = { backupId: backupIdLink, }; cloudDatabasesService.getBackupInfo(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
get_backup_info_response = cloud_databases_service.get_backup_info( backup_id=backup_id_link, ).get_result() print(json.dumps(get_backup_info_response, indent=2))
Response
- backup
ID of this backup.
Example:
5a970218cb7544000671c094
ID of the deployment this backup relates to.
Example:
595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Example:
scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Example:
running
Is this backup available to download?
Example:
true
Can this backup be used to restore an instance?
Example:
true
URI which is currently available for file downloading
Example:
https://securedownloadservice.com/backup-2018-02-28T19:25:12Z.tgz
Date and time when this backup was created.
Example:
2018-02-28T19:25:12Z
{
"backup": {
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:87635880-b11c-4359-9d06-41fd9f90feaf",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-06-10T14:31:40.000Z"
}
}
- Backup
ID of this backup.
Examples:5a970218cb7544000671c094
ID of the deployment this backup relates to.
Examples:595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Examples:scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Examples:running
Is this backup available to download?.
Examples:true
Can this backup be used to restore an instance?.
Examples:true
Date and time when this backup was created.
Examples:2018-02-28T19:25:12.000Z
{
"backup": {
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:87635880-b11c-4359-9d06-41fd9f90feaf",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-06-10T14:31:40.000Z"
}
}
- backup
ID of this backup.
Examples:5a970218cb7544000671c094
ID of the deployment this backup relates to.
Examples:595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Examples:scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Examples:running
Is this backup available to download?.
Examples:true
Can this backup be used to restore an instance?.
Examples:true
Date and time when this backup was created.
Examples:2018-02-28T19:25:12.000Z
{
"backup": {
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:87635880-b11c-4359-9d06-41fd9f90feaf",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-06-10T14:31:40.000Z"
}
}
- backup
ID of this backup.
Examples:5a970218cb7544000671c094
ID of the deployment this backup relates to.
Examples:595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Examples:scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Examples:running
Is this backup available to download?.
Examples:true
Can this backup be used to restore an instance?.
Examples:true
Date and time when this backup was created.
Examples:2018-02-28T19:25:12.000Z
Status Code
A backup response
Invalid token
{ "backup": { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:87635880-b11c-4359-9d06-41fd9f90feaf", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::", "type": "scheduled", "status": "completed", "is_downloadable": false, "is_restorable": true, "created_at": "2019-06-10T14:31:40.000Z" } }
{ "backup": { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:87635880-b11c-4359-9d06-41fd9f90feaf", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::", "type": "scheduled", "status": "completed", "is_downloadable": false, "is_restorable": true, "created_at": "2019-06-10T14:31:40.000Z" } }
List currently available backups from a deployment
Get details of all currently available backups from a deployment.
Get details of all currently available backups from a deployment.
Get details of all currently available backups from a deployment.
Get details of all currently available backups from a deployment.
GET /deployments/{id}/backups
(cloudDatabases *CloudDatabasesV5) ListDeploymentBackups(listDeploymentBackupsOptions *ListDeploymentBackupsOptions) (result *Backups, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ListDeploymentBackupsWithContext(ctx context.Context, listDeploymentBackupsOptions *ListDeploymentBackupsOptions) (result *Backups, response *core.DetailedResponse, err error)
listDeploymentBackups(params)
list_deployment_backups(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the ListDeploymentBackupsOptions
struct and set the fields to provide parameter values for the ListDeploymentBackups
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ListDeploymentBackups options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/backups -H 'Authorization: Bearer <>' \
listDeploymentBackupsOptions := cloudDatabasesService.NewListDeploymentBackupsOptions( deploymentID, ) backups, response, err := cloudDatabasesService.ListDeploymentBackups(listDeploymentBackupsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(backups, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.listDeploymentBackups(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
backups = cloud_databases_service.list_deployment_backups( id=deployment_id, ).get_result() print(json.dumps(backups, indent=2))
Response
An array of backups.
{
"backups": [
{
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:e47213d6-4a13-47f4-a511-9ef459670192",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-05-29T14:30:46.000Z"
},
{
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:ec07e9be-9ad8-48ad-a22e-bc93abe66339",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-05-18T14:30:39.000Z"
}
]
}
- Backups
ID of this backup.
Examples:5a970218cb7544000671c094
ID of the deployment this backup relates to.
Examples:595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Examples:scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Examples:running
Is this backup available to download?.
Examples:true
Can this backup be used to restore an instance?.
Examples:true
Date and time when this backup was created.
Examples:2018-02-28T19:25:12.000Z
{
"backups": [
{
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:e47213d6-4a13-47f4-a511-9ef459670192",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-05-29T14:30:46.000Z"
},
{
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:ec07e9be-9ad8-48ad-a22e-bc93abe66339",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-05-18T14:30:39.000Z"
}
]
}
- backups
ID of this backup.
Examples:5a970218cb7544000671c094
ID of the deployment this backup relates to.
Examples:595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Examples:scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Examples:running
Is this backup available to download?.
Examples:true
Can this backup be used to restore an instance?.
Examples:true
Date and time when this backup was created.
Examples:2018-02-28T19:25:12.000Z
{
"backups": [
{
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:e47213d6-4a13-47f4-a511-9ef459670192",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-05-29T14:30:46.000Z"
},
{
"id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:ec07e9be-9ad8-48ad-a22e-bc93abe66339",
"deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::",
"type": "scheduled",
"status": "completed",
"is_downloadable": false,
"is_restorable": true,
"created_at": "2019-05-18T14:30:39.000Z"
}
]
}
- backups
ID of this backup.
Examples:5a970218cb7544000671c094
ID of the deployment this backup relates to.
Examples:595eada310b7ac00116dd48b
The type of backup.
Possible values: [
scheduled
,on_demand
]Examples:scheduled
The status of this backup.
Possible values: [
running
,completed
,failed
]Examples:running
Is this backup available to download?.
Examples:true
Can this backup be used to restore an instance?.
Examples:true
Date and time when this backup was created.
Examples:2018-02-28T19:25:12.000Z
Status Code
An array of backups
Invalid token
{ "backups": [ { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:e47213d6-4a13-47f4-a511-9ef459670192", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::", "type": "scheduled", "status": "completed", "is_downloadable": false, "is_restorable": true, "created_at": "2019-05-29T14:30:46.000Z" }, { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:ec07e9be-9ad8-48ad-a22e-bc93abe66339", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::", "type": "scheduled", "status": "completed", "is_downloadable": false, "is_restorable": true, "created_at": "2019-05-18T14:30:39.000Z" } ] }
{ "backups": [ { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:e47213d6-4a13-47f4-a511-9ef459670192", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::", "type": "scheduled", "status": "completed", "is_downloadable": false, "is_restorable": true, "created_at": "2019-05-29T14:30:46.000Z" }, { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a:backup:ec07e9be-9ad8-48ad-a22e-bc93abe66339", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/2740839ce64e9c423ffc238516c755e1:afa742a3-6f83-4f6e-a06e-b5c501e9e87a::", "type": "scheduled", "status": "completed", "is_downloadable": false, "is_restorable": true, "created_at": "2019-05-18T14:30:39.000Z" } ] }
Initiate an on-demand backup
Signal the platform to create an on-demand backup for the specified deployment. The returned task can be polled to track progress of the backup as it takes place.
Signal the platform to create an on-demand backup for the specified deployment. The returned task can be polled to track progress of the backup as it takes place.
Signal the platform to create an on-demand backup for the specified deployment. The returned task can be polled to track progress of the backup as it takes place.
Signal the platform to create an on-demand backup for the specified deployment. The returned task can be polled to track progress of the backup as it takes place.
POST /deployments/{id}/backups
(cloudDatabases *CloudDatabasesV5) StartOndemandBackup(startOndemandBackupOptions *StartOndemandBackupOptions) (result *StartOndemandBackupResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) StartOndemandBackupWithContext(ctx context.Context, startOndemandBackupOptions *StartOndemandBackupOptions) (result *StartOndemandBackupResponse, response *core.DetailedResponse, err error)
startOndemandBackup(params)
start_ondemand_backup(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the StartOndemandBackupOptions
struct and set the fields to provide parameter values for the StartOndemandBackup
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The StartOndemandBackup options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/backups -H 'Authorization: Bearer <>' \
startOndemandBackupOptions := cloudDatabasesService.NewStartOndemandBackupOptions( deploymentID, ) startOndemandBackupResponse, response, err := cloudDatabasesService.StartOndemandBackup(startOndemandBackupOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(startOndemandBackupResponse, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.startOndemandBackup(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
start_ondemand_backup_response = cloud_databases_service.start_ondemand_backup( id=deployment_id, ).get_result() print(json.dumps(start_ondemand_backup_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Backing up database on-demand",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:30:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Backing up database on-demand",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:30:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Backing up database on-demand",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:30:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:30:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Backing up database on-demand", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:30:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Get earliest point-in-time-recovery timestamp
Returns the earliest available time for point-in-time-recovery in ISO8601 UTC format. PostgreSQL and EnterpriseDB only.
Returns the earliest available time for point-in-time-recovery in ISO8601 UTC format. PostgreSQL and EnterpriseDB only.
Returns the earliest available time for point-in-time-recovery in ISO8601 UTC format. PostgreSQL and EnterpriseDB only.
Returns the earliest available time for point-in-time-recovery in ISO8601 UTC format. PostgreSQL and EnterpriseDB only.
GET /deployments/{id}/point_in_time_recovery_data
(cloudDatabases *CloudDatabasesV5) GetPitRdata(getPitRdataOptions *GetPitRdataOptions) (result *PointInTimeRecoveryData, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetPitRdataWithContext(ctx context.Context, getPitRdataOptions *GetPitRdataOptions) (result *PointInTimeRecoveryData, response *core.DetailedResponse, err error)
getPitRdata(params)
get_pit_rdata(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetPitRdataOptions
struct and set the fields to provide parameter values for the GetPitRdata
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetPitRdata options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/point_in_time_recovery_data -H 'Authorization: Bearer <>' \
getPitRdataOptions := cloudDatabasesService.NewGetPitRdataOptions( deploymentID, ) pointInTimeRecoveryData, response, err := cloudDatabasesService.GetPitRdata(getPitRdataOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(pointInTimeRecoveryData, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.getPitRdata(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
point_in_time_recovery_data = cloud_databases_service.get_pit_rdata( id=deployment_id, ).get_result() print(json.dumps(point_in_time_recovery_data, indent=2))
Response
- point_in_time_recovery_data
{
"point_in_time_recovery_data": {
"earliest_point_in_time_recovery_time": "2019-09-09T23:16:00Z"
}
}
{
"point_in_time_recovery_data": {
"earliest_point_in_time_recovery_time": "2019-09-09T23:16:00Z"
}
}
{
"point_in_time_recovery_data": {
"earliest_point_in_time_recovery_time": "2019-09-09T23:16:00Z"
}
}
Status Code
The earliest point-in-time-recovery time
Invalid token
not found
{ "point_in_time_recovery_data": { "earliest_point_in_time_recovery_time": "2019-09-09T23:16:00Z" } }
{ "point_in_time_recovery_data": { "earliest_point_in_time_recovery_time": "2019-09-09T23:16:00Z" } }
Discover connection information for a deployment for a user with an endpoint type.
Discover connection information for a deployment for a user with an endpoint type.
Discover connection information for a deployment for a user with an endpoint type.
Discover connection information for a deployment for a user with an endpoint type.
Discover connection information for a deployment for a user with an endpoint type.
GET /deployments/{id}/users/{user_type}/{user_id}/connections/{endpoint_type}
(cloudDatabases *CloudDatabasesV5) GetConnection(getConnectionOptions *GetConnectionOptions) (result *Connection, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetConnectionWithContext(ctx context.Context, getConnectionOptions *GetConnectionOptions) (result *Connection, response *core.DetailedResponse, err error)
getConnection(params)
get_connection(self,
id: str,
user_type: str,
user_id: str,
endpoint_type: str,
*,
certificate_root: str = None,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetConnectionOptions
struct and set the fields to provide parameter values for the GetConnection
method.
Path Parameters
Deployment ID
User type
Example:
database
User ID
Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]
Query Parameters
Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetConnection options.
Deployment ID.
User type.
Examples:database
User ID.
Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
parameters
Deployment ID.
User type.
Examples:User ID.
Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
parameters
Deployment ID.
User type.
Examples:User ID.
Endpoint Type. The endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/users/{user_type}/{user_id}/connections/{endpoint_type} -H 'Authorization: Bearer <>' \
getConnectionOptions := cloudDatabasesService.NewGetConnectionOptions( deploymentID, userType, "exampleUserID", "public", ) getConnectionOptions.SetCertificateRoot("exampleCertRoot") connection, response, err := cloudDatabasesService.GetConnection(getConnectionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(connection, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, userType: userType, userId: 'exampleUserID', endpointType: 'public', certificateRoot: 'exampleCertRoot' }; cloudDatabasesService.getConnection(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
connection = cloud_databases_service.get_connection( id=deployment_id, user_type=user_type, user_id='exampleUserID', endpoint_type='public', certificate_root='exampleCertRoot', ).get_result() print(json.dumps(connection, indent=2))
Response
PostgreSQL and EnterpriseDB Connection Strings
- connection
Connection information for drivers and libraries
Connection information for psql
PostgreSQL and EnterpriseDB Connection Strings.
- Connection
Connection information for drivers and libraries.
- Postgres
Type of connection being described.
Examples:uri
Scheme/protocol for URI connection.
- Hosts
Hostname for connection.
Port number for connection.
Path for URI connection.
Examples:/ibmclouddb
Query options to add to the URI connection.
Examples:{ "sslmode": "verify-full" }
- Authentication
Authentication method for this credential.
Username part of credential.
Password part of credential.
- Certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Name of the database to use in the URI connection.
Connection information for psql.
- Cli
Type of connection being described.
Examples:cli
A map of environment variables for a CLI connection.
The name of the executable the CLI should run.
Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.
- Certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
PostgreSQL and EnterpriseDB Connection Strings.
- connection
Connection information for drivers and libraries.
- postgres
Type of connection being described.
Examples:uri
Scheme/protocol for URI connection.
- hosts
Hostname for connection.
Port number for connection.
Path for URI connection.
Examples:/ibmclouddb
Query options to add to the URI connection.
Examples:{ "sslmode": "verify-full" }
- authentication
Authentication method for this credential.
Username part of credential.
Password part of credential.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Name of the database to use in the URI connection.
Connection information for psql.
- cli
Type of connection being described.
Examples:cli
A map of environment variables for a CLI connection.
The name of the executable the CLI should run.
Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
PostgreSQL and EnterpriseDB Connection Strings.
- connection
Connection information for drivers and libraries.
- postgres
Type of connection being described.
Examples:uri
Scheme/protocol for URI connection.
- hosts
Hostname for connection.
Port number for connection.
Path for URI connection.
Examples:/ibmclouddb
Query options to add to the URI connection.
Examples:{ "sslmode": "verify-full" }
- authentication
Authentication method for this credential.
Username part of credential.
Password part of credential.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Name of the database to use in the URI connection.
Connection information for psql.
- cli
Type of connection being described.
Examples:cli
A map of environment variables for a CLI connection.
The name of the executable the CLI should run.
Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Status Code
A Connection
Invalid token
{ "connection": { "postgres": { "composed": [ "postgres://admin:$PASSWORD@1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32121/ibmclouddb?sslmode=verify-full" ], "type": "uri", "scheme": "postgres", "hosts": [ { "hostname": "1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32121 } ], "path": "/ibmclouddb", "query_options": { "sslmode": "verify-full" }, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": "ibmclouddb", "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "PGPASSWORD=$PASSWORD PGSSLROOTCERT=0b22f14b-7ba2-11e8-b8e9-568642342d40 psql 'host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ], "type": "cli", "environment": { "PGPASSWORD": "$PASSWORD" }, "bin": "psql", "arguments": [ [ "host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ] ], "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "postgres": { "composed": [ "postgres://admin:$PASSWORD@1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32121/ibmclouddb?sslmode=verify-full" ], "type": "uri", "scheme": "postgres", "hosts": [ { "hostname": "1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32121 } ], "path": "/ibmclouddb", "query_options": { "sslmode": "verify-full" }, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": "ibmclouddb", "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "PGPASSWORD=$PASSWORD PGSSLROOTCERT=0b22f14b-7ba2-11e8-b8e9-568642342d40 psql 'host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ], "type": "cli", "environment": { "PGPASSWORD": "$PASSWORD" }, "bin": "psql", "arguments": [ [ "host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ] ], "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "rediss": { "composed": [ "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "uri", "scheme": "rediss", "hosts": [ { "hostname": "6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud", "port": 32658 } ], "path": "/0", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": 0, "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "REDIS_CERTFILE=014c4682-b21d-11e8-b42a-6eef56314b76 redli -u rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "cli", "environment": { "REDIS_CERTFILE\"": "014c4682-b21d-11e8-b42a-6eef56314b76" }, "bin": "redli", "arguments": [ "-u", "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "rediss": { "composed": [ "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "uri", "scheme": "rediss", "hosts": [ { "hostname": "6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud", "port": 32658 } ], "path": "/0", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": 0, "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "REDIS_CERTFILE=014c4682-b21d-11e8-b42a-6eef56314b76 redli -u rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "cli", "environment": { "REDIS_CERTFILE\"": "014c4682-b21d-11e8-b42a-6eef56314b76" }, "bin": "redli", "arguments": [ "-u", "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "cli": { "arguments": [ "-u", "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD", "https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "bin": "curl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "CURL_CA_BUNDLE=0b22f14b-7ba2-11e8-b8e9-568642342d40 curl -u ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "environment": { "CURL_CA_BUNDLE": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:8dc6926bb16c0d52c56cede36cd101481def910fdfdfec3da766da4f9545ff78@d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "hosts": [ { "hostname": "d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31821 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "-u", "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD", "https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "bin": "curl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "CURL_CA_BUNDLE=0b22f14b-7ba2-11e8-b8e9-568642342d40 curl -u ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "environment": { "CURL_CA_BUNDLE": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:8dc6926bb16c0d52c56cede36cd101481def910fdfdfec3da766da4f9545ff78@d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "hosts": [ { "hostname": "d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31821 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "amqps": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "amqps://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31683" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31683 } ], "path": "", "query_options": {}, "scheme": "amqps", "type": "uri" }, "cli": { "arguments": [ "--username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368", "--password=$PASSWORD", "--ssl", "--ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "--port=31797" ], "bin": "rabbitmqadmin", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "rabbitmqadmin --username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368 --password=$PASSWORD --ssl --ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40 --host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud --port=31797" ], "environment": {}, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31797" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31797 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "amqps": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "amqps://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31683" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31683 } ], "path": "", "query_options": {}, "scheme": "amqps", "type": "uri" }, "cli": { "arguments": [ "--username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368", "--password=$PASSWORD", "--ssl", "--ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "--port=31797" ], "bin": "rabbitmqadmin", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "rabbitmqadmin --username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368 --password=$PASSWORD --ssl --ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40 --host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud --port=31797" ], "environment": {}, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31797" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31797 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "--cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218", "--user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "bin": "etcdctl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "ETCDCTL_API=3 etcdctl --cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40 --endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218 --user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "environment": { "ETCDCTL_API": "3" }, "type": "cli" }, "grpc": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c" }, "certificate": null, "composed": [ "http://ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD@ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218" ], "hosts": [ { "hostname": "ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32218 } ], "path": "", "query_options": {}, "scheme": "http", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "--cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218", "--user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "bin": "etcdctl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "ETCDCTL_API=3 etcdctl --cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40 --endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218 --user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "environment": { "ETCDCTL_API": "3" }, "type": "cli" }, "grpc": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c" }, "certificate": null, "composed": [ "http://ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD@ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218" ], "hosts": [ { "hostname": "ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32218 } ], "path": "", "query_options": {}, "scheme": "http", "type": "uri" } } }
{ "connection": { "mongodb": { "composed": [ "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin", "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin" ], "type": "uri", "scheme": "mongodb", "hosts": [ { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" }, { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" } ], "path": "/ibmclouddb", "query_options": { "authSource": "admin" }, "authentication": { "method": "direct", "username": "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "password": "$PASSWORD" }, "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "mongo -u ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18 -p $PASSWORD --ssl --sslCAFile 13f690a1-d94d-11e8-955c-127ef829f16b --authenticationDatabase admin --host replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ], "type": "cli", "environment": {}, "bin": "mongo", "arguments": [ [ "-u", "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "-p", "$PASSWORD", "--ssl", "--sslCAFile", "13f690a1-d94d-11e8-955c-127ef829f16b", "--authenticationDatabase", "admin", "--host", "replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ] ], "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "mongodb": { "composed": [ "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin", "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin" ], "type": "uri", "scheme": "mongodb", "hosts": [ { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" }, { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" } ], "path": "/ibmclouddb", "query_options": { "authSource": "admin" }, "authentication": { "method": "direct", "username": "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "password": "$PASSWORD" }, "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "mongo -u ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18 -p $PASSWORD --ssl --sslCAFile 13f690a1-d94d-11e8-955c-127ef829f16b --authenticationDatabase admin --host replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ], "type": "cli", "environment": {}, "bin": "mongo", "arguments": [ [ "-u", "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "-p", "$PASSWORD", "--ssl", "--sslCAFile", "13f690a1-d94d-11e8-955c-127ef829f16b", "--authenticationDatabase", "admin", "--host", "replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ] ], "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
Discover connection information for a deployment for a user with substitutions and an endpoint type.
Discover connection information for a deployment for a user. Behaves the same as the GET method but substitutes the provided password parameter into the returned connection information.
Discover connection information for a deployment for a user. Behaves the same as the GET method but substitutes the provided password parameter into the returned connection information.
Discover connection information for a deployment for a user. Behaves the same as the GET method but substitutes the provided password parameter into the returned connection information.
Discover connection information for a deployment for a user. Behaves the same as the GET method but substitutes the provided password parameter into the returned connection information.
POST /deployments/{id}/users/{user_type}/{user_id}/connections/{endpoint_type}
(cloudDatabases *CloudDatabasesV5) CompleteConnection(completeConnectionOptions *CompleteConnectionOptions) (result *Connection, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) CompleteConnectionWithContext(ctx context.Context, completeConnectionOptions *CompleteConnectionOptions) (result *Connection, response *core.DetailedResponse, err error)
completeConnection(params)
complete_connection(self,
id: str,
user_type: str,
user_id: str,
endpoint_type: str,
*,
password: str = None,
certificate_root: str = None,
**kwargs
) -> DetailedResponse
Request
Instantiate the CompleteConnectionOptions
struct and set the fields to provide parameter values for the CompleteConnection
method.
Path Parameters
Deployment ID
User type of
database
is the only currently supported value.Example:
database
User ID
Endpoint Type. The select endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]
Optional parameters to be substituted into the response
{
"password": "providedpassword"
}
Password to be substituted into the response
Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The CompleteConnection options.
Deployment ID.
User type of
database
is the only currently supported value.Examples:database
User ID.
Endpoint Type. The select endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]Password to be substituted into the response.
Examples:providedpassword
Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
parameters
Deployment ID.
User type of
database
is the only currently supported value.Examples:User ID.
Endpoint Type. The select endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]Password to be substituted into the response.
Examples:Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
parameters
Deployment ID.
User type of
database
is the only currently supported value.Examples:User ID.
Endpoint Type. The select endpoint must be enabled on the deployment before its connection information can be fetched.
Allowable values: [
public
,private
]Password to be substituted into the response.
Examples:Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/users/{user_type}/{user_id}/connections/{endpoint_type} -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"password": "providedpassword"}' \
completeConnectionOptions := cloudDatabasesService.NewCompleteConnectionOptions( deploymentID, userType, "exampleUserID", "public", ) completeConnectionOptions.SetPassword("examplePassword") completeConnectionOptions.SetCertificateRoot("exampleCertRoot") connection, response, err := cloudDatabasesService.CompleteConnection(completeConnectionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(connection, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, userType: userType, userId: 'exampleUserID', endpointType: 'public', password: 'examplePassword', certificateRoot: 'exampleCertRoot', }; cloudDatabasesService.completeConnection(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
connection = cloud_databases_service.complete_connection( id=deployment_id, user_type=user_type, user_id='exampleUserID', endpoint_type='public', password='examplePassword', certificate_root='exampleCertRoot', ).get_result() print(json.dumps(connection, indent=2))
Response
PostgreSQL and EnterpriseDB Connection Strings
- connection
Connection information for drivers and libraries
Connection information for psql
PostgreSQL and EnterpriseDB Connection Strings.
- Connection
Connection information for drivers and libraries.
- Postgres
Type of connection being described.
Examples:uri
Scheme/protocol for URI connection.
- Hosts
Hostname for connection.
Port number for connection.
Path for URI connection.
Examples:/ibmclouddb
Query options to add to the URI connection.
Examples:{ "sslmode": "verify-full" }
- Authentication
Authentication method for this credential.
Username part of credential.
Password part of credential.
- Certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Name of the database to use in the URI connection.
Connection information for psql.
- Cli
Type of connection being described.
Examples:cli
A map of environment variables for a CLI connection.
The name of the executable the CLI should run.
Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.
- Certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
PostgreSQL and EnterpriseDB Connection Strings.
- connection
Connection information for drivers and libraries.
- postgres
Type of connection being described.
Examples:uri
Scheme/protocol for URI connection.
- hosts
Hostname for connection.
Port number for connection.
Path for URI connection.
Examples:/ibmclouddb
Query options to add to the URI connection.
Examples:{ "sslmode": "verify-full" }
- authentication
Authentication method for this credential.
Username part of credential.
Password part of credential.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Name of the database to use in the URI connection.
Connection information for psql.
- cli
Type of connection being described.
Examples:cli
A map of environment variables for a CLI connection.
The name of the executable the CLI should run.
Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
PostgreSQL and EnterpriseDB Connection Strings.
- connection
Connection information for drivers and libraries.
- postgres
Type of connection being described.
Examples:uri
Scheme/protocol for URI connection.
- hosts
Hostname for connection.
Port number for connection.
Path for URI connection.
Examples:/ibmclouddb
Query options to add to the URI connection.
Examples:{ "sslmode": "verify-full" }
- authentication
Authentication method for this credential.
Username part of credential.
Password part of credential.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Name of the database to use in the URI connection.
Connection information for psql.
- cli
Type of connection being described.
Examples:cli
A map of environment variables for a CLI connection.
The name of the executable the CLI should run.
Sets of arguments to call the executable with. The outer array corresponds to a possible way to call the CLI; the inner array is the set of arguments to use with that call.
- certificate
Name associated with the certificate.
Base64 encoded version of the certificate.
Status Code
A Connection
Invalid token
An error message response
{ "connection": { "postgres": { "composed": [ "postgres://admin:givenpassword@1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32121/ibmclouddb?sslmode=verify-full" ], "type": "uri", "scheme": "postgres", "hosts": [ { "hostname": "1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32121 } ], "path": "/ibmclouddb", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "givenpassword" }, "database": "ibmclouddb", "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "PGPASSWORD=givenpassword PGSSLROOTCERT=0b22f14b-7ba2-11e8-b8e9-568642342d40 psql 'host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full'" ], "type": "cli", "environment": { "PGPASSWORD": "givenpassword" }, "bin": "psql", "arguments": [ [ "host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ] ], "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "postgres": { "composed": [ "postgres://admin:givenpassword@1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32121/ibmclouddb?sslmode=verify-full" ], "type": "uri", "scheme": "postgres", "hosts": [ { "hostname": "1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32121 } ], "path": "/ibmclouddb", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "givenpassword" }, "database": "ibmclouddb", "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "PGPASSWORD=givenpassword PGSSLROOTCERT=0b22f14b-7ba2-11e8-b8e9-568642342d40 psql 'host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full'" ], "type": "cli", "environment": { "PGPASSWORD": "givenpassword" }, "bin": "psql", "arguments": [ [ "host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ] ], "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "rediss": { "composed": [ "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "uri", "scheme": "rediss", "hosts": [ { "hostname": "6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud", "port": 32658 } ], "path": "/0", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": 0, "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "REDIS_CERTFILE=014c4682-b21d-11e8-b42a-6eef56314b76 redli -u rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "cli", "environment": { "REDIS_CERTFILE\"": "014c4682-b21d-11e8-b42a-6eef56314b76" }, "bin": "redli", "arguments": [ "-u", "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "rediss": { "composed": [ "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "uri", "scheme": "rediss", "hosts": [ { "hostname": "6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud", "port": 32658 } ], "path": "/0", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": 0, "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "REDIS_CERTFILE=014c4682-b21d-11e8-b42a-6eef56314b76 redli -u rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "cli", "environment": { "REDIS_CERTFILE\"": "014c4682-b21d-11e8-b42a-6eef56314b76" }, "bin": "redli", "arguments": [ "-u", "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "cli": { "arguments": [ "-u", "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD", "https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "bin": "curl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "CURL_CA_BUNDLE=0b22f14b-7ba2-11e8-b8e9-568642342d40 curl -u ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "environment": { "CURL_CA_BUNDLE": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD@d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "hosts": [ { "hostname": "d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31821 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "-u", "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD", "https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "bin": "curl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "CURL_CA_BUNDLE=0b22f14b-7ba2-11e8-b8e9-568642342d40 curl -u ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "environment": { "CURL_CA_BUNDLE": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD@d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "hosts": [ { "hostname": "d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31821 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "amqps": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "amqps://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31683" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31683 } ], "path": "", "query_options": {}, "scheme": "amqps", "type": "uri" }, "cli": { "arguments": [ "--username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368", "--password=$PASSWORD", "--ssl", "--ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "--port=31797" ], "bin": "rabbitmqadmin", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "rabbitmqadmin --username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368 --password=$PASSWORD --ssl --ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40 --host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud --port=31797" ], "environment": {}, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31797" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31797 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "amqps": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "amqps://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31683" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31683 } ], "path": "", "query_options": {}, "scheme": "amqps", "type": "uri" }, "cli": { "arguments": [ "--username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368", "--password=$PASSWORD", "--ssl", "--ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "--port=31797" ], "bin": "rabbitmqadmin", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "rabbitmqadmin --username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368 --password=$PASSWORD --ssl --ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40 --host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud --port=31797" ], "environment": {}, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31797" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31797 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "--cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218", "--user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "bin": "etcdctl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "ETCDCTL_API=3 etcdctl --cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40 --endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218 --user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "environment": { "ETCDCTL_API": "3" }, "type": "cli" }, "grpc": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c" }, "certificate": null, "composed": [ "http://ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD@ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218" ], "hosts": [ { "hostname": "ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32218 } ], "path": "", "query_options": {}, "scheme": "http", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "--cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218", "--user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "bin": "etcdctl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "ETCDCTL_API=3 etcdctl --cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40 --endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218 --user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "environment": { "ETCDCTL_API": "3" }, "type": "cli" }, "grpc": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c" }, "certificate": null, "composed": [ "http://ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD@ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218" ], "hosts": [ { "hostname": "ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32218 } ], "path": "", "query_options": {}, "scheme": "http", "type": "uri" } } }
{ "connection": { "mongodb": { "composed": [ "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin", "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin" ], "type": "uri", "scheme": "mongodb", "hosts": [ { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" }, { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" } ], "path": "/ibmclouddb", "query_options": { "authSource": "admin" }, "authentication": { "method": "direct", "username": "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "password": "$PASSWORD" }, "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "mongo -u ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18 -p $PASSWORD --ssl --sslCAFile 13f690a1-d94d-11e8-955c-127ef829f16b --authenticationDatabase admin --host replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ], "type": "cli", "environment": {}, "bin": "mongo", "arguments": [ [ "-u", "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "-p", "$PASSWORD", "--ssl", "--sslCAFile", "13f690a1-d94d-11e8-955c-127ef829f16b", "--authenticationDatabase", "admin", "--host", "replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ] ], "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "mongodb": { "composed": [ "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin", "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin" ], "type": "uri", "scheme": "mongodb", "hosts": [ { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" }, { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" } ], "path": "/ibmclouddb", "query_options": { "authSource": "admin" }, "authentication": { "method": "direct", "username": "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "password": "$PASSWORD" }, "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "mongo -u ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18 -p $PASSWORD --ssl --sslCAFile 13f690a1-d94d-11e8-955c-127ef829f16b --authenticationDatabase admin --host replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ], "type": "cli", "environment": {}, "bin": "mongo", "arguments": [ [ "-u", "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "-p", "$PASSWORD", "--ssl", "--sslCAFile", "13f690a1-d94d-11e8-955c-127ef829f16b", "--authenticationDatabase", "admin", "--host", "replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ] ], "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Discover connection information for a deployment for a user.
Discover connection information for a deployment for a user.
GET /deployments/{id}/users/{user_type}/{user_id}/connections
Request
Path Parameters
Deployment ID
User type
User ID
Query Parameters
Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
Response
PostgreSQL and EnterpriseDB Connection Strings
- connection
Connection information for drivers and libraries
Connection information for psql
Status Code
A Connection
Invalid token
{ "connection": { "postgres": { "composed": [ "postgres://admin:$PASSWORD@1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32121/ibmclouddb?sslmode=verify-full" ], "type": "uri", "scheme": "postgres", "hosts": [ { "hostname": "1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32121 } ], "path": "/ibmclouddb", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": "ibmclouddb", "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "PGPASSWORD=$PASSWORD PGSSLROOTCERT=0b22f14b-7ba2-11e8-b8e9-568642342d40 psql 'host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ], "type": "cli", "environment": { "PGPASSWORD": "$PASSWORD" }, "bin": "psql", "arguments": [ [ "host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ] ], "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "rediss": { "composed": [ "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "uri", "scheme": "rediss", "hosts": [ { "hostname": "6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud", "port": 32658 } ], "path": "/0", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": 0, "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "REDIS_CERTFILE=014c4682-b21d-11e8-b42a-6eef56314b76 redli -u rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "cli", "environment": { "REDIS_CERTFILE\"": "014c4682-b21d-11e8-b42a-6eef56314b76" }, "bin": "redli", "arguments": [ "-u", "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "cli": { "arguments": [ "-u", "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD", "https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "bin": "curl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "CURL_CA_BUNDLE=0b22f14b-7ba2-11e8-b8e9-568642342d40 curl -u ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "environment": { "CURL_CA_BUNDLE": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:8dc6926bb16c0d52c56cede36cd101481def910fdfdfec3da766da4f9545ff78@d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "hosts": [ { "hostname": "d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31821 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "amqps": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "amqps://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31683" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31683 } ], "path": "", "query_options": {}, "scheme": "amqps", "type": "uri" }, "stomp_ssl": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31123, "protocol": "stomp-ssl" } ], "ssl": true, "type": "stomp" }, "cli": { "arguments": [ "--username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368", "--password=$PASSWORD", "--ssl", "--ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "--port=31797" ], "bin": "rabbitmqadmin", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "rabbitmqadmin --username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368 --password=$PASSWORD --ssl --ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40 --host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud --port=31797" ], "environment": {}, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31797" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31797 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "--cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218", "--user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "bin": "etcdctl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "ETCDCTL_API=3 etcdctl --cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40 --endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218 --user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "environment": { "ETCDCTL_API": "3" }, "type": "cli" }, "grpc": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c" }, "certificate": null, "composed": [ "http://ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD@ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218" ], "hosts": [ { "hostname": "ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32218 } ], "path": "", "query_options": {}, "scheme": "http", "type": "uri" } } }
{ "connection": { "mongodb": { "composed": [ "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin", "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin" ], "type": "uri", "scheme": "mongodb", "hosts": [ { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" }, { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" } ], "path": "/ibmclouddb", "query_options": { "authSource": "admin" }, "authentication": { "method": "direct", "username": "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "password": "$PASSWORD" }, "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "mongo -u ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18 -p $PASSWORD --ssl --sslCAFile 13f690a1-d94d-11e8-955c-127ef829f16b --authenticationDatabase admin --host replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ], "type": "cli", "environment": {}, "bin": "mongo", "arguments": [ [ "-u", "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "-p", "$PASSWORD", "--ssl", "--sslCAFile", "13f690a1-d94d-11e8-955c-127ef829f16b", "--authenticationDatabase", "admin", "--host", "replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ] ], "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
Discover connection information for a deployment for a user with substitutions.
Discover connection information for a deployment for a user. Behaves the same as the GET method but substitutes the given password parameter into the returned connection information.
POST /deployments/{id}/users/{user_type}/{user_id}/connections
Request
Path Parameters
Deployment ID
User type
User ID
Optional parameters to be substituted into the response
Password to be substituted into the response
Optional certificate root path to prepend certificate names. Certificates would be stored in this directory for use by other commands.
Response
PostgreSQL and EnterpriseDB Connection Strings
- connection
Connection information for drivers and libraries
Connection information for psql
Status Code
A Connection
Invalid token
An error message response
{ "connection": { "postgres": { "composed": [ "postgres://admin:givenpassword@1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32121/ibmclouddb?sslmode=verify-full" ], "type": "uri", "scheme": "postgres", "hosts": [ { "hostname": "1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32121 } ], "path": "/ibmclouddb", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "givenpassword" }, "database": "ibmclouddb", "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "PGPASSWORD=givenpassword PGSSLROOTCERT=0b22f14b-7ba2-11e8-b8e9-568642342d40 psql 'host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full'" ], "type": "cli", "environment": { "PGPASSWORD": "givenpassword" }, "bin": "psql", "arguments": [ [ "host=1b8f53db-fc2d-4e24-8470-f82b15c71717.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud port=32121 dbname=ibmclouddb user=admin sslmode=verify-full" ] ], "certificate": { "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "rediss": { "composed": [ "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "uri", "scheme": "rediss", "hosts": [ { "hostname": "6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud", "port": 32658 } ], "path": "/0", "query_options": null, "authentication": { "method": "direct", "username": "admin", "password": "$PASSWORD" }, "database": 0, "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "REDIS_CERTFILE=014c4682-b21d-11e8-b42a-6eef56314b76 redli -u rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "type": "cli", "environment": { "REDIS_CERTFILE\"": "014c4682-b21d-11e8-b42a-6eef56314b76" }, "bin": "redli", "arguments": [ "-u", "rediss://admin:$PASSWORD@6a5e3192-83a6-401f-b9ac-9663b68378fe.1cb1834b36b24f729271d2cfcd2f2177.databases.appdomain.cloud:32658/0" ], "certificate": { "name": "014c4682-b21d-11e8-b42a-6eef56314b76", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "connection": { "cli": { "arguments": [ "-u", "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD", "https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "bin": "curl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "CURL_CA_BUNDLE=0b22f14b-7ba2-11e8-b8e9-568642342d40 curl -u ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD https://d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "environment": { "CURL_CA_BUNDLE": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_9ba7cc3f_5364_4c05_ba35_3e44f33781c4:$PASSWORD@d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31821" ], "hosts": [ { "hostname": "d5eeee66-5bc4-499a-b73b-1307848f1eac.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31821 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "amqps": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "amqps://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31683" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31683 } ], "path": "", "query_options": {}, "scheme": "amqps", "type": "uri" }, "stomp_ssl": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31123, "protocol": "stomp-ssl" } ], "ssl": true, "type": "stomp" }, "cli": { "arguments": [ "--username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368", "--password=$PASSWORD", "--ssl", "--ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "--port=31797" ], "bin": "rabbitmqadmin", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "rabbitmqadmin --username=ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368 --password=$PASSWORD --ssl --ssl-ca-cert-file=0b22f14b-7ba2-11e8-b8e9-568642342d40 --host=1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud --port=31797" ], "environment": {}, "type": "cli" }, "https": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368" }, "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "https://ibm_cloud_6829a37b_2ade_4bc5_953e_949a5a46e368:$PASSWORD@1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:31797" ], "hosts": [ { "hostname": "1a619c43-6415-4abb-8df0-0c7b1b3a3001.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 31797 } ], "path": "", "query_options": {}, "scheme": "https", "type": "uri" } } }
{ "connection": { "cli": { "arguments": [ "--cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40", "--endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218", "--user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "bin": "etcdctl", "certificate": { "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE...", "name": "0b22f14b-7ba2-11e8-b8e9-568642342d40" }, "composed": [ "ETCDCTL_API=3 etcdctl --cacert=0b22f14b-7ba2-11e8-b8e9-568642342d40 --endpoints=https://ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218 --user=ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD" ], "environment": { "ETCDCTL_API": "3" }, "type": "cli" }, "grpc": { "authentication": { "method": "direct", "password": "$PASSWORD", "username": "ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c" }, "certificate": null, "composed": [ "http://ibm_cloud_59699685_b95e_4afe_9d39_7464c228563c:$PASSWORD@ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud:32218" ], "hosts": [ { "hostname": "ca537b4d-dcf2-467f-bd98-97535f11445b.8f7bfd8f3faa4218aec56e069eb46187.databases.appdomain.cloud", "port": 32218 } ], "path": "", "query_options": {}, "scheme": "http", "type": "uri" } } }
{ "connection": { "mongodb": { "composed": [ "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin", "mongodb://ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18:$PASSWORD@bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484/ibmclouddb?authSource=admin" ], "type": "uri", "scheme": "mongodb", "hosts": [ { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" }, { "hostname": "bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud", "port": 31484, "protocol": "mongodb" } ], "path": "/ibmclouddb", "query_options": { "authSource": "admin" }, "authentication": { "method": "direct", "username": "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "password": "$PASSWORD" }, "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } }, "cli": { "composed": [ "mongo -u ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18 -p $PASSWORD --ssl --sslCAFile 13f690a1-d94d-11e8-955c-127ef829f16b --authenticationDatabase admin --host replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ], "type": "cli", "environment": {}, "bin": "mongo", "arguments": [ [ "-u", "ibm_cloud_986062af_d976_42d0_aedc_87effaa5ce18", "-p", "$PASSWORD", "--ssl", "--sslCAFile", "13f690a1-d94d-11e8-955c-127ef829f16b", "--authenticationDatabase", "admin", "--host", "replset/bd574ce4-7b36-4274-9976-96db99a3ac10-0.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484,bd574ce4-7b36-4274-9976-96db99a3ac10-1.b8a5e798d2d04f2e860e54e5d042c915.databases.appdomain.cloud:31484" ] ], "certificate": { "name": "13f690a1-d94d-11e8-955c-127ef829f16b", "certificate_base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURE..." } } } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
List currently available scaling groups from a deployment
Scaling groups represent the various resources that are allocated to a deployment. This command allows for the retrieval of all of the groups for a particular deployment.
Scaling groups represent the various resources that are allocated to a deployment. This command allows for the retrieval of all of the groups for a particular deployment.
Scaling groups represent the various resources that are allocated to a deployment. This command allows for the retrieval of all of the groups for a particular deployment.
Scaling groups represent the various resources that are allocated to a deployment. This command allows for the retrieval of all of the groups for a particular deployment.
GET /deployments/{id}/groups
(cloudDatabases *CloudDatabasesV5) ListDeploymentScalingGroups(listDeploymentScalingGroupsOptions *ListDeploymentScalingGroupsOptions) (result *Groups, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) ListDeploymentScalingGroupsWithContext(ctx context.Context, listDeploymentScalingGroupsOptions *ListDeploymentScalingGroupsOptions) (result *Groups, response *core.DetailedResponse, err error)
listDeploymentScalingGroups(params)
list_deployment_scaling_groups(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the ListDeploymentScalingGroupsOptions
struct and set the fields to provide parameter values for the ListDeploymentScalingGroups
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The ListDeploymentScalingGroups options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/groups -H 'Authorization: Bearer <>' \
listDeploymentScalingGroupsOptions := cloudDatabasesService.NewListDeploymentScalingGroupsOptions( deploymentID, ) groups, response, err := cloudDatabasesService.ListDeploymentScalingGroups(listDeploymentScalingGroupsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(groups, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.listDeploymentScalingGroups(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
groups = cloud_databases_service.list_deployment_scaling_groups( id=deployment_id, ).get_result() print(json.dumps(groups, indent=2))
Response
- groups
Id/name for group
Possible values: [
member
,search
,bi_connector
,analytics
]Example:
member
Number of entities in the group
Example:
2
- members
Units used for scaling number of members
Example:
count
Allocated number of members
Example:
2
Minimum number of members
Example:
2
Maximum number of members
Example:
20
Step size for number of members
Example:
1
Is this deployment's number of members adjustable?
Example:
true
Is this deployments's number of members optional?
Can this deployment's number of members scale down?
- memory
Units used for scaling memory
Example:
mb
Allocated memory in MB
Example:
12288
Minimum memory in MB
Example:
1024
Maximum memory in MB
Example:
114688
Step size memory can be adjusted by in MB
Example:
1024
Is this group's memory adjustable?
Example:
true
Is this group's memory optional?
Can this group's memory scale down?
Example:
true
The amount of memory required before the cpu/memory ratio is no longer enforced. (multitenant only)
Example:
16384
The maximum memory allowed per CPU until the ratio ceiling is reached. (multitenant only)
Example:
8192
- cpu
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Example:
count
Number of allocated CPUs
Example:
2
Minimum number of CPUs
Example:
2
Maximum number of CPUs
Example:
32
Step size CPUs can be adjusted
Example:
2
Is this group's CPU count adjustable
Is this group's CPU optional?
Can this group's CPU scale down?
Example:
true
- disk
Units used for scaling storage
Example:
mb
Allocated storage in MB
Example:
10240
Minimum allocated storage
Example:
2048
Maximum allocated storage
Example:
4194304
Step size storage can be adjusted
Example:
2048
Is this group's storage adjustable?
Example:
true
Is this group's storage optional?
Can this group's storage scale down?
- host_flavor
Group's host flavor id
Example:
b3c.4x16.encrypted
Group's hostflavor name
Example:
4x16
Group's host flavor size
Example:
xs
{
"groups": [
{
"id": "member",
"count": 3,
"members": {
"units": "count",
"allocation_count": 3,
"minimum_count": 3,
"maximum_count": 20,
"step_size_count": 1,
"is_adjustable": false,
"is_optional": false,
"can_scale_down": false
},
"memory": {
"units": "mb",
"allocation_mb": 3072,
"minimum_mb": 3072,
"maximum_mb": 344064,
"step_size_mb": 384,
"is_adjustable": true,
"can_scale_down": true
},
"disk": {
"units": "mb",
"allocation_mb": 15360,
"minimum_mb": 15360,
"maximum_mb": 11010048,
"step_size_mb": 3072,
"is_adjustable": true,
"can_scale_down": false
},
"cpu": {
"units": "count",
"allocation_count": 0,
"minimum_count": 3,
"maximum_count": 90,
"step_size_count": 3,
"is_adjustable": false,
"is_optional": true
}
}
]
}
- Groups
Id/name for group.
Examples:member
Number of entities in the group.
Examples:2
- Members
Units used for scaling number of members.
Examples:count
Allocated number of members.
Examples:2
Minimum number of members.
Examples:2
Maximum number of members.
Examples:20
Step size for number of members.
Examples:1
Is this deployment's number of members adjustable?.
Examples:true
Is this deployments's number of members optional?.
Examples:false
Can this deployment's number of members scale down?.
Examples:false
- Memory
Units used for scaling memory.
Examples:mb
Allocated memory in MB.
Examples:12288
Minimum memory in MB.
Examples:1024
Maximum memory in MB.
Examples:114688
Step size memory can be adjusted by in MB.
Examples:1024
Is this group's memory adjustable?.
Examples:true
Is this group's memory optional?.
Examples:false
Can this group's memory scale down?.
Examples:true
- CPU
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Examples:count
Number of allocated CPUs.
Examples:2
Minimum number of CPUs.
Examples:2
Maximum number of CPUs.
Examples:32
Step size CPUs can be adjusted.
Examples:2
Is this group's CPU count adjustable.
Examples:false
Is this group's CPU optional?.
Examples:false
Can this group's CPU scale down?.
Examples:true
- Disk
Units used for scaling storage.
Examples:mb
Allocated storage in MB.
Examples:10240
Minimum allocated storage.
Examples:2048
Maximum allocated storage.
Examples:4194304
Step size storage can be adjusted.
Examples:2048
Is this group's storage adjustable?.
Examples:true
Is this group's storage optional?.
Examples:false
Can this group's storage scale down?.
Examples:false
{
"groups": [
{
"id": "member",
"count": 3,
"members": {
"units": "count",
"allocation_count": 3,
"minimum_count": 3,
"maximum_count": 20,
"step_size_count": 1,
"is_adjustable": false,
"is_optional": false,
"can_scale_down": false
},
"memory": {
"units": "mb",
"allocation_mb": 3072,
"minimum_mb": 3072,
"maximum_mb": 344064,
"step_size_mb": 384,
"is_adjustable": true,
"can_scale_down": true
},
"disk": {
"units": "mb",
"allocation_mb": 15360,
"minimum_mb": 15360,
"maximum_mb": 11010048,
"step_size_mb": 3072,
"is_adjustable": true,
"can_scale_down": false
},
"cpu": {
"units": "count",
"allocation_count": 0,
"minimum_count": 3,
"maximum_count": 90,
"step_size_count": 3,
"is_adjustable": false,
"is_optional": true
}
}
]
}
- groups
Id/name for group.
Examples:member
Number of entities in the group.
Examples:2
- members
Units used for scaling number of members.
Examples:count
Allocated number of members.
Examples:2
Minimum number of members.
Examples:2
Maximum number of members.
Examples:20
Step size for number of members.
Examples:1
Is this deployment's number of members adjustable?.
Examples:true
Is this deployments's number of members optional?.
Examples:false
Can this deployment's number of members scale down?.
Examples:false
- memory
Units used for scaling memory.
Examples:mb
Allocated memory in MB.
Examples:12288
Minimum memory in MB.
Examples:1024
Maximum memory in MB.
Examples:114688
Step size memory can be adjusted by in MB.
Examples:1024
Is this group's memory adjustable?.
Examples:true
Is this group's memory optional?.
Examples:false
Can this group's memory scale down?.
Examples:true
- cpu
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Examples:count
Number of allocated CPUs.
Examples:2
Minimum number of CPUs.
Examples:2
Maximum number of CPUs.
Examples:32
Step size CPUs can be adjusted.
Examples:2
Is this group's CPU count adjustable.
Examples:false
Is this group's CPU optional?.
Examples:false
Can this group's CPU scale down?.
Examples:true
- disk
Units used for scaling storage.
Examples:mb
Allocated storage in MB.
Examples:10240
Minimum allocated storage.
Examples:2048
Maximum allocated storage.
Examples:4194304
Step size storage can be adjusted.
Examples:2048
Is this group's storage adjustable?.
Examples:true
Is this group's storage optional?.
Examples:false
Can this group's storage scale down?.
Examples:false
{
"groups": [
{
"id": "member",
"count": 3,
"members": {
"units": "count",
"allocation_count": 3,
"minimum_count": 3,
"maximum_count": 20,
"step_size_count": 1,
"is_adjustable": false,
"is_optional": false,
"can_scale_down": false
},
"memory": {
"units": "mb",
"allocation_mb": 3072,
"minimum_mb": 3072,
"maximum_mb": 344064,
"step_size_mb": 384,
"is_adjustable": true,
"can_scale_down": true
},
"disk": {
"units": "mb",
"allocation_mb": 15360,
"minimum_mb": 15360,
"maximum_mb": 11010048,
"step_size_mb": 3072,
"is_adjustable": true,
"can_scale_down": false
},
"cpu": {
"units": "count",
"allocation_count": 0,
"minimum_count": 3,
"maximum_count": 90,
"step_size_count": 3,
"is_adjustable": false,
"is_optional": true
}
}
]
}
- groups
Id/name for group.
Examples:member
Number of entities in the group.
Examples:2
- members
Units used for scaling number of members.
Examples:count
Allocated number of members.
Examples:2
Minimum number of members.
Examples:2
Maximum number of members.
Examples:20
Step size for number of members.
Examples:1
Is this deployment's number of members adjustable?.
Examples:true
Is this deployments's number of members optional?.
Examples:false
Can this deployment's number of members scale down?.
Examples:false
- memory
Units used for scaling memory.
Examples:mb
Allocated memory in MB.
Examples:12288
Minimum memory in MB.
Examples:1024
Maximum memory in MB.
Examples:114688
Step size memory can be adjusted by in MB.
Examples:1024
Is this group's memory adjustable?.
Examples:true
Is this group's memory optional?.
Examples:false
Can this group's memory scale down?.
Examples:true
- cpu
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Examples:count
Number of allocated CPUs.
Examples:2
Minimum number of CPUs.
Examples:2
Maximum number of CPUs.
Examples:32
Step size CPUs can be adjusted.
Examples:2
Is this group's CPU count adjustable.
Examples:false
Is this group's CPU optional?.
Examples:false
Can this group's CPU scale down?.
Examples:true
- disk
Units used for scaling storage.
Examples:mb
Allocated storage in MB.
Examples:10240
Minimum allocated storage.
Examples:2048
Maximum allocated storage.
Examples:4194304
Step size storage can be adjusted.
Examples:2048
Is this group's storage adjustable?.
Examples:true
Is this group's storage optional?.
Examples:false
Can this group's storage scale down?.
Examples:false
Status Code
An array of scaling groups
Invalid token
No Sample Response
Get default scaling groups for a new deployment
Scaling groups represent the various resources allocated to a deployment. When a new deployment is created, there are a set of defaults for each database type. This endpoint returns them for a particular database.
Scaling groups represent the various resources allocated to a deployment. When a new deployment is created, there are a set of defaults for each database type. This endpoint returns them for a particular database.
Scaling groups represent the various resources allocated to a deployment. When a new deployment is created, there are a set of defaults for each database type. This endpoint returns them for a particular database.
Scaling groups represent the various resources allocated to a deployment. When a new deployment is created, there are a set of defaults for each database type. This endpoint returns them for a particular database.
GET /deployables/{type}/groups
(cloudDatabases *CloudDatabasesV5) GetDefaultScalingGroups(getDefaultScalingGroupsOptions *GetDefaultScalingGroupsOptions) (result *Groups, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetDefaultScalingGroupsWithContext(ctx context.Context, getDefaultScalingGroupsOptions *GetDefaultScalingGroupsOptions) (result *Groups, response *core.DetailedResponse, err error)
getDefaultScalingGroups(params)
get_default_scaling_groups(self,
type: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetDefaultScalingGroupsOptions
struct and set the fields to provide parameter values for the GetDefaultScalingGroups
method.
Path Parameters
Database type name
Allowable values: [
postgresql
,etcd
]Example:
postgresql
Query Parameters
When a host_flavor of 'multitenant' is included with the request, IBM Cloud Database's new shared compute default groups will be returned
Allowable values: [
multitenant
]Example:
multitenant
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetDefaultScalingGroups options.
Database type name.
Allowable values: [
postgresql
,etcd
]Examples:postgresql
parameters
Database type name.
Allowable values: [
postgresql
,etcd
]Examples:
parameters
Database type name.
Allowable values: [
postgresql
,etcd
]Examples:
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployables/{type}/groups -H 'Authorization: Bearer <>' \
getDefaultScalingGroupsOptions := cloudDatabasesService.NewGetDefaultScalingGroupsOptions( "postgresql", ) groups, response, err := cloudDatabasesService.GetDefaultScalingGroups(getDefaultScalingGroupsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(groups, "", " ") fmt.Println(string(b))
const params = { type: 'postgresql', }; cloudDatabasesService.getDefaultScalingGroups(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
groups = cloud_databases_service.get_default_scaling_groups( type='postgresql', ).get_result() print(json.dumps(groups, indent=2))
Response
- groups
Id/name for group
Possible values: [
member
,search
,bi_connector
,analytics
]Example:
member
Number of entities in the group
Example:
2
- members
Units used for scaling number of members
Example:
count
Allocated number of members
Example:
2
Minimum number of members
Example:
2
Maximum number of members
Example:
20
Step size for number of members
Example:
1
Is this deployment's number of members adjustable?
Example:
true
Is this deployments's number of members optional?
Can this deployment's number of members scale down?
- memory
Units used for scaling memory
Example:
mb
Allocated memory in MB
Example:
12288
Minimum memory in MB
Example:
1024
Maximum memory in MB
Example:
114688
Step size memory can be adjusted by in MB
Example:
1024
Is this group's memory adjustable?
Example:
true
Is this group's memory optional?
Can this group's memory scale down?
Example:
true
The amount of memory required before the cpu/memory ratio is no longer enforced. (multitenant only)
Example:
16384
The maximum memory allowed per CPU until the ratio ceiling is reached. (multitenant only)
Example:
8192
- cpu
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Example:
count
Number of allocated CPUs
Example:
2
Minimum number of CPUs
Example:
2
Maximum number of CPUs
Example:
32
Step size CPUs can be adjusted
Example:
2
Is this group's CPU count adjustable
Is this group's CPU optional?
Can this group's CPU scale down?
Example:
true
- disk
Units used for scaling storage
Example:
mb
Allocated storage in MB
Example:
10240
Minimum allocated storage
Example:
2048
Maximum allocated storage
Example:
4194304
Step size storage can be adjusted
Example:
2048
Is this group's storage adjustable?
Example:
true
Is this group's storage optional?
Can this group's storage scale down?
- host_flavor
Group's host flavor id
Example:
b3c.4x16.encrypted
Group's hostflavor name
Example:
4x16
Group's host flavor size
Example:
xs
{
"groups": [
{
"id": "member",
"count": 3,
"members": {
"units": "count",
"allocation_count": 3,
"minimum_count": 3,
"maximum_count": 20,
"step_size_count": 1,
"is_adjustable": false,
"is_optional": false,
"can_scale_down": false
},
"memory": {
"units": "mb",
"allocation_mb": 3072,
"minimum_mb": 3072,
"maximum_mb": 344064,
"step_size_mb": 384,
"is_adjustable": true,
"can_scale_down": true
},
"disk": {
"units": "mb",
"allocation_mb": 15360,
"minimum_mb": 15360,
"maximum_mb": 11010048,
"step_size_mb": 3072,
"is_adjustable": true,
"can_scale_down": false
},
"cpu": {
"units": "count",
"allocation_count": 0,
"minimum_count": 3,
"maximum_count": 90,
"step_size_count": 3,
"is_adjustable": false,
"is_optional": true
}
}
]
}
- Groups
Id/name for group.
Examples:member
Number of entities in the group.
Examples:2
- Members
Units used for scaling number of members.
Examples:count
Allocated number of members.
Examples:2
Minimum number of members.
Examples:2
Maximum number of members.
Examples:20
Step size for number of members.
Examples:1
Is this deployment's number of members adjustable?.
Examples:true
Is this deployments's number of members optional?.
Examples:false
Can this deployment's number of members scale down?.
Examples:false
- Memory
Units used for scaling memory.
Examples:mb
Allocated memory in MB.
Examples:12288
Minimum memory in MB.
Examples:1024
Maximum memory in MB.
Examples:114688
Step size memory can be adjusted by in MB.
Examples:1024
Is this group's memory adjustable?.
Examples:true
Is this group's memory optional?.
Examples:false
Can this group's memory scale down?.
Examples:true
- CPU
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Examples:count
Number of allocated CPUs.
Examples:2
Minimum number of CPUs.
Examples:2
Maximum number of CPUs.
Examples:32
Step size CPUs can be adjusted.
Examples:2
Is this group's CPU count adjustable.
Examples:false
Is this group's CPU optional?.
Examples:false
Can this group's CPU scale down?.
Examples:true
- Disk
Units used for scaling storage.
Examples:mb
Allocated storage in MB.
Examples:10240
Minimum allocated storage.
Examples:2048
Maximum allocated storage.
Examples:4194304
Step size storage can be adjusted.
Examples:2048
Is this group's storage adjustable?.
Examples:true
Is this group's storage optional?.
Examples:false
Can this group's storage scale down?.
Examples:false
{
"groups": [
{
"id": "member",
"count": 3,
"members": {
"units": "count",
"allocation_count": 3,
"minimum_count": 3,
"maximum_count": 20,
"step_size_count": 1,
"is_adjustable": false,
"is_optional": false,
"can_scale_down": false
},
"memory": {
"units": "mb",
"allocation_mb": 3072,
"minimum_mb": 3072,
"maximum_mb": 344064,
"step_size_mb": 384,
"is_adjustable": true,
"can_scale_down": true
},
"disk": {
"units": "mb",
"allocation_mb": 15360,
"minimum_mb": 15360,
"maximum_mb": 11010048,
"step_size_mb": 3072,
"is_adjustable": true,
"can_scale_down": false
},
"cpu": {
"units": "count",
"allocation_count": 0,
"minimum_count": 3,
"maximum_count": 90,
"step_size_count": 3,
"is_adjustable": false,
"is_optional": true
}
}
]
}
- groups
Id/name for group.
Examples:member
Number of entities in the group.
Examples:2
- members
Units used for scaling number of members.
Examples:count
Allocated number of members.
Examples:2
Minimum number of members.
Examples:2
Maximum number of members.
Examples:20
Step size for number of members.
Examples:1
Is this deployment's number of members adjustable?.
Examples:true
Is this deployments's number of members optional?.
Examples:false
Can this deployment's number of members scale down?.
Examples:false
- memory
Units used for scaling memory.
Examples:mb
Allocated memory in MB.
Examples:12288
Minimum memory in MB.
Examples:1024
Maximum memory in MB.
Examples:114688
Step size memory can be adjusted by in MB.
Examples:1024
Is this group's memory adjustable?.
Examples:true
Is this group's memory optional?.
Examples:false
Can this group's memory scale down?.
Examples:true
- cpu
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Examples:count
Number of allocated CPUs.
Examples:2
Minimum number of CPUs.
Examples:2
Maximum number of CPUs.
Examples:32
Step size CPUs can be adjusted.
Examples:2
Is this group's CPU count adjustable.
Examples:false
Is this group's CPU optional?.
Examples:false
Can this group's CPU scale down?.
Examples:true
- disk
Units used for scaling storage.
Examples:mb
Allocated storage in MB.
Examples:10240
Minimum allocated storage.
Examples:2048
Maximum allocated storage.
Examples:4194304
Step size storage can be adjusted.
Examples:2048
Is this group's storage adjustable?.
Examples:true
Is this group's storage optional?.
Examples:false
Can this group's storage scale down?.
Examples:false
{
"groups": [
{
"id": "member",
"count": 3,
"members": {
"units": "count",
"allocation_count": 3,
"minimum_count": 3,
"maximum_count": 20,
"step_size_count": 1,
"is_adjustable": false,
"is_optional": false,
"can_scale_down": false
},
"memory": {
"units": "mb",
"allocation_mb": 3072,
"minimum_mb": 3072,
"maximum_mb": 344064,
"step_size_mb": 384,
"is_adjustable": true,
"can_scale_down": true
},
"disk": {
"units": "mb",
"allocation_mb": 15360,
"minimum_mb": 15360,
"maximum_mb": 11010048,
"step_size_mb": 3072,
"is_adjustable": true,
"can_scale_down": false
},
"cpu": {
"units": "count",
"allocation_count": 0,
"minimum_count": 3,
"maximum_count": 90,
"step_size_count": 3,
"is_adjustable": false,
"is_optional": true
}
}
]
}
- groups
Id/name for group.
Examples:member
Number of entities in the group.
Examples:2
- members
Units used for scaling number of members.
Examples:count
Allocated number of members.
Examples:2
Minimum number of members.
Examples:2
Maximum number of members.
Examples:20
Step size for number of members.
Examples:1
Is this deployment's number of members adjustable?.
Examples:true
Is this deployments's number of members optional?.
Examples:false
Can this deployment's number of members scale down?.
Examples:false
- memory
Units used for scaling memory.
Examples:mb
Allocated memory in MB.
Examples:12288
Minimum memory in MB.
Examples:1024
Maximum memory in MB.
Examples:114688
Step size memory can be adjusted by in MB.
Examples:1024
Is this group's memory adjustable?.
Examples:true
Is this group's memory optional?.
Examples:false
Can this group's memory scale down?.
Examples:true
- cpu
Units used for scaling cpu - count means the value is the number of the unit(s) available.
Examples:count
Number of allocated CPUs.
Examples:2
Minimum number of CPUs.
Examples:2
Maximum number of CPUs.
Examples:32
Step size CPUs can be adjusted.
Examples:2
Is this group's CPU count adjustable.
Examples:false
Is this group's CPU optional?.
Examples:false
Can this group's CPU scale down?.
Examples:true
- disk
Units used for scaling storage.
Examples:mb
Allocated storage in MB.
Examples:10240
Minimum allocated storage.
Examples:2048
Maximum allocated storage.
Examples:4194304
Step size storage can be adjusted.
Examples:2048
Is this group's storage adjustable?.
Examples:true
Is this group's storage optional?.
Examples:false
Can this group's storage scale down?.
Examples:false
Status Code
An array of scaling groups
Invalid token
No Sample Response
Set scaling values on a specified group.
Set scaling value on a specified group. Can only be performed on is_adjustable=true groups. Values set are for the group as a whole and resources are distributed amongst the group. Values must be greater than or equal to the minimum size and must be a multiple of the step size.
Set scaling value on a specified group. Can only be performed on is_adjustable=true groups. Values set are for the group as a whole and resources are distributed amongst the group. Values must be greater than or equal to the minimum size and must be a multiple of the step size.
Set scaling value on a specified group. Can only be performed on is_adjustable=true groups. Values set are for the group as a whole and resources are distributed amongst the group. Values must be greater than or equal to the minimum size and must be a multiple of the step size.
Set scaling value on a specified group. Can only be performed on is_adjustable=true groups. Values set are for the group as a whole and resources are distributed amongst the group. Values must be greater than or equal to the minimum size and must be a multiple of the step size.
PATCH /deployments/{id}/groups/{group_id}
(cloudDatabases *CloudDatabasesV5) SetDeploymentScalingGroup(setDeploymentScalingGroupOptions *SetDeploymentScalingGroupOptions) (result *SetDeploymentScalingGroupResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) SetDeploymentScalingGroupWithContext(ctx context.Context, setDeploymentScalingGroupOptions *SetDeploymentScalingGroupOptions) (result *SetDeploymentScalingGroupResponse, response *core.DetailedResponse, err error)
setDeploymentScalingGroup(params)
set_deployment_scaling_group(self,
id: str,
group_id: str,
set_deployment_scaling_group_request: 'SetDeploymentScalingGroupRequest',
**kwargs
) -> DetailedResponse
Request
Instantiate the SetDeploymentScalingGroupOptions
struct and set the fields to provide parameter values for the SetDeploymentScalingGroup
method.
Path Parameters
Deployment ID
Group Id
Scaling group settings
{
"memory": {
"allocation_mb": 4096
}
}
- group
- members
Allocated number of members
Example:
4
- memory
Allocated memory in MB
Example:
12288
- cpu
Number of allocated CPUs
Example:
2
- disk
Allocated storage in MB
Example:
20480
- host_flavor
Beta feature: The hosting infrastructure identifier. Selecting
multitenant
places your database on a logically separated, multi-tenant machine. With this identifier, minimum resource configurations apply. Alternatively, setting the identifier to any of the following host sizes places your database on the specified host size with no other tenants.b3c.4x16.encrypted
b3c.8x32.encrypted
m3c.8x64.encrypted
b3c.16x64.encrypted
b3c.32x128.encrypted
m3c.30x240.encrypted
Example:
b3c.16x64.encrypted
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The SetDeploymentScalingGroup options.
Deployment ID.
Group Id.
- SetDeploymentScalingGroupRequest
- Members
Allocated number of members.
Examples:4
parameters
Deployment ID.
Group Id.
- setDeploymentScalingGroupRequest
- members
Allocated number of members.
Examples:4
parameters
Deployment ID.
Group Id.
- set_deployment_scaling_group_request
- members
Allocated number of members.
Examples:4
curl -X PATCH https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/groups/{group_id} -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"memory": {"allocation_mb": 4096}}' \
setMemoryGroupMemoryModel := &clouddatabasesv5.SetMemoryGroupMemory{ AllocationMb: core.Int64Ptr(int64(114688)), } setDeploymentScalingGroupRequestModel := &clouddatabasesv5.SetDeploymentScalingGroupRequestSetMemoryGroup{ Memory: setMemoryGroupMemoryModel, } setDeploymentScalingGroupOptions := cloudDatabasesService.NewSetDeploymentScalingGroupOptions( deploymentID, scalingGroupIDLink, setDeploymentScalingGroupRequestModel, ) setDeploymentScalingGroupResponse, response, err := cloudDatabasesService.SetDeploymentScalingGroup(setDeploymentScalingGroupOptions) if err != nil { handleError(setDeploymentScalingGroupResponse, response, err) } b, _ := json.MarshalIndent(setDeploymentScalingGroupResponse, "", " ") fmt.Println(string(b))
const setMemoryGroupMemoryModel = { allocation_mb: 114688, }; const setDeploymentScalingGroupRequestModel = { memory: setMemoryGroupMemoryModel, }; const params = { id: deploymentId, groupId: scalingGroupIdLink, setDeploymentScalingGroupRequest: setDeploymentScalingGroupRequestModel, }; cloudDatabasesService.setDeploymentScalingGroup(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
set_memory_group_memory_model = SetMemoryGroupMemory( allocation_mb=114688, ) set_deployment_scaling_group_request_model = SetDeploymentScalingGroupRequestSetMemoryGroup( memory=set_memory_group_memory_model, ) set_deployment_scaling_group_response = cloud_databases_service.set_deployment_scaling_group( id=deployment_id, group_id=scaling_group_id_link, set_deployment_scaling_group_request=set_deployment_scaling_group_request_model ).get_result() print(json.dumps(set_deployment_scaling_group_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Scaling database deployment",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:20:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Scaling database deployment",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:20:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b",
"description": "Scaling database deployment",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:20:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to scale the deployment
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Scaling database deployment", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:20:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b", "description": "Scaling database deployment", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:20:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Get the autoscaling configuration from a deployment
The Autoscaling configuration represents the various conditions that control autoscaling for a deployment. This command allows for the retrieval of all autoscaling conditions for a particular deployment.
The Autoscaling configuration represents the various conditions that control autoscaling for a deployment. This command allows for the retrieval of all autoscaling conditions for a particular deployment.
The Autoscaling configuration represents the various conditions that control autoscaling for a deployment. This command allows for the retrieval of all autoscaling conditions for a particular deployment.
The Autoscaling configuration represents the various conditions that control autoscaling for a deployment. This command allows for the retrieval of all autoscaling conditions for a particular deployment.
GET /deployments/{id}/groups/{group_id}/autoscaling
(cloudDatabases *CloudDatabasesV5) GetAutoscalingConditions(getAutoscalingConditionsOptions *GetAutoscalingConditionsOptions) (result *AutoscalingGroup, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetAutoscalingConditionsWithContext(ctx context.Context, getAutoscalingConditionsOptions *GetAutoscalingConditionsOptions) (result *AutoscalingGroup, response *core.DetailedResponse, err error)
getAutoscalingConditions(params)
get_autoscaling_conditions(self,
id: str,
group_id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetAutoscalingConditionsOptions
struct and set the fields to provide parameter values for the GetAutoscalingConditions
method.
Path Parameters
Deployment ID
Group ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetAutoscalingConditions options.
Deployment ID.
Group ID.
parameters
Deployment ID.
Group ID.
parameters
Deployment ID.
Group ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/groups/{group_id}/autoscaling -H 'Authorization: Bearer <>' \
getAutoscalingConditionsOptions := cloudDatabasesService.NewGetAutoscalingConditionsOptions( deploymentID, autoScalingGroupID, ) autoscalingGroup, response, err := cloudDatabasesService.GetAutoscalingConditions(getAutoscalingConditionsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(autoscalingGroup, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, groupId: autoScalingGroupId, }; cloudDatabasesService.getAutoscalingConditions(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
autoscaling_group = cloud_databases_service.get_autoscaling_conditions( id=deployment_id, group_id=auto_scaling_group_id, ).get_result() print(json.dumps(autoscaling_group, indent=2))
Response
- autoscaling
- Autoscaling
- Disk
- Scalers
- Capacity
- Examples:
true
- Examples:
10
- IoUtilization
- Examples:
true
- Examples:
30m
- Examples:
45
- Rate
- Examples:
20
- Examples:
900
- Examples:
3670016
- Examples:
mb
- Memory
- Scalers
- IoUtilization
- Examples:
true
- Examples:
30m
- Examples:
45
- Rate
- Examples:
10
- Examples:
900
- Examples:
3670016
- Examples:
mb
- CPU
- Rate
- Examples:
10
- Examples:
900
- Examples:
10
- Examples:
count
- autoscaling
- disk
- scalers
- capacity
- Examples:
true
- Examples:
10
- io_utilization
- Examples:
true
- Examples:
30m
- Examples:
45
- rate
- Examples:
20
- Examples:
900
- Examples:
3670016
- Examples:
mb
- memory
- scalers
- io_utilization
- Examples:
true
- Examples:
30m
- Examples:
45
- rate
- Examples:
10
- Examples:
900
- Examples:
3670016
- Examples:
mb
- cpu
- rate
- Examples:
10
- Examples:
900
- Examples:
10
- Examples:
count
- autoscaling
- disk
- scalers
- capacity
- Examples:
true
- Examples:
10
- io_utilization
- Examples:
true
- Examples:
30m
- Examples:
45
- rate
- Examples:
20
- Examples:
900
- Examples:
3670016
- Examples:
mb
- memory
- scalers
- io_utilization
- Examples:
true
- Examples:
30m
- Examples:
45
- rate
- Examples:
10
- Examples:
900
- Examples:
3670016
- Examples:
mb
- cpu
- rate
- Examples:
10
- Examples:
900
- Examples:
10
- Examples:
count
Status Code
An object containing autoscaling conditions
Invalid token
Not Found
{ "autoscaling": { "disk": { "scalers": { "capacity": { "enabled": false, "free_space_remaining_percent": 10 }, "io_utilization": { "enabled": true, "over_period": "30m", "above_percent": 45 } }, "rate": { "increase_percent": 20, "scale_period_seconds": 900, "limit_mb_per_member": 3670016, "units": "mb" } }, "memory": { "scalers": { "io_utilization": { "enabled": false, "over_period": "5m", "above_percent": 90 } }, "rate": { "increase_percent": 10, "period_seconds": 900, "limit_mb_per_member": 125952, "units": "mb" } } } }
{ "autoscaling": { "disk": { "scalers": { "capacity": { "enabled": false, "free_space_remaining_percent": 10 }, "io_utilization": { "enabled": true, "over_period": "30m", "above_percent": 45 } }, "rate": { "increase_percent": 20, "scale_period_seconds": 900, "limit_mb_per_member": 3670016, "units": "mb" } }, "memory": { "scalers": { "io_utilization": { "enabled": false, "over_period": "5m", "above_percent": 90 } }, "rate": { "increase_percent": 10, "period_seconds": 900, "limit_mb_per_member": 125952, "units": "mb" } } } }
Set the autoscaling configuration from a deployment
Enable, disable, or set the conditions for autoscaling on your deployment. Memory, disk, and CPU (if available) can be set separately and are not all required.
Enable, disable, or set the conditions for autoscaling on your deployment. Memory, disk, and CPU (if available) can be set separately and are not all required.
Enable, disable, or set the conditions for autoscaling on your deployment. Memory, disk, and CPU (if available) can be set separately and are not all required.
Enable, disable, or set the conditions for autoscaling on your deployment. Memory, disk, and CPU (if available) can be set separately and are not all required.
PATCH /deployments/{id}/groups/{group_id}/autoscaling
(cloudDatabases *CloudDatabasesV5) SetAutoscalingConditions(setAutoscalingConditionsOptions *SetAutoscalingConditionsOptions) (result *SetAutoscalingConditionsResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) SetAutoscalingConditionsWithContext(ctx context.Context, setAutoscalingConditionsOptions *SetAutoscalingConditionsOptions) (result *SetAutoscalingConditionsResponse, response *core.DetailedResponse, err error)
setAutoscalingConditions(params)
set_autoscaling_conditions(self,
id: str,
group_id: str,
autoscaling: 'AutoscalingSetGroupAutoscaling',
**kwargs
) -> DetailedResponse
Request
Instantiate the SetAutoscalingConditionsOptions
struct and set the fields to provide parameter values for the SetAutoscalingConditions
method.
Path Parameters
Deployment ID
Group ID
Autoscaling configuration
{
"autoscaling": {
"memory": {
"scalers": {
"io_utilization": {
"enabled": true,
"over_period": "5m",
"above_percent": 90
}
},
"rate": {
"increase_percent": 10,
"period_seconds": 300,
"limit_mb_per_member": 125952,
"units": "mb"
}
}
}
}
- autoscaling
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The SetAutoscalingConditions options.
Deployment ID.
Group ID.
- Autoscaling
- Disk
- Scalers
- Capacity
- Examples:
true
- Examples:
10
- IoUtilization
- Examples:
true
- Examples:
30m
- Examples:
45
- Rate
- Examples:
20
- Examples:
900
- Examples:
3670016
- Examples:
mb
parameters
Deployment ID.
Group ID.
- autoscaling
- disk
- scalers
- capacity
- Examples:
true
- Examples:
10
- io_utilization
- Examples:
true
- Examples:
30m
- Examples:
45
- rate
- Examples:
20
- Examples:
900
- Examples:
3670016
- Examples:
mb
parameters
Deployment ID.
Group ID.
- autoscaling
- disk
- scalers
- capacity
- Examples:
true
- Examples:
10
- io_utilization
- Examples:
true
- Examples:
30m
- Examples:
45
- rate
- Examples:
20
- Examples:
900
- Examples:
3670016
- Examples:
mb
curl -X PATCH https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/groups/{group_id}/autoscaling -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"autoscaling": { "memory": {"scalers": {"io_utilization": {"enabled": true, "over_period": "5m","above_percent": 90}},"rate": {"increase_percent": 10.0, "period_seconds": 300,"limit_mb_per_member": 125952,"units": "mb"}}}}' \
autoscalingMemoryGroupMemoryScalersIoUtilizationModel := &clouddatabasesv5.AutoscalingMemoryGroupMemoryScalersIoUtilization{ Enabled: core.BoolPtr(true), OverPeriod: core.StringPtr("5m"), AbovePercent: core.Int64Ptr(int64(90)), } autoscalingMemoryGroupMemoryScalersModel := &clouddatabasesv5.AutoscalingMemoryGroupMemoryScalers{ IoUtilization: autoscalingMemoryGroupMemoryScalersIoUtilizationModel, } autoscalingMemoryGroupMemoryRateModel := &clouddatabasesv5.AutoscalingMemoryGroupMemoryRate{ IncreasePercent: core.Float64Ptr(float64(10.0)), PeriodSeconds: core.Int64Ptr(int64(300)), LimitMbPerMember: core.Float64Ptr(float64(114432)), Units: core.StringPtr("mb"), } autoscalingMemoryGroupMemoryModel := &clouddatabasesv5.AutoscalingMemoryGroupMemory{ Scalers: autoscalingMemoryGroupMemoryScalersModel, Rate: autoscalingMemoryGroupMemoryRateModel, } autoscalingSetGroupAutoscalingModel := &clouddatabasesv5.AutoscalingSetGroupAutoscalingAutoscalingMemoryGroup{ Memory: autoscalingMemoryGroupMemoryModel, } setAutoscalingConditionsOptions := cloudDatabasesService.NewSetAutoscalingConditionsOptions( deploymentID, autoScalingGroupID, autoscalingSetGroupAutoscalingModel, ) setAutoscalingConditionsResponse, response, err := cloudDatabasesService.SetAutoscalingConditions(setAutoscalingConditionsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(setAutoscalingConditionsResponse, "", " ") fmt.Println(string(b))
const autoscalingMemoryGroupMemoryScalersIoUtilizationModel = { enabled: true, over_period: '5m', above_percent: 90, }; const autoscalingMemoryGroupMemoryScalersModel = { io_utilization: autoscalingMemoryGroupMemoryScalersIoUtilizationModel, }; const autoscalingMemoryGroupMemoryRateModel = { increase_percent: 10.0, period_seconds: 300, limit_mb_per_member: 114432, units: 'mb', }; const autoscalingMemoryGroupMemoryModel = { scalers: autoscalingMemoryGroupMemoryScalersModel, rate: autoscalingMemoryGroupMemoryRateModel, }; const autoscalingSetGroupAutoscalingModel = { memory: autoscalingMemoryGroupMemoryModel, }; const params = { id: deploymentId, groupId: autoScalingGroupId, autoscaling: autoscalingSetGroupAutoscalingModel, }; cloudDatabasesService.setAutoscalingConditions(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
autoscaling_memory_group_memory_scalers_io_utilization_model = AutoscalingMemoryGroupMemoryScalersIoUtilization( enabled=True, over_period='5m', above_percent=90, ) autoscaling_memory_group_memory_scalers_model = AutoscalingMemoryGroupMemoryScalers( io_utilization=autoscaling_memory_group_memory_scalers_io_utilization_model, ) autoscaling_memory_group_memory_rate_model = AutoscalingMemoryGroupMemoryRate( increase_percent=10.0, period_seconds=300, limit_mb_per_member=114432, units='mb', ) autoscaling_memory_group_memory_model = AutoscalingMemoryGroupMemory( scalers=autoscaling_memory_group_memory_scalers_model, rate=autoscaling_memory_group_memory_rate_model, ) autoscaling_set_group_autoscaling_model = AutoscalingSetGroupAutoscalingAutoscalingMemoryGroup( memory=autoscaling_memory_group_memory_model, ) set_autoscaling_conditions_response = cloud_databases_service.set_autoscaling_conditions( id=deployment_id, group_id=auto_scaling_group_id, autoscaling=autoscaling_set_group_autoscaling_model, ).get_result() print(json.dumps(set_autoscaling_conditions_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423a4ef238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b",
"description": "Synthesized autoscaling",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"created_at": "2019-10-17T14:15:52.393Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423a4ef238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b",
"description": "Synthesized autoscaling",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"created_at": "2019-10-17T14:15:52.393Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423a4ef238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b",
"description": "Synthesized autoscaling",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"created_at": "2019-10-17T14:15:52.393Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to configure autoscaling
Invalid token
Not Found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423a4ef238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b", "description": "Synthesized autoscaling", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "created_at": "2019-10-17T14:15:52.393Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423a4ef238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b", "description": "Synthesized autoscaling", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "created_at": "2019-10-17T14:15:52.393Z" } }
Kill connections to a PostgreSQL or EnterpriseDB deployment
Closes all the connections on a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
Closes all the connections on a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
Closes all the connections on a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
Closes all the connections on a deployment. Available for PostgreSQL and EnterpriseDB ONLY.
DELETE /deployments/{id}/management/database_connections
(cloudDatabases *CloudDatabasesV5) KillConnections(killConnectionsOptions *KillConnectionsOptions) (result *KillConnectionsResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) KillConnectionsWithContext(ctx context.Context, killConnectionsOptions *KillConnectionsOptions) (result *KillConnectionsResponse, response *core.DetailedResponse, err error)
killConnections(params)
kill_connections(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the KillConnectionsOptions
struct and set the fields to provide parameter values for the KillConnections
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The KillConnections options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X DELETE https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/management/database_connections -H 'Authorization: Bearer <>' \
killConnectionsOptions := cloudDatabasesService.NewKillConnectionsOptions( deploymentID, ) killConnectionsResponse, response, err := cloudDatabasesService.KillConnections(killConnectionsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(killConnectionsResponse, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.killConnections(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
kill_connections_response = cloud_databases_service.kill_connections( id=deployment_id, ).get_result() print(json.dumps(kill_connections_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0c59-4db6-92f3-b5c96544393b",
"description": "Killing all database connections.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0c59-4db6-92f3-b5c96544393b",
"description": "Killing all database connections.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0c59-4db6-92f3-b5c96544393b",
"description": "Killing all database connections.",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 5,
"created_at": "2018-03-28T10:31:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0c59-4db6-92f3-b5c96544393b", "description": "Killing all database connections.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0c59-4db6-92f3-b5c96544393b", "description": "Killing all database connections.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
Sync files uploaded to Elasticsearch deployment
Starts a task that writes files to disk. Available for Elasticsearch ONLY.
POST /deployments/{id}/elasticsearch/file_syncs
Request
Path Parameters
Deployment ID
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/elasticsearch/file_syncs -H 'Authorization: Bearer <>' \
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:b125f76a-99bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544393b", "description": "Syncing files from standard index.", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-elasticsearch:us-south:a/274074dce64e9c423ffc238516c755e1:b125f76a-99bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 5, "created_at": "2018-03-28T10:31:30Z" } }
Create a new logical replication slot
Creates a new logical replication slot on the specified database. For use with PostgreSQL and wal2json only.
POST /deployments/{id}/postgresql/logical_replication_slots
Request
Path Parameters
Deployment ID
Defines the logical replication slot. All fields are required.
{
"logical_replication_slot": {
"name": "customer_replication",
"database_name": "customers",
"plugin_type": "wal2json"
}
}
- logical_replication_slot
name of the replication slot
Example:
customer_replication
name of the database the replication slot is created on
Example:
customers
creating a replication slot is only supported for use with wal2json
Example:
wal2json
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/postgresql/logical_replication_slots -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"logical_replication_slot":{"name": "customer_replication","database_name": "customers","plugin_type": "wal2json"}}' \
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:eu-de:a/057f598ff0b94d9663c28b68843eaab3:b544602f-ad0a-405b-ba39-2e69d04ff3a2:task:d29ea458-5c11-486f-9182-1984ec5d5314", "description": "Creating logical replication slot", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:eu-de:a/057f598ff0b94d9663c28b68843eaab3:b544602f-ad0a-405b-ba39-2e69d04ff3a2::", "progress_percent": 0, "created_at": "2019-05-31T10:20:30Z" } }
Delete a logical replication slot
Deletes a logical replication slot from a database. For use with PostgreSQL, EnterpriseDB, and wal2json only.
DELETE /deployments/{id}/postgresql/logical_replication_slots/{name}
Request
Path Parameters
Deployment ID
Name of the logical replication slot
curl -X DELETE https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/postgresql/logical_replication_slots/customer_replication -H 'Authorization: Bearer <>' \
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task
Invalid token
not found
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:eu-de:a/057f598ff0b94d9663c28b68843eaab3:b544602f-ad0a-405b-ba39-2e69d04ff3a2:task:d29ea458-5c11-486f-9182-1894ec5d5314", "description": "Deleting logical replication slot", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:eu-de:a/057f598ff0b94d9663c28b68843eaab3:b544602f-ad0a-405b-ba39-2e69d04ff3a2::", "progress_percent": 0, "created_at": "2019-05-31T10:20:30Z" } }
Retrieve the allowlisted addresses and ranges for a deployment.
Retrieve the allowlisted addresses and ranges for a deployment.
Retrieve the allowlisted addresses and ranges for a deployment.
Retrieve the allowlisted addresses and ranges for a deployment.
Retrieve the allowlisted addresses and ranges for a deployment.
GET /deployments/{id}/allowlists/ip_addresses
(cloudDatabases *CloudDatabasesV5) GetAllowlist(getAllowlistOptions *GetAllowlistOptions) (result *Allowlist, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) GetAllowlistWithContext(ctx context.Context, getAllowlistOptions *GetAllowlistOptions) (result *Allowlist, response *core.DetailedResponse, err error)
getAllowlist(params)
get_allowlist(self,
id: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the GetAllowlistOptions
struct and set the fields to provide parameter values for the GetAllowlist
method.
Path Parameters
Deployment ID
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetAllowlist options.
Deployment ID.
parameters
Deployment ID.
parameters
Deployment ID.
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/allowlists/ip_addresses -H 'Authorization: Bearer <>' \
getAllowlistOptions := cloudDatabasesService.NewGetAllowlistOptions( deploymentID, ) allowlist, response, err := cloudDatabasesService.GetAllowlist(getAllowlistOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(allowlist, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, }; cloudDatabasesService.getAllowlist(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
allowlist = cloud_databases_service.get_allowlist( id=deployment_id, ).get_result() print(json.dumps(allowlist, indent=2))
Response
- ip_addresses
An IPv4 address or a CIDR range (netmasked IPv4 address)
A human readable description of the address or range for identification purposes.
{
"ip_addresses": [
{
"address": "195.212.0.0/16",
"description": "Dev IP space 1"
},
{
"address": "195.0.0.0/8",
"description": "BB Lab"
},
{
"address": "46.5.0.0/16",
"description": "Dev IP space 2"
},
{
"address": "10.187.176.142/32",
"description": "Demo SL VSI"
}
]
}
An array of allowlist entries.
- IPAddresses
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
{
"ip_addresses": [
{
"address": "195.212.0.0/16",
"description": "Dev IP space 1"
},
{
"address": "195.0.0.0/8",
"description": "BB Lab"
},
{
"address": "46.5.0.0/16",
"description": "Dev IP space 2"
},
{
"address": "10.187.176.142/32",
"description": "Demo SL VSI"
}
]
}
An array of allowlist entries.
- ip_addresses
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
{
"ip_addresses": [
{
"address": "195.212.0.0/16",
"description": "Dev IP space 1"
},
{
"address": "195.0.0.0/8",
"description": "BB Lab"
},
{
"address": "46.5.0.0/16",
"description": "Dev IP space 2"
},
{
"address": "10.187.176.142/32",
"description": "Demo SL VSI"
}
]
}
An array of allowlist entries.
- ip_addresses
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
Status Code
An allowlist
Invalid token
An error message response
{ "ip_addresses": [ { "address": "195.212.0.0/16", "description": "Dev IP space 1" }, { "address": "195.0.0.0/8", "description": "BB Lab" }, { "address": "46.5.0.0/16", "description": "Dev IP space 2" }, { "address": "10.187.176.142/32", "description": "Demo SL VSI" } ] }
{ "ip_addresses": [ { "address": "195.212.0.0/16", "description": "Dev IP space 1" }, { "address": "195.0.0.0/8", "description": "BB Lab" }, { "address": "46.5.0.0/16", "description": "Dev IP space 2" }, { "address": "10.187.176.142/32", "description": "Demo SL VSI" } ] }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Set the allowlist for a deployment.
Set the allowlist for a deployment. This action overwrites all existing entries, so when you modify the allowlist via a GET/update/PUT, provide the GET response's ETag header value in this endpoint's If-Match header to ensure that changes that are made by other clients are not accidentally overwritten.
Set the allowlist for a deployment. This action overwrites all existing entries, so when you modify the allowlist via a GET/update/PUT, provide the GET response's ETag header value in this endpoint's If-Match header to ensure that changes that are made by other clients are not accidentally overwritten.
Set the allowlist for a deployment. This action overwrites all existing entries, so when you modify the allowlist via a GET/update/PUT, provide the GET response's ETag header value in this endpoint's If-Match header to ensure that changes that are made by other clients are not accidentally overwritten.
Set the allowlist for a deployment. This action overwrites all existing entries, so when you modify the allowlist via a GET/update/PUT, provide the GET response's ETag header value in this endpoint's If-Match header to ensure that changes that are made by other clients are not accidentally overwritten.
PUT /deployments/{id}/allowlists/ip_addresses
(cloudDatabases *CloudDatabasesV5) SetAllowlist(setAllowlistOptions *SetAllowlistOptions) (result *SetAllowlistResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) SetAllowlistWithContext(ctx context.Context, setAllowlistOptions *SetAllowlistOptions) (result *SetAllowlistResponse, response *core.DetailedResponse, err error)
setAllowlist(params)
set_allowlist(self,
id: str,
*,
ip_addresses: List['AllowlistEntry'] = None,
if_match: str = None,
**kwargs
) -> DetailedResponse
Request
Instantiate the SetAllowlistOptions
struct and set the fields to provide parameter values for the SetAllowlist
method.
Custom Headers
Verify that the current allowlist matches a provided ETag value. Use in conjunction with the GET operation's ETag header to ensure synchronicity between clients.
Path Parameters
Deployment ID
New allowlist
{
"ip_addresses": [
{
"address": "195.212.0.0/16",
"description": "Dev IP space 1"
},
{
"address": "195.0.0.0/8",
"description": "BB Lab"
},
{
"address": "46.5.0.0/16",
"description": "Dev IP space 2"
},
{
"address": "10.187.176.142/32",
"description": "Demo SL VSI"
}
]
}
- ip_addresses
An IPv4 address or a CIDR range (netmasked IPv4 address)
A human readable description of the address or range for identification purposes.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The SetAllowlist options.
Deployment ID.
An array of allowlist entries.
Examples:[ { "address": "195.212.0.0/16", "description": "Dev IP space 1" }, { "address": "195.0.0.0/8", "description": "BB Lab" }, { "address": "46.5.0.0/16", "description": "Dev IP space 2" }, { "address": "10.187.176.142/32", "description": "Demo SL VSI" } ]
- IPAddresses
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
Verify that the current allowlist matches a provided ETag value. Use in conjunction with the GET operation's ETag header to ensure synchronicity between clients.
parameters
Deployment ID.
An array of allowlist entries.
Examples:- ipAddresses
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
Verify that the current allowlist matches a provided ETag value. Use in conjunction with the GET operation's ETag header to ensure synchronicity between clients.
parameters
Deployment ID.
An array of allowlist entries.
Examples:- ip_addresses
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
Verify that the current allowlist matches a provided ETag value. Use in conjunction with the GET operation's ETag header to ensure synchronicity between clients.
curl -X PUT https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/allowlists/ip_addresses -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"ip_addresses": [{"address": "195.212.0.0/16", "description": "Dev IP space 1"},{"address": "195.0.0.0/8", "description": "BB Lab"}, {"address": "46.5.0.0/16","description": "Dev IP space 2"}, {"address": "10.187.176.142/32", "description": "Demo SL VSI"}]}' \
allowlistEntryModel := &clouddatabasesv5.AllowlistEntry{ Address: &IPAddress1, Description: core.StringPtr("Dev IP space 1"), } setAllowlistOptions := cloudDatabasesService.NewSetAllowlistOptions( deploymentID, ) setAllowlistOptions.SetIPAddresses([]clouddatabasesv5.AllowlistEntry{*allowlistEntryModel}) setAllowlistOptions.SetIfMatch("exampleETag") setAllowlistResponse, response, err := cloudDatabasesService.SetAllowlist(setAllowlistOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(setAllowlistResponse, "", " ") fmt.Println(string(b))
const allowlistEntryModel = { address: ipAddress1, description: 'Dev IP space 1' }; const params = { id: deploymentId, ipAddresses: [allowlistEntryModel], ifMatch: 'exampleETag', }; cloudDatabasesService.setAllowlist(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
allowlist_entry_model = AllowlistEntry( address=ip_address_1, description='Dev IP space 1', ) set_allowlist_response = cloud_databases_service.set_allowlist( id=deployment_id, ip_addresses=[allowlist_entry_model], if_match='exampleETag', ).get_result() print(json.dumps(set_allowlist_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544573b",
"description": "Updating allowlist for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:21:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544573b",
"description": "Updating allowlist for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:21:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544573b",
"description": "Updating allowlist for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:21:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to add the allowlist entry
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544573b", "description": "Updating allowlist for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 10, "created_at": "2018-03-28T10:21:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-b5c96544573b", "description": "Updating allowlist for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 10, "created_at": "2018-03-28T10:21:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Add an address or range to the allowlist for a deployment.
Add an address or range to the allowlist for a deployment.
Add an address or range to the allowlist for a deployment.
Add an address or range to the allowlist for a deployment.
Add an address or range to the allowlist for a deployment.
POST /deployments/{id}/allowlists/ip_addresses
(cloudDatabases *CloudDatabasesV5) AddAllowlistEntry(addAllowlistEntryOptions *AddAllowlistEntryOptions) (result *AddAllowlistEntryResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) AddAllowlistEntryWithContext(ctx context.Context, addAllowlistEntryOptions *AddAllowlistEntryOptions) (result *AddAllowlistEntryResponse, response *core.DetailedResponse, err error)
addAllowlistEntry(params)
add_allowlist_entry(self,
id: str,
*,
ip_address: 'AllowlistEntry' = None,
**kwargs
) -> DetailedResponse
Request
Instantiate the AddAllowlistEntryOptions
struct and set the fields to provide parameter values for the AddAllowlistEntry
method.
Path Parameters
Deployment ID
New allowlist Entry
{
"ip_address": {
"address": "172.16.0.0/16",
"description": "Dev IP space 3"
}
}
- Examples:
{ "address": "195.212.0.0/16", "description": "Dev IP space 1" }
- ip_address
An IPv4 address or a CIDR range (netmasked IPv4 address)
A human readable description of the address or range for identification purposes.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The AddAllowlistEntry options.
Deployment ID.
- Examples:
{ "address": "172.16.0.0/16", "description": "Dev IP space 3" }
- IPAddress
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
parameters
Deployment ID.
- ipAddress
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
parameters
Deployment ID.
- ip_address
An IPv4 address or a CIDR range (netmasked IPv4 address).
A human readable description of the address or range for identification purposes.
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/allowlists/ip_addresses -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{"ip_address": {"address": "http://172.16.254.1/16", "description": "Dev IP space 3"}}' \
allowlistEntryModel := &clouddatabasesv5.AllowlistEntry{ Address: &IPAddress3, Description: core.StringPtr("Dev IP space 3"), } addAllowlistEntryOptions := cloudDatabasesService.NewAddAllowlistEntryOptions( deploymentID, ) addAllowlistEntryOptions.SetIPAddress(allowlistEntryModel) addAllowlistEntryResponse, response, err := cloudDatabasesService.AddAllowlistEntry(addAllowlistEntryOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(addAllowlistEntryResponse, "", " ") fmt.Println(string(b))
const allowlistEntryModel = { address: ipAddress3, description: 'Dev IP space 3', }; const params = { id: deploymentId, ipAddress: allowlistEntryModel, }; cloudDatabasesService.addAllowlistEntry(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
allowlist_entry_model = AllowlistEntry( address=ip_address_3, description='Dev IP space 3', ) add_allowlist_entry_response = cloud_databases_service.add_allowlist_entry( id=deployment_id, ip_address=allowlist_entry_model, ).get_result() print(json.dumps(add_allowlist_entry_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-d9c96544393b",
"description": "Adding allowlist entry for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:21:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-d9c96544393b",
"description": "Adding allowlist entry for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:21:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-d9c96544393b",
"description": "Adding allowlist entry for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 10,
"created_at": "2018-03-28T10:21:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to add the allowlist entry
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-d9c96544393b", "description": "Adding allowlist entry for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 10, "created_at": "2018-03-28T10:21:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f3-d9c96544393b", "description": "Adding allowlist entry for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 10, "created_at": "2018-03-28T10:21:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Delete an address or range from the allowlist of a deployment.
Delete an address or range from the allowlist of a deployment.
Delete an address or range from the allowlist of a deployment.
Delete an address or range from the allowlist of a deployment.
Delete an address or range from the allowlist of a deployment.
DELETE /deployments/{id}/allowlists/ip_addresses/{ipaddress}
(cloudDatabases *CloudDatabasesV5) DeleteAllowlistEntry(deleteAllowlistEntryOptions *DeleteAllowlistEntryOptions) (result *DeleteAllowlistEntryResponse, response *core.DetailedResponse, err error)
(cloudDatabases *CloudDatabasesV5) DeleteAllowlistEntryWithContext(ctx context.Context, deleteAllowlistEntryOptions *DeleteAllowlistEntryOptions) (result *DeleteAllowlistEntryResponse, response *core.DetailedResponse, err error)
deleteAllowlistEntry(params)
delete_allowlist_entry(self,
id: str,
ipaddress: str,
**kwargs
) -> DetailedResponse
Request
Instantiate the DeleteAllowlistEntryOptions
struct and set the fields to provide parameter values for the DeleteAllowlistEntry
method.
Path Parameters
Deployment ID
An IPv4 address or a CIDR range (netmasked IPv4 address)
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The DeleteAllowlistEntry options.
Deployment ID.
An IPv4 address or a CIDR range (netmasked IPv4 address).
parameters
Deployment ID.
An IPv4 address or a CIDR range (netmasked IPv4 address).
parameters
Deployment ID.
An IPv4 address or a CIDR range (netmasked IPv4 address).
curl -X DELETE https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/{id}/allowlists/ip_addresses/{ipaddress} -H 'Authorization: Bearer <>' \
deleteAllowlistEntryOptions := cloudDatabasesService.NewDeleteAllowlistEntryOptions( deploymentID, IPAddress3, ) deleteAllowlistEntryResponse, response, err := cloudDatabasesService.DeleteAllowlistEntry(deleteAllowlistEntryOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(deleteAllowlistEntryResponse, "", " ") fmt.Println(string(b))
const params = { id: deploymentId, ipaddress: ipAddress3, }; cloudDatabasesService.deleteAllowlistEntry(params) .then(res => { console.log(JSON.stringify(res.result, null, 2)); }) .catch(err => { console.warn(err) });
delete_allowlist_entry_response = cloud_databases_service.delete_allowlist_entry( id=deployment_id, ipaddress=ip_address_3, ).get_result() print(json.dumps(delete_allowlist_entry_response, indent=2))
Response
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b",
"description": "Deleting allowlist entry for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 15,
"created_at": "2018-03-28T10:25:30Z"
}
}
- Task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b",
"description": "Deleting allowlist entry for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 15,
"created_at": "2018-03-28T10:25:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
{
"task": {
"id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b",
"description": "Deleting allowlist entry for database",
"status": "running",
"deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::",
"progress_percent": 15,
"created_at": "2018-03-28T10:25:30Z"
}
}
- task
ID of the task.
Human-readable description of the task.
The status of the task.
Possible values: [
running
,completed
,failed
]ID of the deployment the task is being performed on.
Indicator as percentage of progress of the task.
Date and time when the task was created.
Status Code
A task which is being run to delete the allowlist entry
Invalid token
An error message response
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b", "description": "Deleting allowlist entry for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 15, "created_at": "2018-03-28T10:25:30Z" } }
{ "task": { "id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4d36-92f3-b5c96544393b", "description": "Deleting allowlist entry for database", "status": "running", "deployment_id": "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd::", "progress_percent": 15, "created_at": "2018-03-28T10:25:30Z" } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
{ "errors": { "error.source": [ "readable error message", "more error messages" ], "other.source": [ "other errors" ] } }
Discover capability information.
Returns capability information based on the parameters provided. Also returns request parameters or defaults if request parameters are blank.
POST /capability/{capability_id}
Request
Path Parameters
Capability ID
Allowable values: [
autoscaling
,encryption
,endpoints
,groups
,flavors
,locations
,point_in_time_recovery
,remotes
,restores
,versions
]
Parameters for discovering capability.
{
"deployment": {
"type": "postgresql",
"version": "10",
"platform": "classic",
"location": "us-south"
}
}
Either
deployment
orbackup
, not both. Thedeployment
object can only be used with its supportedcapability_id
.- deployment
Type of database
Example:
PostgreSQL
database version
Example:
10
classic or satellite
Example:
satellite
where the database is located
Example:
us-south
database plan
Example:
standard
Either
deployment
orbackup
, not both. Thebackup
object can only be used with its supportedcapability_id
.- backup
Type of database
Example:
PostgreSQL
database version
Example:
10
classic or satellite
Example:
satellite
where the database is located
Example:
us-south
- options
classic or satellite
Example:
classic
Target location
Example:
us-east
which host_flavor groups to return
Example:
multitenant
curl -X POST https://api.{region}.databases.cloud.ibm.com/v5/ibm/capability/point_in_time_recovery -H 'Authorization: Bearer <>' -H 'Content-Type: application/json' -d '{ "deployment": { "type": "postgresql", "version": "14", "platform": "classic", "location": "us-south" }, "options": { "target_platform": "classic", "target_location": "jp-tok" } }'
Response
- capability
- autoscaling
Autoscaling capability.
Example:
true
Status Code
capability information
Invalid token
Unprocessable Entity
{ "deployment": { "type": "postgresql", "version": "14", "platform": "classic", "location": "us-south" }, "options": { "target_platform": "classic", "target_location": "jp-tok" }, "capability": { "point_in_time_recovery": { "point_in_time_recovery_supported": true } } }
{ "deployment": { "type": "postgresql", "version": "14", "platform": "satelite", "location": "satloc_wdc_abc123def456" }, "capability": { "autoscaling": { "autoscaling_supported": false } } }
{ "deployment": { "platform": "classic", "location": "us-south" }, "capability": { "locations": [ "au-syd", "br-sao", "ca-tor", "che01", "eu-gb", "jp-osa", "jp-tok", "seo01", "us-east", "us-south" ] } }
{ "errors": "bad_request" }
{ "errors": { "deployment.type": [ "can't be blank" ], "options.target_platform": [ "can't be blank" ], "options.target_location": [ "can't be blank" ] } }
Discover capability information from a deployment.
Returns capability information based on the deployment provided. Also returns url parameters or defaults if request parameters are blank.
GET /deployments/{id}/capability/{capability_id}
Request
Path Parameters
Deployment ID
Capability ID
Allowable values: [
autoscaling
,encryption
,endpoints
,groups
,locations
,point_in_time_recovery
,remotes
,versions
]
Query Parameters
Target platform. Required for Point In Time Recovery.
Example:
target_platform=classic
Target location. Required for Point In Time Recovery.
Example:
target_location=us-east
When a host_flavor of 'multitenant' is included with the request, IBM Cloud Database's new shared compute groups will be returned
Example:
host_flavor=multitenant
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/deployments/crn:v1:bluemix:public:databases-for-postgresql:us-south:a%2F40ddc34a953a8c02f10987b59085b60e:f5cdcba4-b5d4-4d7e-a654-9140fa0deb27::/capability/point_in_time_recovery?target_platform=classic&target_location=jp-tok -H 'Authorization: Bearer <>' \
Response
- capability
- autoscaling
Autoscaling capability.
Example:
true
Status Code
capability information
Invalid token
Unprocessable Entity
{ "deployment": { "type": "postgresql", "version": "14", "platform": "classic", "location": "us-south" }, "options": { "target_platform": "classic", "target_location": "jp-tok" }, "capability": { "point_in_time_recovery": { "point_in_time_recovery_supported": true } } }
{ "deployment": { "type": "postgresql", "version": "14", "platform": "satelite", "location": "satloc_wdc_abc123def456" }, "capability": { "autoscaling": { "autoscaling_supported": false } } }
{ "errors": "bad_request" }
{ "errors": { "deployment.type": [ "can't be blank" ], "options.target_platform": [ "can't be blank" ], "options.target_location": [ "can't be blank" ] } }
Discover capability information from a backup.
Returns capability information based on the backup provided. Also returns url parameters or defaults if request parameters are blank.
GET /backups/{backup_id}/capability/{capability_id}
Request
Path Parameters
Backup ID
Capability ID
Allowable values: [
restores
]
Query Parameters
Target platform.
Example:
target_platform=classic
Target location.
Example:
target_location=us-easst
When a host_flavor of 'multitenant' is included with the request, IBM Cloud Database's new shared compute groups will be returned
Example:
host_flavor=multitenant
curl -X GET https://api.{region}.databases.cloud.ibm.com/v5/ibm/backups/crn:v1:bluemix:public:databases-for-postgresql:us-south:a%2F40ddc34a953a8c02f10987b59085b60e:f5cdcba4-b5d4-4d7e-a654-9140fa0deb27:backup:d466d37b-88c0-4de1-bd69-1f62a5a37e12/capability/restores?target_platform=classic&target_location=jp-tok -H 'Authorization: Bearer <>' \
Response
- capability
- autoscaling
Autoscaling capability.
Example:
true
Status Code
capability information
Invalid token
Unprocessable Entity
{ "backup": { "type": "postgresql", "version": "14", "platform": "classic", "location": "us-south" }, "options": { "target_platform": "classic", "target_location": "jp-tok" }, "capability": { "restores": { "backup_restore_supported": true } } }
{ "errors": "bad_request" }
{ "errors": { "options.target_platform": [ "can't be blank" ], "options.target_location": [ "can't be blank" ] } }