enableTrustAnchor method

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

Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation.

Required permissions: rolesanywhere:EnableTrustAnchor.

May throw AccessDeniedException. May throw ResourceNotFoundException.

Parameter trustAnchorId : The unique identifier of the trust anchor.

Implementation

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