docs icon indicating copy to clipboard operation
docs copied to clipboard

Curl command not working

Open docanaebi opened this issue 8 years ago • 2 comments

File: ee/ucp/admin/configure/create-audit-logs.md

In https://beta.docs.docker.com/ee/ucp/admin/configure/create-audit-logs/#procedure step 4:

The curl command returns the following when using the cert in the bundle downloaded from UCP:

curl -k --cert ./cert.pem --key ./key.pem --cacert ./ca.pem -H "Content-Type: application/json" -X PUT --data $(cat auditlog.json) https://${UCP_HOST}/api/ucp/config/logging
curl: (58) unable to load client key: -8178 (SEC_ERROR_BAD_KEY)

I used a Bearer Token and got the following:

curl -sk -H "Content-Type: application/json" -H "Authorization: Bearer $AUTHTOKEN" -X PUT --data $(cat auditlog.json) https://${UCP_HOST}/api/ucp/config/logging
{"message":"unable to parse request body: unexpected end of JSON input"}

It was missing some quotes for the --data parameter:


curl -sk -H "Content-Type: application/json" -H "Authorization: Bearer $AUTHTOKEN" -X PUT --data "$(cat auditlog.json)" https://${UCP_HOST}/api/ucp/config/logging
{"logLevel":"INFO","auditLevel":"metadata","supportDumpIncludeAuditLogs":false}

docanaebi avatar Sep 28 '18 13:09 docanaebi

Thank you for your feedback. The Docker Enterprise platform business, including products, customers, and employees, has been acquired by Mirantis, inc., effective 13-November-2019. With this change, we are currently evaluating our documentation. In line with this, additions and updates are temporarily on hold, including product descriptions, instructions, illustrations, etc. while we evaluate the state of our documentation.

traci-morrison avatar Jan 13 '20 21:01 traci-morrison

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 14 '23 03:03 docker-robott