getSipRule method

Future<GetSipRuleResponse> getSipRule({
  1. required String sipRuleId,
})

Retrieves the details of a SIP rule, such as the rule ID, name, triggers, and target endpoints.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter sipRuleId : The SIP rule ID.

Implementation

Future<GetSipRuleResponse> getSipRule({
  required String sipRuleId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/sip-rules/${Uri.encodeComponent(sipRuleId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSipRuleResponse.fromJson(response);
}