ovh-api-bash-client
ovh-api-bash-client copied to clipboard
US target is not working.
The US target has an outdated URL. Initializing the app fails with this problem:
Now generating POST JSON Data for accessRules
EXPECTED value GOT EOF
In order to validate the generated consumerKey, visit the validation url at:
EXPECTED value GOT EOF
This patch fixes the issue:
diff --git a/ovh-api-bash-client.sh b/ovh-api-bash-client.sh
index 34910d7..72fbcfc 100755
--- a/ovh-api-bash-client.sh
+++ b/ovh-api-bash-client.sh
@@ -14,12 +14,12 @@ readonly TARGETS=(CA EU US)
declare -A API_URLS
API_URLS[CA]="https://ca.api.ovh.com/1.0"
API_URLS[EU]="https://api.ovh.com/1.0"
-API_URLS[US]="https://api.ovhcloud.com/1.0"
+API_URLS[US]="https://api.us.ovhcloud.com/1.0"
declare -A API_CREATE_APP_URLS
API_CREATE_APP_URLS[CA]="https://ca.api.ovh.com/createApp/"
API_CREATE_APP_URLS[EU]="https://api.ovh.com/createApp/"
-API_CREATE_APP_URLS[US]="https://api.ovhcloud.com/createApp/"
+API_CREATE_APP_URLS[US]="https://api.us.ovhcloud.com/createApp/"
readonly API_URLS
readonly API_CREATE_APP_URLS