Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual machine ID #105

Open
taufiqshovon opened this issue Feb 12, 2021 · 4 comments
Open

Virtual machine ID #105

taufiqshovon opened this issue Feb 12, 2021 · 4 comments

Comments

@taufiqshovon
Copy link

Hello,
any one can help me to get Virtual machine ID how i can not get. previous from product url i take that and was put on whmcs admin panel product details. but now not getting that.. can anyone help me?

@chrisgtian
Copy link

Hello,

You can get the ID with the old API:

For a list with all of your servers:
apikey='YOURKEY'; curl -H "API-Key: ${apikey}" "https://api.vultr.com/v1/server/list"

For the ID of a Specific machine name:
apikey='YOURKEY'; curl -H "API-Key: ${apikey}" -G --data "label=server.domain.tld" "https://api.vultr.com/v1/server/list"

For the ID of a Specific iP address
apikey='YOURKEY'; curl -H "API-Key: ${apikey}" -G --data "main_ip=1.1.1.1" "https://api.vultr.com/v1/server/list"

@mrburgercheese
Copy link

i have same problem

@mrburgercheese
Copy link

curl -H "API-Key: ${apikey}" -G --data "label=server.domain.tld" "https://api.vultr.com/v1/server/list"

hello, im trying using this methode ther result like this
Method requires authentication, no API key present

@mrburgercheese
Copy link

curl -H "API-Key: ${apikey}" -G --data "label=server.domain.tld" "https://api.vultr.com/v1/server/list"

hello, im trying using this methode ther result like this
Method requires authentication, no API key present

i have done using curl -H "API-Key: ${apikey}" -G --data "main_ip=1.1.1.1" "https://api.vultr.com/v1/server/list"

https://i.imgur.com/0158ozu.jpg

meramsey pushed a commit to meramsey/whmcs-vultr that referenced this issue Apr 12, 2021
Fixed the subid not being properly saved into the tblcustomfields which causes it to not register as created.
Should resolve:
vultr#91
vultr#92
vultr#105
vultr#106

Tested with latest 
WHMCS Version: 8.1.3
PHP 7.3 and PHP7.4
Centos 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants