テンプレートセットを追加する
Content-Type: application/json
Key | Type | Value |
---|---|---|
name | String | テンプレートセットの名前 (1 - 40文字) (必須) |
label | String | テンプレートセットのラベル (0 - 255文字) (オプション) |
201
Key | Type | Value |
---|---|---|
id | int | テンプレートセットのID。デフォルト(未所属)の場合は null |
name | String | テンプレートセットの名前 |
moduleId | Array | 登録されているテンプレートコンフィグのモジュールIDの一覧 |
sa | Array | 所属しているサービスアダプタの一覧
|
lastModified | String | 最終変更日時 |
label | String | テンプレートセットのラベル |
テンプレートセットの詳細情報を取得する
パラメータ無し
Key | Type | Value |
---|---|---|
id | int | テンプレートセットのID。デフォルト(未所属)の場合は null |
name | String | テンプレートセットの名前 |
moduleId | Array | 登録されているテンプレートコンフィグのモジュールIDの一覧 |
sa | Array | 所属しているサービスアダプタの一覧
|
lastModified | String | 最終変更日時 |
label | String | テンプレートセットのラベル |
Content-Type: application/json
{ "id": 1, "name": "Template1", "moduleId": [ 0, 1 ], "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": "Folder1" }, "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 } ], "lastModified":"2012/06/25 13:28:50", "label": "label1" }
テンプレートセットの詳細情報を変更する
Content-Type: application/json
Key | Type | Value |
---|---|---|
name | String | テンプレートセットの名前 (1 - 40文字) (オプション) |
sa | Array | 所属させるサービスアダプタの一覧 (オプション)
|
updateMode | String | サービスアダプタの割当方法 (オプション)
|
label | String | テンプレートセットのラベル (0 - 255文字) (オプション) |
API コール時に特定のパラメータ option を Query String として付加すると、同時に所定の処理が実行されます。 option パラメータは省略可能です。
例
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1?option=no-content
指定可能なパラメータは以下の通りです。
Key | Type | Value |
---|---|---|
option | String |
|
Key | Type | Value |
---|---|---|
id | int | テンプレートセットのID。デフォルト(未所属)の場合は null |
name | String | テンプレートセットの名前 |
moduleId | Array | 登録されているテンプレートコンフィグのモジュールIDの一覧 |
sa | Array | 所属しているサービスアダプタの一覧
|
lastModified | String | 最終変更日時 |
label | String | テンプレートセットのラベル |
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/template/1
Content-Type: application/json
{ "name": "Template2", "sa": [ { "code": "tss99990001" }, { "code": "tss99990002" } ], "label": "label2" }
Content-Type: application/json
{ "id": 1, "name": "Template2", "moduleId": [ 0, 1 ], "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": "Folder1" }, "template": { "id": 1, "name": "Template2", "label": "label2" }, "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 }, { "code": "tss99990002", "name": "SEIL/B1 002", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-5678-1234", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder1" }, "template": { "id": 1, "name": "Template2" "label": "label2" }, "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 } ], "lastModified":"2012/06/25 13:28:50", "label": "label2" }
テンプレートセットを削除する