- List retention policies
- Create retention policy
- Get retention policy
- Update retention policy
- Delete retention policy
Retrieves all of the retention policies for an enterprise.
This operation is performed by calling function getRetentionPolicies
.
See the endpoint docs at API Reference.
client.getRetentionPolicies().getRetentionPolicies()
- queryParams
GetRetentionPoliciesQueryParams
- Query parameters of getRetentionPolicies method
- headers
GetRetentionPoliciesHeaders
- Headers of getRetentionPolicies method
This function returns a value of type RetentionPolicies
.
Returns a list retention policies in the enterprise.
Creates a retention policy.
This operation is performed by calling function createRetentionPolicy
.
See the endpoint docs at API Reference.
client.getRetentionPolicies().createRetentionPolicy(new CreateRetentionPolicyRequestBody.CreateRetentionPolicyRequestBodyBuilder(retentionPolicyName, CreateRetentionPolicyRequestBodyPolicyTypeField.FINITE, CreateRetentionPolicyRequestBodyDispositionActionField.REMOVE_RETENTION).description(retentionDescription).retentionLength("1").retentionType(CreateRetentionPolicyRequestBodyRetentionTypeField.MODIFIABLE).canOwnerExtendRetention(true).areOwnersNotified(true).build())
- requestBody
CreateRetentionPolicyRequestBody
- Request body of createRetentionPolicy method
- headers
CreateRetentionPolicyHeaders
- Headers of createRetentionPolicy method
This function returns a value of type RetentionPolicy
.
Returns a new retention policy object.
Retrieves a retention policy.
This operation is performed by calling function getRetentionPolicyById
.
See the endpoint docs at API Reference.
client.getRetentionPolicies().getRetentionPolicyById(retentionPolicy.getId())
- retentionPolicyId
String
- The ID of the retention policy. Example: "982312"
- queryParams
GetRetentionPolicyByIdQueryParams
- Query parameters of getRetentionPolicyById method
- headers
GetRetentionPolicyByIdHeaders
- Headers of getRetentionPolicyById method
This function returns a value of type RetentionPolicy
.
Returns the retention policy object.
Updates a retention policy.
This operation is performed by calling function updateRetentionPolicyById
.
See the endpoint docs at API Reference.
client.getRetentionPolicies().updateRetentionPolicyById(retentionPolicy.getId(), new UpdateRetentionPolicyByIdRequestBody.UpdateRetentionPolicyByIdRequestBodyBuilder().policyName(updatedRetentionPolicyName).build())
- retentionPolicyId
String
- The ID of the retention policy. Example: "982312"
- requestBody
UpdateRetentionPolicyByIdRequestBody
- Request body of updateRetentionPolicyById method
- headers
UpdateRetentionPolicyByIdHeaders
- Headers of updateRetentionPolicyById method
This function returns a value of type RetentionPolicy
.
Returns the updated retention policy object.
Permanently deletes a retention policy.
This operation is performed by calling function deleteRetentionPolicyById
.
See the endpoint docs at API Reference.
client.getRetentionPolicies().deleteRetentionPolicyById(retentionPolicy.getId())
- retentionPolicyId
String
- The ID of the retention policy. Example: "982312"
- headers
DeleteRetentionPolicyByIdHeaders
- Headers of deleteRetentionPolicyById method
This function returns a value of type void
.
Returns an empty response when the policy has been deleted.