GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - magicLaLa/Vultr-Info: 使用 小程序·云开发 的 Vultr 服务器账户查询小工具

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
cloudfunctions/getVultrInfo
cloudfunctions/getVultrInfo
 
 
images
images
 
 
miniprogram
miniprogram
 
 
README.md
README.md
 
 
project.config.json
project.config.json
 
 

Repository files navigation

☁️ Vultr Info

使用 小程序·云开发 的 Vultr 服务器账户查询小工具。

Vultr Info 利用 Vultr 提供的 API 查询您的账户余额、账户信息以及本月花销。

img

1. 申请自己的 API Key

访问链接 🔗 Vultr API Key 来生成您自己的 API Key,此脚本依赖于 API Key 与 Vultr 账户进行沟通。

img

2. 更改 API 的 IP 使用权限

Vultr 的 API 权限管理很合理。 请在刚刚 API Key 申请页面下面的 Access Control 部分将您自己的 IP 地址添加至白名单(或者允许全部 IPv4 地址访问)。

3. 替换 API Key 和 Server SubId

将 cloudfunctions -> getVultrInfo -> config.js 替换成自己的 API Key 和 Server SubId。

这样运行,就可以显示您 Vultr 云账户中包括账户邮箱、账户姓名、余额、本月使用金额、服务器信息等信息。

注:可以在 vscode 中 安装 REST Client 插件,然后新建一个以.http 的文件,然后把 curl -H 'API-Key: YOUR_OWN_API_KEY' "https://api.vultr.com/v1/server/list"粘贴到文件里,然后点击 Send Request,可以获取到 Server SubId。

参考spencerwooo/jsbox-vultr-helper

About

使用 小程序·云开发 的 Vultr 服务器账户查询小工具

Topics

javascriptminiprogramvultrvultr-apivultr-vpswx

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.