Read folder informatio
No Parameters
Key |
Type |
Value |
---|---|---|
results |
Array |
Folder list
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup
Content-Type: application/json
{ "results": [ { "id": null, "name": null, "member": 3 }, { "id": 1535, "name":" folder1", "member": 2 } ] }
Add folder
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
name |
String |
Folder name (1-40 characters) (required) |
201
Key |
Type |
Value |
---|---|---|
id |
int |
Folder ID |
name |
String |
Folder name |
sa |
Array |
Assigned service adaptor list
|
Up to 20 folders can be added
POST https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup
Content-Type: application/json
{ "name": "Folder1" }
Content-Type: application/json
{ "sa": [], "id": 1, "name": "Folder1" }
Read folder details
No Parameters
Key |
Type |
Value |
---|---|---|
id |
int |
Folder ID. null in case of default (unassigned) |
name |
String |
Folder name |
sa |
Array |
Assigned service adaptor list
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup/1
Content-Type: application/json
{ "sa": [ { "code": "tss99990001", "name": "SEIL/B1 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder2" }, "template": { "id": 1, "name": "Template1" }, "monitor": { "id": 1, "name": "Monitor1" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null } ], "id": 1, "name": "Folder1" }
Update folder details
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
name |
String |
Folder name (1-40 characters) (option) |
sa |
Array |
List of assigned service adaptors (option) |
Key |
Type |
Value |
---|---|---|
id |
int |
Folder ID. null in case of default (unassigned) |
name |
String |
Folder name |
sa |
Array |
Assigned service adaptor list
|
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup/1
Content-Type: application/json
{ "sa":[ { "code": "tss99990001" } ], "name": "Folder2" }
Content-Type: application/json
{ "sa": [ { "code": "tss99990001", "name": "SEIL/B1 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder2" }, "template": { "id": 1, "name": "Template1" }, "monitor": { "id": 1, "name": "Monitor1" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null } ], "id": 1, "name": "Folder2" }
Delete folder
No Parameters
204
Content-Type: text/plain
No Body
DELETE https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup/1
Content-Type: text/plain
No Body