This example shows how to use Alibaba Cloud python? The SDK calls the createdbinstance interface of the RDS to create an RDS instance.

ApsaraDB for RDS (Relational Database Service) is a stable and reliable online database service that supports the elastic scaling function. ApsaraDB for RDS is based on the Apsara distributed system and high-performance storage of ephemeral SSD and supports MySQL, SQL Server, and PostgreSQL engines. ApsaraDB for RDS offers a complete set of solutions for backup, recovery, monitoring, migration, disaster recovery, and troubleshooting database operation and maintenance.

Sample code

Notice Running the code in this example will create an ApsaraDB RDS instance and generate fees.
From Fig. Client import acsclient
From Fig. Request. v20140815 import maid
# Create acsclient instance
Client = acsclient (
"<Your-access-key-ID> ",
"<Your-access-key-secret> ",
Request = createdbinstancerequest. createdbinstancerequest ()
request.setDBInstanceClass("mysql.n1.micro. 1 ")
Request. Fig ("20 ")
Request. set_paytype ("postpaid ")
Request. set_clienttoken ("<UUID> ")
Response = client. Fig (request)
Print response