mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-14 20:22:13 +08:00
Add VirakCloud DNS API support
This commit is contained in:
@@ -43,6 +43,7 @@ dns_virakcloud_add() {
|
|||||||
|
|
||||||
_info "Adding TXT record"
|
_info "Adding TXT record"
|
||||||
|
|
||||||
|
|
||||||
if _virakcloud_rest POST "domains/${_domain}/records" "{\"record\":\"${fulldomain}\",\"type\":\"TXT\",\"ttl\":3600,\"content\":\"${txtvalue}\"}"; then
|
if _virakcloud_rest POST "domains/${_domain}/records" "{\"record\":\"${fulldomain}\",\"type\":\"TXT\",\"ttl\":3600,\"content\":\"${txtvalue}\"}"; then
|
||||||
if echo "$response" | grep -q "success" || echo "$response" | grep -q "\"data\""; then
|
if echo "$response" | grep -q "success" || echo "$response" | grep -q "\"data\""; then
|
||||||
_info "Added, OK"
|
_info "Added, OK"
|
||||||
|
|||||||
Reference in New Issue
Block a user