searchChannelsForRetentionPolicyWithHttpInfo method
Future<Response>
searchChannelsForRetentionPolicyWithHttpInfo(
- String policyId,
- MmSearchChannelsForRetentionPolicyRequest mmSearchChannelsForRetentionPolicyRequest
Search for the channels in a granular data retention policy
Searches for the channels to which a granular data retention policy is applied. 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.
-
MmSearchChannelsForRetentionPolicyRequest mmSearchChannelsForRetentionPolicyRequest (required):
Implementation
Future<Response> searchChannelsForRetentionPolicyWithHttpInfo(
String policyId,
MmSearchChannelsForRetentionPolicyRequest mmSearchChannelsForRetentionPolicyRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/data_retention/policies/{policy_id}/channels/search'.replaceAll('{policy_id}', policyId);
// ignore: prefer_final_locals
Object? postBody = mmSearchChannelsForRetentionPolicyRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}