exportPolicies
This method exports all policies available to the current user.
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
| Array | No | The IDs of the policies to be exported. |
| Array | No | The names of policies to be exported. |
| Number | Yes | The page of results. The default value is 1. |
| Number | Yes | The number of items displayed in a page. The upper limit is 100 items per page. Default value: 30 items per page. |
Return value
This method returns a an Array containing Lists of exported policies.
Example
Request:
{ "params": { "policyNames" : ["First policy name", "Second policy name"], "page": 1" perPage": 10 }, "jsonrpc": "2.0", "method": "exportPolicies", "id": "98409cc1-93cc-415a-9f77-1d4f681000b3" }
{ "params": { "policyIds" : ["55828d66b1a43de92c712345"], "page": 1, "perPage": 10 }, "jsonrpc": "2.0", "method": "exportPolicies", "id": "98409cc1-93cc-415a-9f77-1d4f681000b3" }
Response:
{ "params": { page: 1, pagesCount: 2, perPage: 2, total: 4, "compatVersion": "021-001-001" items[ [ "name" : "policy", "service" : 3, "uiSettings": [] ], [ "name" : "policy", "service" : 3, "uiSettings": [] ], ... ] }, "jsonrpc": "2.0", "method": "exportPolicies", "id": "98409cc1-93cc-415a-9f77-1d4f681000b3" }