- Product Bulletin
- Service Overview
- Getting Started
-
User Guide
-
Working with FlexusRDS for MySQL
- Using IAM to Grant Access to FlexusRDS
- Buying a FlexusRDS for MySQL Instance
- Connecting to a FlexusRDS for MySQL Instance
- Suggestions on Using FlexusRDS for MySQL
- Data Migration
-
Instance Management
- Upgrading the Minor Version of a FlexusRDS for MySQL Instance
- Upgrading a FlexusRDS for MySQL Instance to an RDS DB Instance
- Changing the Name of a FlexusRDS for MySQL Instance
- Rebooting FlexusRDS for MySQL Instances
- Resetting the Administrator Password of a FlexusRDS for MySQL Instance
- Enabling Storage Autoscaling for a FlexusRDS for MySQL Instance
- Binding an EIP to a FlexusRDS for MySQL Instance or Unbinding an EIP from a FlexusRDS for MySQL Instance
- Changing the VPC and Subnet of a FlexusRDS for MySQL Instance
- Renewing FlexusRDS for MySQL Instances
- Unsubscribing from a FlexusRDS for MySQL Instance
- Backups and Restorations
- Parameters
- Monitoring
- Logs
- Interconnection with CTS
- FlexusRDS for MySQL Tags
- FlexusRDS for MySQL Quotas
-
Working with FlexusRDS for PostgreSQL
- Permissions Management
- Buying a FlexusRDS for PostgreSQL Instance
- Connecting to a FlexusRDS for PostgreSQL Instance
- Suggestions on Using FlexusRDS for PostgreSQL
- Data Migration
-
Instance Management
- Changing the Name of a FlexusRDS for PostgreSQL Instance
- Rebooting FlexusRDS for PostgreSQL Instances
- Resetting the Administrator Password of a FlexusRDS for PostgreSQL Instance
- Enabling Storage Autoscaling for a FlexusRDS for PostgreSQL Instance
- Binding an EIP to a FlexusRDS for PostgreSQL Instance or Unbinding an EIP from a FlexusRDS for PostgreSQL Instance
- Renewing FlexusRDS for PostgreSQL Instances
- Unsubscribing from a FlexusRDS for PostgreSQL Instance
-
Backups and Restorations
- Creating a Manual Backup for a FlexusRDS for PostgreSQL Instance
- Deleting a Manual Backup of a FlexusRDS for PostgreSQL Instance
- Downloading a Full Backup of a FlexusRDS for PostgreSQL Instance
- Checking and Exporting Backup Information of a FlexusRDS for PostgreSQL Instance
- Restoring a FlexusRDS for PostgreSQL Instance
- Parameters
- Monitoring Management
- Logs
- Interconnection with CTS
- FlexusRDS for PostgreSQL Tags
- FlexusRDS for PostgreSQL Quotas
-
Working with FlexusRDS for MySQL
- API Reference
-
FAQs
- What Is FlexusRDS?
- Can FlexusRDS for MySQL and RDS for MySQL Instances Access Each Other?
- Can I Change the Instance Class of My FlexusRDS Instance?
- Does FlexusRDS Support Cross-AZ HA?
- What Is the Backup Policy of FlexusRDS?
- How Are FlexusRDS Backups Billed?
- How Do I Download FlexusRDS Backups to Restore Data Locally?
- Why Does the Root User of My FlexusRDS for MySQL Instance Not Have Super Permissions?
- Which Storage Engine Does FlexusRDS for MySQL Provide?
- Why Does FlexusRDS for MySQL Not Support the MyISAM Storage Engine?
- Does FlexusRDS for MySQL Support Read Replicas?
- Why Can't I Ping the EIP After It Is Bound to My FlexusRDS for MySQL Instance?
- How Do I Create Accounts and Databases for My FlexusRDS Instance?
- What Major Versions and Minor Versions Does FlexusRDS for MySQL Support?
- Why Are Pay-per-Use Instances Not Provided by FlexusRDS?
- Can I Scale Up the Storage Space of My FlexusRDS for MySQL Instance?
- General Reference
Copied.
Querying Database Specifications
Function
This API is used to query the database specifications of a specified DB engine version.
URI
- URI format
GET /v3/{project_id}/flavors/{database_name}?version_name={version_name}&spec_code={spec_code}&is_flexus={is_flexus}
- Parameter description
Table 1 Parameters Parameter
Mandatory
Description
project_id
Yes
Explanation:
Project ID of a tenant in a region.
For details about how to obtain the project ID, see Obtaining a Project ID.
Constraints:
N/A
Value range:
N/A
Default value:
N/A
database_name
Yes
Explanation:
DB engine.
Constraints:
N/A
Value range:
MySQL (case-insensitive)
Default value:
N/A
version_name
No
Explanation:
DB engine version. You can enter a minor version number.
Constraints:
N/A
Value range:
N/A
Default value:
N/A
is_flexus
Yes
Explanation:
Whether to query FlexusRDS instance specifications.
Constraints:
N/A
Value range:
- true: Query FlexusRDS instance specifications.
- false (default value): Query instance specifications other than FlexusRDS.
Default value:
false
spec_code
No
Explanation:
Specification code.
Constraints:
N/A
Value range:
- Single-node instance:
rds.mysql.y1.large.2
rds.mysql.y1.large.4
rds.mysql.y1.xlarge.2
rds.mysql.y1.xlarge.4
- Primary/standby instance:
rds.mysql.y1.large.4.ha
rds.mysql.y1.xlarge.2.ha
rds.mysql.y1.xlarge.4.ha
Default value:
N/A
Request Parameters
None
Example Request
GET https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/flavors/mysql?version_name=5.7&spec_code=rds.mysql.y1.xlarge.2
Response
- Normal response
Table 2 Parameters Parameter
Type
Description
flavors
Array of objects
Explanation:
Instance specifications. For details, see Table 3.
Table 3 flavors field data structure description Parameter
Type
Description
vcpus
String
Explanation:
Number of vCPUs. For example, the value 1 indicates 1 vCPU.
Value range:
N/A
ram
Integer
Explanation:
Memory size in GB.
Value range:
N/A
id
String
Explanation:
Specification ID, which is unique.
Value range:
N/A
spec_code
String
Explanation:
Resource specification code, for example, rds.mysql.y1.xlarge.2.ha.
Value range:
- rds: indicates the RDS product.
- mysql: indicates the DB engine.
- y1.xlarge: indicates the performance specifications, which are lightweight specifications.
- ha: indicates primary/standby instances.
version_name
Array
Explanation:
DB engine version.
instance_mode
String
Explanation:
Instance type.
Value range:
- ha: indicates primary/standby instances.
- single: indicates single-node instances.
az_status
Map<String, String>
Explanation:
Specification status in an AZ.
Value range:
- normal: indicates that the specification is available in the AZ.
- unsupported: indicates that the specification is not supported by the AZ.
- sellout: indicates that the specification is sold out in the AZ.
az_desc
Map<String, String>
Explanation:
Description of the AZ to which the specification belongs.
Value range:
N/A
group_type
String
Explanation:
FlexusRDS performance specifications.
Value range:
yunyao: lightweight Flexus
- Example normal response
{ "flavors": [{ "vcpus": "1", "ram": 2, "id":"2988b9cc-2aac-3a94-898c-14666702f129", "spec_code": "rds.mysql.y1.xlarge.2.ha", "version_name": ["5.7","8.0"], "instance_mode": "ha", "az_status": { "az1": "normal", "az2": "normal" }, "az_desc": { "az1": "az1", "az2": "az2" }, "group_type": "yunyao" } ] }
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot