And found the way how to install policy from api
[Expert@cpwf-r77:0]# mgmt_cli install-policy policy-package "standard" access true threat-prevention false targets.1 "cpwf-r77" --format json
Username: admin
Password:
---------------------------------------------
Time: [21:36:41] 15/2/2019
---------------------------------------------
"Policy installation - Standard" in progress (0%)
---------------------------------------------
Time: [21:36:51] 15/2/2019
---------------------------------------------
"Policy installation - Standard" in progress (50%)
---------------------------------------------
Time: [21:37:01] 15/2/2019
---------------------------------------------
"Policy installation - Standard" succeeded (100%)
{
"tasks" : [ {
"uid" : "6f7e20cd-16f1-49aa-b13b-40701fbb898e",
"type" : "task",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"task-id" : "82fdae92-a9f7-404a-a5c2-f75d5cb8a4a8",
"task-name" : "Policy installation - Standard",
"status" : "succeeded",
"progress-percentage" : 100,
"start-time" : {
"posix" : 1550248598869,
"iso-8601" : "2019-02-15T21:36+0500"
},
"last-update-time" : {
"posix" : 1550248614988,
"iso-8601" : "2019-02-15T21:36+0500"
},
"suppressed" : false,
"task-details" : [ {
"uid" : "ea5018dd-c31b-4f4d-8a78-5428b83fff8f",
"name" : null,
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"color" : "black",
"statusCode" : "succeeded with warnings",
"statusDescription" : "Succeeded with Warnings",
"taskNotification" : "6f7e20cd-16f1-49aa-b13b-40701fbb898e",
"gatewayId" : "4e95a5b1-01bb-204f-9142-c906642fe179",
"policyId" : "e095dc17-7496-4a8e-96b1-1687395b10b5",
"runningStages" : [ ],
"waitingStages" : [ ],
"stagesInfo" : [ {
"type" : "warn",
"stage" : "legacy policy load",
"messages" : [ {
"type" : "warn",
"message" : "Anti-Spoofing is not configured for some interfaces and gateways. This will allow address spoofing through these gateways.,,Anti-Spoofing should be configured on the following objects:,.Gateway: cpwf-r77, Interface: eth3,."
} ]
} ],
"cluster" : false,
"meta-info" : {
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1550248613863,
"iso-8601" : "2019-02-15T21:36+0500"
},
"last-modifier" : "System",
"creation-time" : {
"posix" : 1550248599106,
"iso-8601" : "2019-02-15T21:36+0500"
},
"creator" : "System"
},
"tags" : [ ],
"icon" : "General/globalsNa",
"comments" : "",
"display-name" : "",
"customFields" : null,
"gatewayName" : "cpwf-r77",
"revision" : "d621174f-f404-4ebb-82ea-910bac0d7dad"
} ],
"comments" : "Installation succeeded on cpwf-r77",
"color" : "black",
"icon" : "General/globalsNa",
"tags" : [ ],
"meta-info" : {
"lock" : "unlocked",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1550248615005,
"iso-8601" : "2019-02-15T21:36+0500"
},
"last-modifier" : "System",
"creation-time" : {
"posix" : 1550248598871,
"iso-8601" : "2019-02-15T21:36+0500"
},
"creator" : "admin"
},
"read-only" : false
} ]
}