policy id/name
policy object
promise resolving to a policy object
Create policy export template
Delete policy
policy id/name
promise resolving to a policy object
Export policies
Optionaloptions: PolicyExportOptions
export options
OptionalresultCallback: ResultCallback<PolicySkeleton>
Optional callback to process individual results. When given, the outcome of every policy is passed to it as it happens: a policy that was exported completely as the policy, a policy whose prerequisites or dependencies could not be exported as an error that names the policy and carries the causes. Such a policy is left out of the export and does not stop the others, and the function does not throw for it. Without it, the failures are collected and thrown as one error after every policy was tried. Failing to read the policies always throws.
a promise that resolves to an PolicyExportInterface object
Export policies by policy set
policy set id/name
Optionaloptions: PolicyExportOptions
export options
OptionalresultCallback: ResultCallback<PolicySkeleton>
Optional callback to process individual results. When given, the outcome of every policy is passed to it as it happens: a policy that was exported completely as the policy, a policy whose prerequisites or dependencies could not be exported as an error that names the policy and carries the causes. Such a policy is left out of the export and does not stop the others, and the function does not throw for it. Without it, the failures are collected and thrown as one error after every policy was tried. Failing to read the policies of the policy set always throws.
a promise that resolves to an PolicyExportInterface object
Export policy
policy id/name
Optionaloptions: PolicyExportOptionsa promise that resolves to a PolicyExportInterface object
Import first policy
import data
Optionaloptions: PolicyImportOptions
import options
imported policy object, or null if no update is made
Import policies
import data
Optionaloptions: PolicyImportOptions
import options
OptionalresultCallback: ResultCallback<PolicySkeleton>
Optional callback to process individual results. When given, the outcome of every policy is passed to it once, as it happens: a policy that was imported completely as the policy (a policy that needed no update as it is in the import data), a policy that could not be imported, or whose prerequisites or dependencies could not be imported, as one error that names the policy and carries the causes. Such a policy is not part of the result and does not stop the others, and the function does not throw for it. Without it, the failures are collected and thrown as one error after every policy was tried.
array of imported policy objects
Import policy by id
policy id
import data
Optionaloptions: PolicyImportOptions
import options
imported policy object, or null if no update is made
Read all policies
a promise that resolves to an array of policy set objects
Get policies by policy set
policy set id/name
a promise resolving to an array of policy objects
Get policy
policy id/name
promise resolving to a policy object
Update or create policy
policy id/name
policy object
promise resolving to a policy object if an update is made, or null if no update is made
Update or create policy