getIPSet method

Future<GetIPSetResponse> getIPSet({
  1. required String detectorId,
  2. required String ipSetId,
})

Retrieves the IPSet specified by the ipSetId.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter detectorId : The unique ID of the detector that the IPSet is associated with.

Parameter ipSetId : The unique ID of the IPSet to retrieve.

Implementation

Future<GetIPSetResponse> getIPSet({
  required String detectorId,
  required String ipSetId,
}) async {
  ArgumentError.checkNotNull(detectorId, 'detectorId');
  _s.validateStringLength(
    'detectorId',
    detectorId,
    1,
    300,
    isRequired: true,
  );
  ArgumentError.checkNotNull(ipSetId, 'ipSetId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/detector/${Uri.encodeComponent(detectorId)}/ipset/${Uri.encodeComponent(ipSetId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetIPSetResponse.fromJson(response);
}