Template config

GET /user/:user_code/template/:id/config/:module_id/plain

Read Template config for specified module

Detail

Request

No Parameters

Response

Body

Text config

Sample

Request

URL
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/config/0/plain

Response

Header
Content-Type: text/plain
Body
hostname "${HOSTNAME}"
interface lan0 add ${LAN0ADDRESS}/${LAN0PREFIX}
interface lan1 add dhcp
route add default dhcp
telnetd enable

PUT /user/:user_code/template/:id/config/:module_id/plain

Update Template config for specified module

Detail

Request

Header
Content-Type: text/plain
Body

Text config

Response

Status Code
204
Header
Content-Type: text/plain
Body

No Body

Sample

Request

URL
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/config/0/plain
Header
Content-Type: text/plain
Body
hostname "${HOSTNAME}"
interface lan0 add ${LAN0ADDRESS}/${LAN0PREFIX}
interface lan1 add dhcp
route add default dhcp
telnetd enable

Response

Header
Content-Type: text/plain
Body

No Body

DELETE /user/:user_code/template/:id/config/:module_id/plain

Delete Template config for specified module

Detail

Request

No Parameters

Response

Status Code
204
Header
Content-Type: text/plain
Body

No Body

Sample

Request

URL
DELETE https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/config/0/plain

Response

Header
Content-Type: text/plain
Body

No Body