Empty Container Policy Using REST API

Learn how set the empty container policy for migration jobs using the DryvIQ REST API.


On This Page

Overview

The Empty Container policy allows the user to control whether empty containers (folders) are included in the transfer. This includes folders with no content and/or folders with all content filtered out by specified filter criteria. 

Option Behavior
"empty_containers": "skip" Do not transfer empty containers. 
"empty_containers": "create" Transfer empty containers. 

Job JSON Example

{
  "name":"Empty Container Policy",
  "kind": "transfer",
  "transfer": {
      "audit_level": "error",
      "transfer_type": "copy",
      "empty_containers": "skip",
      "source": {
        "connection": { "id": "{{cloud_connection_source}}" },
        "target":
        {"path":"/SourcePath"}
      },
      "destination": {
        "connection": { "id": "{{cloud_connection_destination}}" },
        "target": {
          "path": "/DestinationPath"
        }
      }
  },
  "schedule": {
    "mode": "manual"
  }
}