Read Template Variable information
No Parameters
Key |
Type |
Value |
---|---|---|
results |
Array |
List of variables
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/variable
Content-Type: application/json
{ "results": [ { "name": "HOSTNAME", "defaultValue": "" }, { "name": "LAN0PREFIX", "defaultValue": "24" }, { "name": "LAN0ADDRESS", "defaultValue": "192.168.0.1" } ] }
Add Template Variable
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
name |
String |
Variable name (1 - 40 characters) (required) |
defaultValue |
String |
Variable default value (1 - 500 characters) (option) |
201
Key |
Type |
Value |
---|---|---|
name |
String |
Variable name |
defaultValue |
String |
Variable default value |
values |
Array |
List of variable values |
Up to 50 variables can be added
POST https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/variable
Content-Type: application/json
{ "name": "LAN1ADDRESS", "defaultValue": "10.0.0.1" }
Content-Type: application/json
{ "name": "LAN1ADDRESS", "defaultValue": "10.0.0.1", "values": [ ] }
Read details for specified Variable name
No Parameters
Key |
Type |
Value |
---|---|---|
name |
String |
Variable name |
defaultValue |
String |
Variable default value |
values |
Array |
List of variable values
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/variable/LAN1ADDRESS
Content-Type: application/json
{ "name": "LAN1ADDRESS", "defaultValue": "172.0.0.1", "values": [ { "code": "tss99990001", "value": "10.0.0.1" }, { "code": "tss99990002", "value": "10.0.0.2" } ] }
Update details for specified Variable name
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
defaultValue |
String |
Variable default value (1 - 500 characters) (option) |
values |
Array |
List of Variable values (option)
|
Key |
Type |
Value |
---|---|---|
name |
String |
Variable name |
defaultValue |
String |
Variable default value |
values |
Array |
List of variable values
|
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/variable/LAN1ADDRESS
Content-Type: application/json
{ "defaultValue": "172.0.1.1", "values": [ { "code": "tss99990001", "value": "10.0.0.1" }, { "code": "tss99990002", "value": "10.0.0.3" } ] }
Content-Type: application/json
{ "name": "LAN1ADDRESS", "defaultValue": "172.0.1.1", "values": [ { "code": "tss99990001", "value": "10.0.0.1" }, { "code": "tss99990002", "value": "10.0.0.3" } ] }
Delete specified template variable
No Parameters
204
Content-Type: text/plain
No Body
DELETE https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1/variable/LAN1ADDRESS
Content-Type: text/plain
No Body