getDomainName method

Future<GetDomainNameResponse> getDomainName({
  1. required String domainName,
})

Retrieves a custom DomainName object.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalFailureException. May throw NotFoundException.

Parameter domainName : The domain name.

Implementation

Future<GetDomainNameResponse> getDomainName({
  required String domainName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/domainnames/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDomainNameResponse.fromJson(response);
}