Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
8379f015
Unverified
Commit
8379f015
authored
Dec 03, 2016
by
kookxiang
Browse files
Finish dns_cx_rm() method
parent
a6270667
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cx.sh
View file @
8379f015
...
...
@@ -58,7 +58,15 @@ dns_cx_add() {
#fulldomain
dns_cx_rm
()
{
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment