Skip to content

Commit b9607af

Browse files
committed
examples: use the multipart/form-data endpoint, default org
1 parent c9c53fe commit b9607af

File tree

59 files changed

+93
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+93
-93
lines changed

examples/ansible/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/ansible/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_docker/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_dynamic_inventory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/ansible_dynamic_inventory/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook inventory.sh target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_form/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_limit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/ansible_limit/concord.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ flows:
1717
ansible_connection: "local"
1818
extraVars:
1919
greetings: "Hi there!"
20-
limit: @playbook/hello.limit
20+
limit: "@playbook/hello.limit"

examples/ansible_limit/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_oneops_replace/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

0 commit comments

Comments
 (0)