getLinkRoutingRule method

Future<GetLinkRoutingRuleResponse> getLinkRoutingRule({
  1. required String gatewayId,
  2. required String linkId,
  3. required String ruleId,
})

Retrieves the details of a routing rule for a link.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter gatewayId : The unique identifier of the gateway.

Parameter linkId : The unique identifier of the link.

Parameter ruleId : The unique identifier of the routing rule.

Implementation

Future<GetLinkRoutingRuleResponse> getLinkRoutingRule({
  required String gatewayId,
  required String linkId,
  required String ruleId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/responder-gateway/${Uri.encodeComponent(gatewayId)}/link/${Uri.encodeComponent(linkId)}/routing-rule/${Uri.encodeComponent(ruleId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetLinkRoutingRuleResponse.fromJson(response);
}