getDataRetentionPolicyByIDWithHttpInfo method

Future<Response> getDataRetentionPolicyByIDWithHttpInfo(
  1. String policyId
)

Get a granular data retention policy

Gets details about a granular data retention policies by ID. Minimum server version: 5.35 ##### Permissions Must have the sysconsole_read_compliance_data_retention permission. ##### License Requires an E20 license.

Note: This method returns the HTTP Response.

Parameters:

  • String policyId (required): The ID of the granular retention policy.

Implementation

Future<Response> getDataRetentionPolicyByIDWithHttpInfo(
  String policyId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/data_retention/policies/{policy_id}'.replaceAll('{policy_id}', policyId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}