Browse Source
Merge pull request #4653 from stokito/dns_ovh_runabove
dns_ovh.sh Add ovh-us endpoint
pull/4663/head
neil
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
6 deletions
-
dnsapi/dns_ovh.sh
|
|
@ -14,6 +14,9 @@ |
|
|
|
#'ovh-eu' |
|
|
|
OVH_EU='https://eu.api.ovh.com/1.0' |
|
|
|
|
|
|
|
#'ovh-us' |
|
|
|
OVH_US='https://api.us.ovhcloud.com/1.0' |
|
|
|
|
|
|
|
#'ovh-ca': |
|
|
|
OVH_CA='https://ca.api.ovh.com/1.0' |
|
|
|
|
|
|
@ -29,9 +32,6 @@ SYS_EU='https://eu.api.soyoustart.com/1.0' |
|
|
|
#'soyoustart-ca' |
|
|
|
SYS_CA='https://ca.api.soyoustart.com/1.0' |
|
|
|
|
|
|
|
#'runabove-ca' |
|
|
|
RAV_CA='https://api.runabove.com/1.0' |
|
|
|
|
|
|
|
wiki="https://github.com/acmesh-official/acme.sh/wiki/How-to-use-OVH-domain-api" |
|
|
|
|
|
|
|
ovh_success="https://github.com/acmesh-official/acme.sh/wiki/OVH-Success" |
|
|
@ -45,6 +45,10 @@ _ovh_get_api() { |
|
|
|
printf "%s" $OVH_EU |
|
|
|
return |
|
|
|
;; |
|
|
|
ovh-us | ovhus) |
|
|
|
printf "%s" $OVH_US |
|
|
|
return |
|
|
|
;; |
|
|
|
ovh-ca | ovhca) |
|
|
|
printf "%s" $OVH_CA |
|
|
|
return |
|
|
@ -65,14 +69,15 @@ _ovh_get_api() { |
|
|
|
printf "%s" $SYS_CA |
|
|
|
return |
|
|
|
;; |
|
|
|
runabove-ca | runaboveca) |
|
|
|
printf "%s" $RAV_CA |
|
|
|
# raw API url starts with https:// |
|
|
|
https*) |
|
|
|
printf "%s" "$1" |
|
|
|
return |
|
|
|
;; |
|
|
|
|
|
|
|
*) |
|
|
|
|
|
|
|
_err "Unknown parameter : $1" |
|
|
|
_err "Unknown endpoint : $1" |
|
|
|
return 1 |
|
|
|
;; |
|
|
|
esac |
|
|
|