This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1355|Reply: 0

Call the Alibaba Cloud OpenAPI API to get server usage

[Copy link]
Posted on 2024-12-23 09:44:41 | | | |
Requirements: I bought a lightweight cloud server, but it seems that it cannot be billed according to the fixed bandwidth, it is all about how much free traffic per month and what the peak bandwidth is. To prevent traffic usage and pay additional traffic fees, you need to call Alibaba Cloud's OpenAPI API to obtain server traffic usage.

Lightweight Application Server - OpenAPI Overview:The hyperlink login is visible.

No need to read the documentation, just use the OpenAPI Explorer function. OpenAPI Explorer is the integration center of Alibaba Cloud OpenAPI, which provides Alibaba Cloud users with API discovery and retrieval, API learning and debugging, API integration and other capabilities to help users better and faster integrate Alibaba Cloud OpenAPI.

Query the details of traffic packages for one or more instances:The hyperlink login is visible.

Lightweight application serversInstance ID format:["2ad1ae67295445f598017499dc******","2ad1ae67295445f598017499dc******"]

The call is as follows:



{
  "RequestId": "xxxx",
  "InstanceTrafficPackageUsages": [
    {
      "TrafficUsed": 34644158846,
      "InstanceId": "xxx",
      "TrafficPackageRemaining": 1064867468930,
      "TrafficPackageTotal": 1099511627776,
      "TrafficOverflow": 0
    }
  ]
}
(End)





Previous:Angular 18 Series (Twenty-Eight) InjectionToken Brief Introduction
Next:Angular code obfuscation encryption made easy
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com