v1

latestOpenAPI 3.1.02026-07-245531,0212.1 MB
Legal Hold

Create a legal hold policy - v3

Creates a legal hold policy in Druva inSync.

post/legalholds/v3/policies

Request body

namestring

The name of the legal hold policy. Example - Legal Hold Policy 1

type'All Backup Data' | 'Last Backup Data' | 'Data within a Date Range'

The data access type of the legal hold policy

cullingType'Include All Files' | 'Include Only Deleted Files'

The filter type of the legal hold policy. :fa-info-circle: Applicable only if the data access type is 'Data within a Date Range'. Use any of the filter types

startDatestring date

The start date in the range in which the data is to be accessed. Format: YYYY-MM-DD :fa-info-circle: Applicable only if the data access type is 'Data within a Date Range'.

endDatestring date

The end date in the range in which the data is to be accessed. Format: YYYY-MM-DD :fa-info-circle: Applicable only if the data access type is 'Data within a Date Range'.

Example request

{
  "name": "LH Policy 1",
  "type": "Data within a Date Range",
  "startDate": "2019-03-19",
  "endDate": "2019-10-25"
}

Response

OK

policyIdinteger

The ID of the legal hold policy. Example - 1