> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/hetzner/power-on-server.md).

# Power On Server

Starts one Hetzner Cloud server through the Hetzner Cloud API. The server is identified by the **Server ID** setting, not by the assets in the workflow: the job does not read any asset data. It sends a single `poweron` action request per run.

### Before you begin

* **Hetzner shared prerequisite:** a Hetzner Cloud API token with access to the project that contains the server. Create it in the Hetzner console under the project's **Security** > **API Tokens** (**Generate**), and paste it into **API Token**.
* Defaults: **API Token**, **Server ID** and **Timeout** can be saved once per Hetzner job tab in **Action Center** > **Settings**. See [Action Center Settings](broken://pages/d12147581f006c45a595e65db07cc9785195a559).
* Asset type: the job inherits the default `device` type and has no `required_columns`. Asset data is not used, so any asset the workflow passes is ignored.
* The job sends the request to `https://api.hetzner.cloud/v1/servers/<Server ID>/actions/poweron`.

### Settings

| Setting   | Type             | Required | Default | Description                                                                                                                         |
| --------- | ---------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| API Token | Text (sensitive) | Yes      | None    | Hetzner Console > Select Project > Security > API Tokens > Generate. Masked as ten asterisks after saving.                          |
| Server ID | Number           | Yes      | None    | The ID of the server, found in the console URL: `https://console.hetzner.cloud/projects/[PROJECT_ID]/servers/[SERVER_ID]/overview`. |
| Timeout   | Number           | No       | 30      | Timeout for Hetzner API requests in seconds. 0 or an empty value falls back to 30.                                                  |

### How it works

1. The job builds the URL from the **Server ID** and sends one `POST` with your token as a Bearer token. There is one request per run, whatever the number of assets.
2. If Hetzner answers with status 201, the job logs the command name it returned and succeeds.
3. Any other status makes the job fail with `Operation failed.` followed by the error message and details from Hetzner. A response that is not valid JSON fails with `Response could not be parsed as JSON.`, and a connection problem or timeout fails with `Request failed.` A failed job stops the workflow run.
4. The job does not change the assets. The node passes on the assets it received.

Use it to bring a server back after **Hetzner Power Off Server** or **Hetzner Shutdown Server**. The other three Hetzner jobs differ only in the action they request: [Power Off Server](broken://pages/6b3b8a1b0160fece80ba3a5ac2e9e29919427ce3), [Reset Server](broken://pages/d171169628db2213e03d9906127997eaca7b7bfc), [Shutdown Server](broken://pages/68f7601c3452b98ffe048630f5d147ef9aea4727).

### Example

To act on several servers, add one job node per server, each with its own **Server ID**.

| Setting   | Value            |
| --------- | ---------------- |
| API Token | `YOUR_API_TOKEN` |
| Server ID | `12345678`       |
| Timeout   | `30`             |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/6d6e55e44b84fafea85085582007caf5bbd65003">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save Hetzner defaults once.</td><td><a href="broken://pages/d12147581f006c45a595e65db07cc9785195a559">Broken link</a></td></tr><tr><td><strong>Power Off Server</strong></td><td>A sibling job of the same product.</td><td><a href="broken://pages/6b3b8a1b0160fece80ba3a5ac2e9e29919427ce3">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 6.4.0.
{% endhint %}
