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

RDS

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

基于RDS v3 API的SDK接口如下,调用方式举例:conn.rds_v3.create_instance()

Interface

Method

API

Instance Operations

create_instance(self, **kwargs)

POST /v3/{project_id}/instances

链接

instances(self)

GET /v3/{project_id}/instances?id={id}&name={name}&type={type}&datastore_type={datastore_type}&vpc_id={vpc_id}&subnet_id={subnet_id}&offset={offset}&limit={limit}

链接

delete_instance(self, **kwargs)

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

链接

resize_instance(self, instance, flavorRef)

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

链接

resize_instance_volume(instance, size)

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

链接

restart_instance(instance)

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

链接

single_to_ha(instance,**single_to_ha_param)

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

链接

Backup Operations

create_backup(self, **kwarg)

POST /v3/{project_id}/backups

链接

backups(self, **kwarg)

GET /v3/{project_id}/backups?instance_id={instance_id}&backup_id={backup_id}&backup_type={backup_type}&offset={offset}&limit={limit}&begin_time={begin _time}&end_time={end_time}

链接

restore_time(self, **kwarg)

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

链接

delete_backup(self, id)

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

链接

backup_files(**query)

GET /v3/{project_id}/backup-files?backup_id={backup_id}

链接

recovery_instance(**recovery_point)

POST /v3/{project_id}/instances

链接

Backup Policy Operations

create_backup_policy(self, **kwargs)

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

链接

get_backup_policy(self, **kwargs)

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

链接

Flavor Operations

flavors(self, **kwargs)

GET /v3/{project_id}/flavors/{database_name}?version_name={version_name}

链接

Datastore Operations

datastore_versions(self, dbname)

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

链接

Configuration Operations

configurations(self, **kwargs)

GET /v3/{project_id}/configurations

链接

Log Operations

list_instance_errorlog(**query)

GET instances/{instance_id}/errorlog?start_date={start_date}&end_date={end_date}

链接

list_instance_slowlog(**query)

GET /v3/{project_id}/instances/{instance_id}/slowlog?start_date={start_date}&end_date={end_date}

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区