文档首页 > > 开发指南> API & SDK 对应关系> Go> RDS

RDS

分享
更新时间: 2019/11/15 GMT+08:00

基于RDS v3 Go SDK的SDK接口如下,调用方式参考示例代码。

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}

链接

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区