hosting:hetzner:cloud
This is an old revision of the document!
API
Rescale
PowerShell
$env:HETZNER_TOKEN = "<CLOUD-API-TOKEN>" $serverid = "12345678" $servertype = "cx23" $body = @{ upgrade_disk = $true server_type = $servertype } | ConvertTo-Json Invoke-WebRequest ` -Method Post ` -Headers @{ "Authorization" = "Bearer $env:HETZNER_TOKEN" } ` -Uri "https://api.hetzner.cloud/v1/servers/$serverid/actions/change_type" ` -ContentType "application/json" ` -Body $body ` -UseBasicParsing Remove-Item Env:HETZNER_TOKEN Clear-Variable server* Clear-Variable body
hosting/hetzner/cloud.1771631796.txt.gz · Last modified: by gsys