getMemberDetectors method
Describes which data sources are enabled for the member account's detector.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter accountIds
:
The account ID of the member account.
Parameter detectorId
:
The detector ID for the administrator account.
Implementation
Future<GetMemberDetectorsResponse> getMemberDetectors({
required List<String> accountIds,
required String detectorId,
}) async {
ArgumentError.checkNotNull(accountIds, 'accountIds');
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
final $payload = <String, dynamic>{
'accountIds': accountIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/member/detector/get',
exceptionFnMap: _exceptionFns,
);
return GetMemberDetectorsResponse.fromJson(response);
}