Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
2168458f
Commit
2168458f
authored
Dec 04, 2016
by
neil
Committed by
GitHub
Dec 04, 2016
Browse files
Merge pull request #439 from Neilpang/dev
support CloudXNS rm method
parents
f08c0180
8cf07255
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_cx.sh
View file @
2168458f
...
@@ -58,7 +58,15 @@ dns_cx_add() {
...
@@ -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
...
...
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