Definir o tempo limite do token usando a CLI do CloudHSM
Use o comando do quorum token-sign set-timeout na CLI do CloudHSM para definir o período de tempo limite do token em segundos para todos os tipos de token.
Tipo de usuário
Os usuários a seguir podem executar este comando.
-
Administrador
Sintaxe
aws-cloudhsm >
help quorum token-sign set-timeout
Set timeout duration in seconds for token validity Usage: quorum token-sign set-timeout <--generated
<GENERATED>
|--approved<APPROVED>
> Options: --cluster-id<CLUSTER_ID>
Unique Id to choose which of the clusters in the config file to run the operation against. If not provided, will fall back to the value provided when interactive mode was started, or error --generated<GENERATED>
Timeout period in seconds for a generated (non-approved) token to be approved --approved<APPROVED>
Timeout period in seconds for an approved token to be used to execute a quorum operation -h, --help Print help (see a summary with '-h')
Exemplo
O exemplo a seguir mostra como usar o comando quorum token-sign set-timeout para obter o período de tempo limite do token.
aws-cloudhsm >
quorum token-sign set-timeout --generated 900
{ "error_code": 0, "data": "Set token timeout successful" }