Help Center > > Developer Guide> Mapping Between API and SDK> Python> RDS

RDS

Updated at: Dec 31, 2019 GMT+08:00

The SDK interfaces based on the RDS v3 API are as follows. Invocation example: conn.rds_v3.create_instance().

Interface

Method

API

Instance Operations

create_instance(self, **kwargs)

POST /v3/{project_id}/instances

Link

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}

Link

delete_instance(self, **kwargs)

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

Link

resize_instance(self, instance, flavorRef)

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

Link

resize_instance_volume(instance, size)

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

Link

restart_instance(instance)

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

Link

single_to_ha(instance,**single_to_ha_param)

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

Link

Backup Operations

create_backup(self, **kwarg)

POST /v3/{project_id}/backups

Link

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}

Link

restore_time(self, **kwarg)

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

Link

delete_backup(self, id)

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

Link

backup_files(**query)

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

Link

recovery_instance(**recovery_point)

POST /v3/{project_id}/instances

Link

Backup Policy Operations

create_backup_policy(self, **kwargs)

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

Link

get_backup_policy(self, **kwargs)

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

Link

Flavor Operations

flavors(self, **kwargs)

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

Link

Datastore Operations

datastore_versions(self, dbname)

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

Link

Configuration Operations

configurations(self, **kwargs)

GET /v3/{project_id}/configurations

Link

Log Operations

list_instance_errorlog(**query)

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

Link

list_instance_slowlog(**query)

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

Link

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel