batchGetThreats method

Future<BatchGetThreatsOutput> batchGetThreats({
  1. required String agentSpaceId,
  2. required List<String> threatIds,
})

Retrieves information about one or more threats.

Parameter agentSpaceId : The unique identifier of the agent space.

Parameter threatIds : The list of threat identifiers to retrieve.

Implementation

Future<BatchGetThreatsOutput> batchGetThreats({
  required String agentSpaceId,
  required List<String> threatIds,
}) async {
  final $payload = <String, dynamic>{
    'agentSpaceId': agentSpaceId,
    'threatIds': threatIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/BatchGetThreats',
    exceptionFnMap: _exceptionFns,
  );
  return BatchGetThreatsOutput.fromJson(response);
}