Actions23
Policy → Create
AI-generatedSummary
Create a new SnapMirror policy on a NetApp ONTAP cluster with specified parameters and optional settings.
Inputs
- Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF.
- Port — HTTPS port for the ONTAP REST API, defaulting to 443.
- Policy Name (required) — The name to assign to the new SnapMirror policy.
- SVM — Optional Storage Virtual Machine (SVM) name for the policy; leave empty for a cluster-scoped policy.
- Policy Type (required) — Type of the policy: either 'Async' for asynchronous or 'Sync' for synchronous SnapMirror policies.
- Additional Options — Optional settings including comment, identity preservation mode, network compression enabling, sync common snapshot schedule (for sync policies), sync type, throttle limit (KB/s), and transfer schedule.
- Options — Additional retrieval options such as which fields to include in the response.
Output shape
The created SnapMirror policy object as JSON, including any job information if the action is asynchronous.
The node constructs a request body with the provided inputs and calls the ONTAP API endpoint to create the policy. If the response includes an async job, it waits for completion before returning. Optional parameters are included in the request if specified.