kookxiang
8 years ago
No known key found for this signature in database
GPG Key ID: 178460ED3B53DAFA
1 changed files with
9 additions and
1 deletions
-
dnsapi/dns_cx.sh
|
@ -58,7 +58,15 @@ dns_cx_add() { |
|
|
#fulldomain |
|
|
#fulldomain |
|
|
dns_cx_rm() { |
|
|
dns_cx_rm() { |
|
|
fulldomain=$1 |
|
|
fulldomain=$1 |
|
|
|
|
|
|
|
|
|
|
|
REST_API="$CX_Api" |
|
|
|
|
|
if _get_root "$fulldomain"; then |
|
|
|
|
|
record_id="" |
|
|
|
|
|
existing_records "$_domain" "$_sub_domain" |
|
|
|
|
|
if ! [ "$record_id" = "" ]; then |
|
|
|
|
|
_rest DELETE "record/$record_id/$_domain_id" "{}" |
|
|
|
|
|
_info "Deleted record ${fulldomain}" |
|
|
|
|
|
fi |
|
|
|
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#usage: root sub |
|
|
#usage: root sub |
|
|