getSipRule method
Retrieves the details of a SIP rule, such as the rule ID, name, triggers, and target endpoints.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter sipRuleId
:
The SIP rule ID.
Implementation
Future<GetSipRuleResponse> getSipRule({
required String sipRuleId,
}) async {
ArgumentError.checkNotNull(sipRuleId, 'sipRuleId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/sip-rules/${Uri.encodeComponent(sipRuleId)}',
exceptionFnMap: _exceptionFns,
);
return GetSipRuleResponse.fromJson(response);
}