Skip to content

Commit f6d0519

Browse files
authored
Merge pull request #208 from SaaShup/fix_readme
Update README.md
2 parents a4eb578 + bd6b6c1 commit f6d0519

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ Once the plugin and webhooks are installed, you can:
2929
labels, mount volumes, set networks.
3030
4. Manage the container status, start, stop, restart.
3131

32-
* adding a host with curl needs a specific **Origin** header to make it working. Example :
33-
```
34-
curl -X POST -H "Authorization: Token xxxxx" -H "Content-Type: application/json" -H "Origin: https://myhost" https://myhost/api/plugins/docker/hosts/ -d '{"name": "test-add", "endpoint": "[https://xxxx:xxxx@test.com:1990"}](https://xxxx:xxxx@test.com:1990%22%7D)'
35-
```
32+
33+
> [!NOTE]
34+
> Adding a host with curl needs a specific `Origin` HTTP header to make it working. Example :
35+
>
36+
> ```bash
37+
> curl \
38+
> -H "Authorization: Token YOUR-NETBOX-APIKEY" \
39+
> -H "Content-Type: application/json" \
40+
> -H "Origin: https://YOUR-NETBOX-HOST" \
41+
> -X POST https://YOUR-NETBOX-HOST/api/plugins/docker/hosts/ \
42+
> -d '{"name": "YOUR-AGENT-NAME", "endpoint": "https://AGENT-USER:PASSWORD@YOUR-AGENT-HOST:PORT"}'
43+
> ```
3644
3745
## Installation
3846

0 commit comments

Comments
 (0)