This doc captures the working setup used on macOS with OVHcloud CA.
Homebrew install:
brew install --cask ovh/tap/ovhcloud-cliIf macOS blocks the binary, remove quarantine:
xattr -d com.apple.quarantine /opt/homebrew/bin/ovhcloudThe CLI loads config from the following locations (in this order):
./ovh.conf~/.ovh.conf/etc/ovh.conf
Example ~/.ovh.conf for OVHcloud CA:
[default]
endpoint=ovh-ca
[ovh-ca]
application_key=YOUR_APP_KEY
application_secret=YOUR_APP_SECRET
consumer_key=YOUR_CONSUMER_KEYNote: credentials must be under the section that matches the endpoint.
Broad steps:
- Log into
manager.ca.ovhcloud.com. - Go to
Identity, Security & Operations->API keys. - Create a new API key with read-only GET rights:
/cloud/project/cloud/project/*/cloud/project/*/instance/*/cloud/project/*/volume/*/cloud/project/*/network/*/cloud/project/*/region/*
- Save the
application_key,application_secret, andconsumer_keyvalues.
Note: include the .../region/* right; the first token failed without it.
When adding rights in the UI, each line must be confirmed by clicking the +
button, otherwise it is not included.
Those three values go into ~/.ovh.conf (or ./ovh.conf) under the [ovh-ca] section.
ovhcloud cloud project list