Template Variable (service adaptor start point)

GET /user/:user_code/template/:id/sa/:sa_code/variable

Batch read Template Variable values beginning with service adaptor

Detail

Request

No Parameters

Response

Body

Key

Type

Value

code

String

SA code

values

Array

List of variables

name String

Variable name

value String

Variable value

Sample

Request

URL
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/sa/tss99990001/variable

Response

Body
{
  "code": "tss90000140",
  "values": [
    {
      "name": "HOSTNAME",
      "value": null
    },
    {
      "name": "LAN0PREFIX",
      "value" :null
    },
    {
      "name": "LAN0ADDRESS",
      "value": null
    },
    {
      "name": "LAN1ADDRESS",
      "value": "192.168.0.1"
    }
  ]
}

PUT /user/:user_code/template/:id/sa/:sa_code/variable

Batch update Template Variable values beginning with service adaptor

Detail

Request

Header
Content-Type: application/json
Body

Key

Type

Value

values

Array

List of variables (required)

name String

Variable name (1 - 40 characters) (required)

value String

Variable value (1 - 500 characters) (required)

Response

Body

Key

Type

Value

code

String

SA code

values

Array

List of variables

name String

Variable name

value String

Variable value

Sample

Request

URL
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/sa/tss99990001/variable
Header
Content-Type: application/json
Body
{
  "values": [
    {
      "name": "HOSTNAME",
      "value": "SEIL/X1 001"
    },
    {
      "name": "LAN0PREFIX",
      "value": "24"
    },
    {
      "name": "LAN0ADDRESS",
      "value": "192.168.1.1"
    },
    {
      "name": "LAN1ADDRESS",
      "value":"10.0.0.1"
    }
  ]
}

Response

Header
Content-Type: application/json
Body
{
  "code": "tss99990001",
  "values": [
    {
      "name": "HOSTNAME",
      "value": "SEIL/X1 001"
    },
    {
      "name": "LAN0PREFIX",
      "value": "24"
    },
    {
      "name": "LAN0ADDRESS",
      "value": "192.168.1.1"
    },
    {
      "name": "LAN1ADDRESS",
      "value":"10.0.0.1"
    }
  ]
}