Class: Vault::SealStatus

Inherits:
Response show all
Defined in:
lib/vault/api/sys/seal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Vault::Response

Instance Attribute Details

#nFixnum

Total number of unseal keys.

Examples:

Get the total number of keys

status.n #=> 5

Returns:

  • (Fixnum)


33
# File 'lib/vault/api/sys/seal.rb', line 33

field :n

#progressFixnum

Number of keys that have been entered.

Examples:

Get the current unseal progress

status.progress #=> 2

Returns:

  • (Fixnum)


42
# File 'lib/vault/api/sys/seal.rb', line 42

field :progress

#tFixnum

Threshold of keys required to unseal the Vault.

Examples:

Get the threshold of keys

status.t #=> 3

Returns:

  • (Fixnum)


24
# File 'lib/vault/api/sys/seal.rb', line 24

field :t

Instance Method Details

#sealed?Boolean

Returns if the Vault is sealed.

Examples:

Check if the Vault is sealed

status.sealed? #=> true

Returns:

  • (Boolean)


15
# File 'lib/vault/api/sys/seal.rb', line 15

field :sealed, as: :sealed?