disableTrustAnchor method
Disables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized.
Required permissions:
rolesanywhere:DisableTrustAnchor.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
Parameter trustAnchorId :
The unique identifier of the trust anchor.
Implementation
Future<TrustAnchorDetailResponse> disableTrustAnchor({
required String trustAnchorId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/trustanchor/${Uri.encodeComponent(trustAnchorId)}/disable',
exceptionFnMap: _exceptionFns,
);
return TrustAnchorDetailResponse.fromJson(response);
}