getTrustAnchor method

Future<TrustAnchorDetailResponse> getTrustAnchor({
  1. required String trustAnchorId,
})

Gets a trust anchor.

Required permissions: rolesanywhere:GetTrustAnchor.

May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter trustAnchorId : The unique identifier of the trust anchor.

Implementation

Future<TrustAnchorDetailResponse> getTrustAnchor({
  required String trustAnchorId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/trustanchor/${Uri.encodeComponent(trustAnchorId)}',
    exceptionFnMap: _exceptionFns,
  );
  return TrustAnchorDetailResponse.fromJson(response);
}