# PolicyImport

Type: PolicyImport

Single policy import defining which policy entries of the referenced policy are imported.

Schema: [PolicyImport](https://sourcey-ditto.pages.dev/http-api-doc/models/policyimport.md)

Example:

```json
{
  "entries": [
    "default",
    "import"
  ]
}
```

- `entries` (optional)
  Type: Array<string>
  
  The policy entries to import from the referenced policy identified by their labels.
  In case the field is omitted or an empty array is provided,
  all policy entries defined as implicit ("importable": "implicit") are imported.
  
  default: []
  
  Items:
    Type: string
    
    Label of a policy entry to import from the referenced policy.

- `transitiveImports` (optional)
  Reference: [TransitiveImports](https://sourcey-ditto.pages.dev/http-api-doc/models/transitiveimports.md); Type: Array<string>
  
  List of policy IDs from the imported policy's own imports that should be resolved transitively
  before extracting entries. This enables multi-level import chains where a template policy defines
  resources and an intermediate policy defines entries with "references" that add local subjects.
  
  Each entry is the policy ID of a policy that the directly imported policy itself imports from.
  Only the listed policy IDs are resolved — this is an explicit whitelist, not a recursive flag.
  
  Example:
  
  ```json
  [
    "org.eclipse.ditto:policy-template"
  ]
  ```