Passing the API access keys to cdpcurl
After you generate the API access key and private key, you must pass the keys to
cdpcurl
.
You have two options for passing the API access key and private key to
cdpcurl
:
- Recommended method: Create a profile in $HOME/.cdp/credentials that contains the
keys, and then use the
--profile
option incdpcurl
calls. For example:[myuserprofile] cdp_access_key_id = 6744f22e-c46a-406d-ad28-987584f45351 cdp_private_key = abcdefgh...................................=
- Alternatively, when you make the API call, pass the keys to
cdpcurl
using the--access-key
and--private-key
options.