Last updated: 2018-09-10 21:18:12
Welcome to the Cloud Virtual Machine.
The Cloud Virtual Machine (CVM), which runs at the Tencent Data Center, provides auto scaling computing services and can be used to build and host software systems based on your business needs.
The CVM solution delivers a flexible set of computing, storage and network resources. You can conduct operations like creating/terminating/restarting CVM and changing bandwidth configuration via APIs described in this document. For a complete list of APIs, please refer to API Overview.
It's recommended to read Introduction to CVM Products before using these APIs.
This document frequently mentions the following terms:
|Instance||Instance||Instance||Indicates a cloud virtual machine.|
|Image||Image||Image||A copy of the software environment on a CVM instance, which generally includes operation system and installed software, and is used to create an instance.|
|SecurityGroup||Security Group||Security Group||A type of virtual firewall with a state-based packet filtering feature. It's an important network security isolation method used to control the network access of CVMs.|
|EIP||Elastic IP||Elastic IP||A type of public IP. Unlike an ordinary public IP, an elastic IP belongs to a user account rather than an instance. The mapping relationship between an instance and a public IP address can be changed at any time.|
|Zone||Zone||Availability Zone||Tencent Cloud physical data centers in the same region with indepenent power and network resources. They are designed to ensure that the failures within an availability zone can be isolated without spreading to and affecting other zones, so as to ensure users' businesses stability.|
|Prepaid||Prepaid packages||Prepaid annual or monthly plan||A billing model, refer to Billing Model Instruction.|
|Postpaid||Postpaid||Postpaid||A billing model, refer to Billing Model Instruction.|
Definitions of input and return parameters
"limit" and "offset"
These two parameters are used to control number of entries in one page. When results in the list exceeds the "limit" value, only the "limit" defined number of values will be returned. You can use "limit" and "offset" to contorl entries per page. "limit" indicates the maximum number of items returned at a single time, and "offset" indicates the offset value.
For example, if you set "offset=0&limit=20", the 1st to 20th entries are returned; if you set "offset=40&limit=20", the 20th - 40th items are returned; the fortieth to the sixtieth items, and so on.
Formats for entering multiple parameters at the same time. When you encounter a format like this, you can enter multiple input parameters at the same time. For example:
And so on (starting from 0).
2. API Quick Start
Let's start from APIs for postpaid CVMs:
- Create Postpaid Instances API: Create postpaid instances with the specified information like Availability Zone ID, image ID, combination of CPU and memory and data disk size.
- Change Configurations of Postpaid Instances API: Upgrade configurations of postpaid instances.
- Stop Instances API: Stop running of unneccessary CVMs
- Return Postpaid Instances API: Return Terminate postpaid instances and stop
3. Usage Restriction
- CVM API calling limit:1,000 times per minute (100 times/min for a single API).
- CVMs created by API are subject to the number limit described in the Restrictions on CVM Instance Purchase, and share the quota with machines created on the Console.