Customers policy installation
GET all example
Request
GET http://localhost:8080/fpc/api/customers/2/installs?startdate=2016-11-14 12:38:08&enddate=2016-1Z1-24 15:38:08
Headers
accept: application/jsonz
content-type: application/json
fpc-sid: $FPCSID
Cookie: fpc-jsessionid=$FPCSID
Response
Status 200 OK
[{
"id" : 3,
"taskId" : 681,
"customerId" : 2,
"customerName" : "customer two",
"userid" : 1,
"userName" : "system-generated",
"deviceName" : "FGVM010000051257",
"packageName" : "FGT168_LB_root",
"vdomName" : "root",
"taskDetails" : "Policy package FGT168_LB_root install to device FGVM010000051257and vdom root started with taskId 681",
"adomName" : "Adom5_LB",
"fortimanagerId" : 1,
"createdOn" : 1479780232000
}, {
"id" : 4,
"taskId" : 682,
"customerId" : 2,
"customerName" : "customer two",
"userid" : 1,
"userName" : "system-generated",
"deviceName" : "FGVM010000051257",
"packageName" : "FGT168_LB_root",
"vdomName" : "root",
"taskDetails" : "Policy package FGT168_LB_root install to device FGVM010000051257and vdom root started with taskId 682",
"adomName" : "Adom5_LB",
"fortimanagerId" : 1,
"createdOn" : 1479929677000
}]
GET installation details by ID
Request
POST http://localhost:8080/fpc/api/customers/2/installs/4
Headers
accept: application/json
content-type: application/json
fpc-sid: $FPCSID
Cookie: fpc-jsessionid=$FPCSID
Response
Status 200 OK
{
"installId": 4,
"taskId": 682,
"customerId": 2,
"customerName": "customer two",
"installationLog": " Starting log (Run on device) Start installing FGVM010000051257 $ config vdom FGVM010000051257 (vdom) $ edit root current vf=root:0 FGVM010000051257 (root) $ config firewall policy FGVM010000051257 (policy) $ delete 21 FGVM010000051257 (policy) $ end FGVM010000051257 (root) $ end FGVM010000051257 $ config vdom FGVM010000051257 (vdom) $ edit root current vf=root:0 FGVM010000051257 (root) $ config firewall ssl-ssh-profile FGVM010000051257 (ssl-ssh-profile) $ delete "_2_default_default_" FGVM010000051257 (ssl-ssh-profile) $ end FGVM010000051257 (root) $ end ---> generating verification report <--- done generating verification report install finished ",
"errorCode": "0",
"errorMsg": "Get Install Log Successfully"
}