Skip to content

ghostcap-gaming/pterodactyl-panel-mass-power-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Panel-Power-Action

Mass stopping and starting of servers hosted on panel. This was designed with the intent of running with a github action. Suitable if you're updating lots of servers at once and you quickly need to make the update live. This code is provided AS IS!

main.py <== script file that need to run

config.py <== configuration of server addresses

Prerequisite

BARER TOKEN

insert api token generated from panel USER account API ( Important: not application API token )

barer_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' <== replace with actual token

Click on panel username ( for Ptero Panel )

image

Go to Api Credentials

image

Create new API key and leave IP blank. Copy API Key and insert into barer_token field in config.py KEY must be admin's KEY

..........................................................................................

For server List in config.py

The last part of url is server identifier make sure to follow the format when adding servers. Esp , the comma at the end. The last server doesn't require comma , <== important

image

Run with this command in server console "python main.py" or "python3 main.py"

About

mass stopping and starting of servers hosted on panel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages