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} |
| Instances | func createURL(sc *gophercloud.ServiceClient) | POST /v3/{project_id}/instances |
| func resizeURL(sc *gophercloud.ServiceClient, instancesId string) | POST /v3/{project_id}/instances/{instance_id}/action | |
| func enlargeURL(sc *gophercloud.ServiceClient, instancesId string) | POST /v3/{project_id}/instances/{instance_id}/action | |
| func singletohaURL(sc *gophercloud.ServiceClient, instancesId string) | POST /v3/{project_id}/instances/{instance_id}/action | |
| func restartURL(sc *gophercloud.ServiceClient, instancesId string) | POST /v3/{project_id}/instances/{instance_id}/action | |
| func deleteURL(sc *gophercloud.ServiceClient, serverID string) | DELETE /v3/{project_id}/instances/{instance_id} | |
| func listURL(sc *gophercloud.ServiceClient) | GET /v3/{project_id}/instances | |
| func listerrorlogURL(sc *gophercloud.ServiceClient, instanceID string) | GET /v3/{project_id}/instances/{instance_id}/errorlog | |
| func listslowlogURL(sc *gophercloud.ServiceClient, instanceID string) | GET /v3/{project_id}/instances/{instance_id}/slowlog | |
| Configurations | func listURL(sc *gophercloud.ServiceClient) | GET /v3/{project_id}/configurations |
| func createURL(sc *gophercloud.ServiceClient) | POST /v3/{project_id}/configurations | |
| Backups | func updatepolicyURL(sc *gophercloud.ServiceClient, instanceId string) | PUT /v3/{project_id}/instances/{instance_id}/backups/policy |
| func getpolicyURL(sc *gophercloud.ServiceClient, instanceID string) | GET /v3/{project_id}/instances/{instance_id}/backups/policy | |
| func createURL(sc *gophercloud.ServiceClient) | POST /v3/{project_id}/backups | |
| func listURL(sc *gophercloud.ServiceClient) | GET /v3/{project_id}/backups | |
| func listfilesURL(sc *gophercloud.ServiceClient) | GET /v3/{project_id}/backup-files | |
| func deleteURL(sc *gophercloud.ServiceClient, backupId string) | DELETE /v3/{project_id}/backups/{backup_id} | |
| func getrestoretimeURL(sc *gophercloud.ServiceClient, instanceId string) | GET /v3/{project_id}/instances/{instance_id}/restore-time | |
| func restoreURL(sc *gophercloud.ServiceClient) | POST /v3/{project_id}/instances | |
| func recoveryURL(sc *gophercloud.ServiceClient) | GET /v3/{project_id}/instances/recovery | |
| Database | func createURL(sc *gophercloud.ServiceClient, instanceID string) | POST /v3/{project_id}/instances/{instance_id}/database |
| func listURL(sc *gophercloud.ServiceClient, instanceID string) | GET /v3/{project_id}/instances/{instance_id}/database/detail | |
| func deleteURL(sc *gophercloud.ServiceClient, instanceID string,dbName string) | DELETE /v3/{project_id}/instances/{instance_id}/database/{db_name} | |
| func createURL(sc *gophercloud.ServiceClient, instanceID string) | POST /v3/{project_id}/instances/{instance_id}/db_privilege | |
| func deleteURL(sc *gophercloud.ServiceClient, instanceID string) | DELETE /v3/{project_id}/instances/{instance_id}/db_privilege | |
| DbUser | func createURL(sc *gophercloud.ServiceClient, instanceID string) | POST /v3/{project_id}/instances/{instance_id}/db_user |
| func listURL(sc *gophercloud.ServiceClient, instanceID string) | GET /v3/{project_id}/instances/{instance_id}/db_user/detail | |
| func deleteURL(sc *gophercloud.ServiceClient, instanceID string, dbuser string) | DELETE v3/{project_id}/instances/{instance_id}/db_user/{user_name} | |
| Flavors | func listURL(sc *gophercloud.ServiceClient, databasename string) | GET /v3/{project_id}/flavors/{database_name} |
| StorageType | func listURL(sc *gophercloud.ServiceClient, databasename string) | GET/v3/{project_id}/storage-type/{database_name} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.