使用 CloudHSM CLI 设置令牌超时时间
使用 CloudHSM CLI 中的 quorum token-sign set-timeout 命令为每种令牌类型设置令牌超时期限(以秒为单位)。
用户类型
以下用户均可运行此命令。
-
Admin
语法
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')
示例
以下示例将显示如何使用 quorum token-sign set-timeout 命令设置令牌超时期限。
aws-cloudhsm >
quorum token-sign set-timeout --generated 900
{ "error_code": 0, "data": "Set token timeout successful" }