Blueprint Coding Help

How to send power actions to servers inside blueprint code? using the server url or server short id without needing any API keys? Like send power actions (start, stop, restart) via the server short id (like abcd1234) or the server url (like https://panel.mydomain.com/server/abcd1234) via the code without an API key in blueprint or just generaly Using the API Key should be fine but I dont really know how to use them and dont know how well I can hide it form my users so I want to send power actions via the code without using an API Key preferably.
11 Replies
Zeph
Zeph2w ago
There isn't much in terms of documentation for this kind of thing as far as I know, so I usually look at the source code for pterodactyl and try and find whatever was done there and just copy the parts of it that I need
Dragon Sam
Dragon SamOP2w ago
Alrighty Thanks I have now done this however When doing the mass start, restart and stop the servers dont update like if they are online and I hit the stop they stop but the green tint around them doesnt change. (nebula)
Dragon Sam
Dragon SamOP2w ago
After hitting stop:
No description
Dragon Sam
Dragon SamOP2w ago
I have to like wait 5-10 seconds then refresh the page for it to update Any fix to this?
Emma
Emma7d ago
these don't update in real-time you somehow have to tell it to refetch
Dragon Sam
Dragon SamOP7d ago
Is that a thing in nebula code or pterodactyl?
Emma
Emma6d ago
pterodactyl
Dragon Sam
Dragon SamOP6d ago
May as well keep using this for other questions right? Alrighty ty I will look into that! Buy can blueprint pull node data like there amount of Ram, storage or CPU type? Or does the REQUIRE a wings update/re-build with custom code?
0x7d8
0x7d86d ago
requires wings-rs or something custom
Dragon Sam
Dragon SamOP6d ago
Whats wings-rs?
Zeph
Zeph6d ago
its a rewrite of wings in rust with a few extra features

Did you find this page helpful?