6
APPENDIX
6.3.5
Using Curl to delete a firewall filter rule by name
1
c u r l - - s s l v 3 - k - X D E L E T E
2
" h t t p s
:
/ / 1 9 2 . 1 6 8 . 2 . 1 / api / f i l t e r s / FTP - S E R V E R ? t o k e n = 2 4 4 2 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3
Curl result:
1
{
2
" c o d e "
:
200
,
3
" s t a t u s "
:
" s u c c e s s "
4
}
6.3.6
Using Curl to delete a firewall filter rule by index
1
c u r l - - s s l v 3 - k - X D E L E T E
2
" h t t p s
:
/ / 1 9 2 . 1 6 8 . 2 . 1 / api / f i l t e r s /0? t o k e n = 2 4 4 2 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3
Curl result:
1
{
2
" c o d e "
:
200
,
3
" s t a t u s "
:
" s u c c e s s "
4
}
6.3.7
Using Curl to save current configurations and reboot
1
c u r l - - s s l v 3 - k - X P O S T - d ""
2
" h t t p s
:
/ / 1 9 2 . 1 6 8 . 2 . 1 / api / c o m m a n d / s a v e _ r e s t a r t ? t o k e n = 2 4 4 2 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3 "
Curl result:
1
{
2
" c o d e "
:
200
,
3
" s t a t u s "
:
" s u c c e s s "
4
}
Multi-Tech Systems, Inc. MultiConnect
R
rCell API Developer Guide
37
Содержание MultiConnect rCell MTR-C2
Страница 1: ...MultiConnect R rCell API Developer Guide ...