File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,18 @@ Once the plugin and webhooks are installed, you can:
29
29
labels, mount volumes, set networks.
30
30
4 . Manage the container status, start, stop, restart.
31
31
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
+ > ` ` `
36
44
37
45
# # Installation
38
46
You can’t perform that action at this time.
0 commit comments