Skip to content

Commit 891198e

Browse files
authored
Merge pull request #4653 from stokito/dns_ovh_runabove
dns_ovh.sh Add ovh-us endpoint
2 parents 327e2fb + 6c8920f commit 891198e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

dnsapi/dns_ovh.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#'ovh-eu'
1515
OVH_EU='https://eu.api.ovh.com/1.0'
1616

17+
#'ovh-us'
18+
OVH_US='https://api.us.ovhcloud.com/1.0'
19+
1720
#'ovh-ca':
1821
OVH_CA='https://ca.api.ovh.com/1.0'
1922

@@ -29,9 +32,6 @@ SYS_EU='https://eu.api.soyoustart.com/1.0'
2932
#'soyoustart-ca'
3033
SYS_CA='https://ca.api.soyoustart.com/1.0'
3134

32-
#'runabove-ca'
33-
RAV_CA='https://api.runabove.com/1.0'
34-
3535
wiki="https://github.com/acmesh-official/acme.sh/wiki/How-to-use-OVH-domain-api"
3636

3737
ovh_success="https://github.com/acmesh-official/acme.sh/wiki/OVH-Success"
@@ -45,6 +45,10 @@ _ovh_get_api() {
4545
printf "%s" $OVH_EU
4646
return
4747
;;
48+
ovh-us | ovhus)
49+
printf "%s" $OVH_US
50+
return
51+
;;
4852
ovh-ca | ovhca)
4953
printf "%s" $OVH_CA
5054
return
@@ -65,14 +69,15 @@ _ovh_get_api() {
6569
printf "%s" $SYS_CA
6670
return
6771
;;
68-
runabove-ca | runaboveca)
69-
printf "%s" $RAV_CA
72+
# raw API url starts with https://
73+
https*)
74+
printf "%s" "$1"
7075
return
7176
;;
7277

7378
*)
7479

75-
_err "Unknown parameter : $1"
80+
_err "Unknown endpoint : $1"
7681
return 1
7782
;;
7883
esac

0 commit comments

Comments
 (0)