RDS

The SDK interfaces based on the RDS v3 Go SDK are as follows. For details about the invoking methods, see the sample codes.

Interface

Method

API

Datastores

func listURL(sc *gophercloud.ServiceClient, databasename string)

GET /v3/{project_id}/datastores/{database_name}

Link

Instances

func createURL(sc *gophercloud.ServiceClient)

POST /v3/{project_id}/instances

Link

func resizeURL(sc *gophercloud.ServiceClient, instancesId string)

POST /v3/{project_id}/instances/{instance_id}/action

Link

func enlargeURL(sc *gophercloud.ServiceClient, instancesId string)

POST /v3/{project_id}/instances/{instance_id}/action

Link

func singletohaURL(sc *gophercloud.ServiceClient, instancesId string)

POST /v3/{project_id}/instances/{instance_id}/action

Link

func restartURL(sc *gophercloud.ServiceClient, instancesId string)

POST /v3/{project_id}/instances/{instance_id}/action

Link

func deleteURL(sc *gophercloud.ServiceClient, serverID string)

DELETE /v3/{project_id}/instances/{instance_id}

Link

func listURL(sc *gophercloud.ServiceClient)

GET /v3/{project_id}/instances

Link

func listerrorlogURL(sc *gophercloud.ServiceClient, instanceID string)

GET /v3/{project_id}/instances/{instance_id}/errorlog

Link

func listslowlogURL(sc *gophercloud.ServiceClient, instanceID string)

GET /v3/{project_id}/instances/{instance_id}/slowlog

Link

Configurations

func listURL(sc *gophercloud.ServiceClient)

GET /v3/{project_id}/configurations

Link

func createURL(sc *gophercloud.ServiceClient)

POST /v3/{project_id}/configurations

Link

Backups

func updatepolicyURL(sc *gophercloud.ServiceClient, instanceId string)

PUT /v3/{project_id}/instances/{instance_id}/backups/policy

Link

func getpolicyURL(sc *gophercloud.ServiceClient, instanceID string)

GET /v3/{project_id}/instances/{instance_id}/backups/policy

Link

func createURL(sc *gophercloud.ServiceClient)

POST /v3/{project_id}/backups

Link

func listURL(sc *gophercloud.ServiceClient)

GET /v3/{project_id}/backups

Link

func listfilesURL(sc *gophercloud.ServiceClient)

GET /v3/{project_id}/backup-files

Link

func deleteURL(sc *gophercloud.ServiceClient, backupId string)

DELETE /v3/{project_id}/backups/{backup_id}

Link

func getrestoretimeURL(sc *gophercloud.ServiceClient, instanceId string)

GET /v3/{project_id}/instances/{instance_id}/restore-time

Link

func restoreURL(sc *gophercloud.ServiceClient)

POST /v3/{project_id}/instances

Link

func recoveryURL(sc *gophercloud.ServiceClient)

GET /v3/{project_id}/instances/recovery

Link

Database

func createURL(sc *gophercloud.ServiceClient, instanceID string)

POST /v3/{project_id}/instances/{instance_id}/database

Link

func listURL(sc *gophercloud.ServiceClient, instanceID string)

GET /v3/{project_id}/instances/{instance_id}/database/detail

Link

func deleteURL(sc *gophercloud.ServiceClient, instanceID string,dbName string)

DELETE

/v3/{project_id}/instances/{instance_id}/database/{db_name}

Link

func createURL(sc *gophercloud.ServiceClient, instanceID string)

POST /v3/{project_id}/instances/{instance_id}/db_privilege

Link

func deleteURL(sc *gophercloud.ServiceClient, instanceID string)

DELETE /v3/{project_id}/instances/{instance_id}/db_privilege

Link

DbUser

func createURL(sc *gophercloud.ServiceClient, instanceID string)

POST /v3/{project_id}/instances/{instance_id}/db_user

Link

func listURL(sc *gophercloud.ServiceClient, instanceID string)

GET /v3/{project_id}/instances/{instance_id}/db_user/detail

Link

func deleteURL(sc *gophercloud.ServiceClient, instanceID string, dbuser string)

DELETE v3/{project_id}/instances/{instance_id}/db_user/{user_name}

Link

Flavors

func listURL(sc *gophercloud.ServiceClient, databasename string)

GET /v3/{project_id}/flavors/{database_name}

Link

StorageType

func listURL(sc *gophercloud.ServiceClient, databasename string)

GET/v3/{project_id}/storage-type/{database_name}

Link