Working config

GET /user/:user_code/sa/:sa_code/config/working

Read list of Working config summaries

Detail

Request

No Parameters

Response

Body

Key

Type

Value

results

Array

List of Working config summaries

Sample

Request

URL
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working

Response

Body
{
  "results": [
    {
      "moduleId": 0,
      "moduleName": "SEIL/B1 3.71 (Symphony8)",
      "version": "3.71.0-0",
      "binary": false,
      "lastModified": "2012/06/18 10:36:29"
    },
    {
      "moduleId": 1,
      "moduleName": "update-firmware",
      "version": "0.0.0-0",
      "binary": false,
      "lastModified": "2012/06/18 10:36:31"
    },
    {
      "moduleId": null,
      "moduleName": null,
      "version": null,
      "binary": null,
      "lastModified": "2012/06/18 10:36:33"
    }
  ]
}

PUT /user/:user_code/sa/:sa_code/config/working/blank

Save blank Working config to a module which has not had a config saved to it

Detail

Request

No Parameters

Response

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

No Body

Sample

Request

URL
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working/blank
Header
Content-Type: application/json
Body

No Body

Response

Header
Content-Type: application/json
Body

No Body

Description

A module which has not yet had a config saved to it cannot reflect a config onto the Startup config or Running config

PUT /user/:user_code/sa/:sa_code/config/working/:module_id

Update the Working config module information for the specified module

Detail

Request

Header
Content-Type: application/json
Body

Key

Type

Value

version

String

Module version (required)

Response

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

No Body

Sample

Request

URL
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working/0
Header
Content-Type: application/json
Body
{
  "version": "3.91.0-0"
}

Response

Header
Content-Type: application/json
Body

No Body

GET /user/:user_code/sa/:sa_code/config/working/:module_id/plain

Read Working config (text format) of specified module

Detail

Request

No Parameters

Response

Header
Content-Type: text/plain
Body

Config (text)

Sample

Request

URL
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working/0/plain

Response

Header
Content-Type: text/plain
Body
hostname "sample"
interface lan0 add 192.168.0.1/24
interface lan1 add dhcp
route add default dhcp
telnetd enable

GET /user/:user_code/sa/:sa_code/config/working/:module_id/binary

Read Working config (binary format) of specified module

Detail

Request

No Parameters

Response

Header
Content-Type: application/octet-stream
Body

Config (binary)

Sample

Request

URL
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working/0/binary

Response

Header
Content-Type: application/octet-stream
Body

Config (binary)

PUT /user/:user_code/sa/:sa_code/config/working/:module_id/plain

Update Working config (text format) of specified module

Detail

Request

Header
Content-Type: text/plain
Body

Config (text)

Response

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

No Body

Sample

Request

URL
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working/0/plain
Header
Content-Type: text/plain
Body
hostname "sample"
interface lan0 add 192.168.0.1/24
interface lan1 add dhcp
route add default dhcp
telnetd enable

Response

Header
Content-Type: text/plain
Body

No Body

PUT /user/:user_code/sa/:sa_code/config/working/:module_id/binary

Update Working config (binary format) of specified module

Detail

Request

Header
Content-Type: multipart/form-data
Body

Config (binary)

Response

Header
Content-Type: text/plain
Body
true

Sample

Request

URL
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sa/tss99990001/config/working/0/binary
Header
Content-Type: multipart/form-data; boundary=----5laI4vTCiCNvt98A
Body
------5laI4vTCiCNvt98A
Content-Disposition: form-data; name="binary-config-file"; filename="sample"
Content-Type: application/octet-stream

(Binary-data)
------5laI4vTCiCNvt98A--

Response

Header
Content-Type: text/plain
Body
true