Last update at :2024-03-19,Edit by888u
The Bricklayer API function allows users to automatically manage the Bricklayer VPS through code, including querying the VPS status, creating a Bricklayer snapshot, restarting/shutdown the Bricklayer VPS, etc. You can even customize one by using the Bricklayer API Key and the Bricklayer VEID. KiwiVM control panel. Below, this site will introduce the API tutorial of Shimobrickwork, as well as the API usage of common functions.
1. Query the Bricklayer API Key and VEID
Each Bricklayer VPS has a corresponding API Key and VEID. Open the official website of Bricklayer (click to go directly to the official website of Bricklayer), click "My Services" in "Services", for example, I need to check the first VPS For API information, just click the "KiwiVM Control Panel" button at the back:
Click "API" on the left, the VEID of this VPS will be directly displayed here. Click "Show API Key" to view the API Key:
As shown in the picture below, it is the Bricklayer API Key:
2. Usage of Bricklayer API
After you have the API Key and VEID, you can directly manage the VPS. All API interfaces are displayed in the KiwiVM control panel, as shown in the figure below:
For example, if we need to check the information of Bricklayer VPS, we can use this API interface:
$request = "https://api.64clouds.com/v1/getServiceInfo?veid=YOUR_VEID&api_key=YOUR_API_KEY_HERE"; $serviceInfo = json_decode (file_get_contents ($request)); print_r ($serviceInfo);Return as follows, all basic host information will be returned in json format, including memory, hard disk size, etc.:
The above is the basic Bricklayer API tutorial, including API Key and VEID query, as well as API interface. For more Brickworker VPS tutorials, please refer to "Brickworker Mover VPS Special Topic: Brickworker Mover Discount Codes and Bricklayer Mover Novice Tutorials", you can also join the Bricklayer Mover replenishment notification group to follow the Bricklayer Mover discount information: 659236660, and the Bricklayer Mover exchange group: 171060270 .
Recommended site searches: domain name registration official website, Korean high-defense server, Hong Kong server rental, Taiwan host, free ftp space, Wanwang domain name space, virtual host rental, US vps host, China domain name trading center, domain name resolution query, < /p>
发表评论