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)


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

field :n

#progressFixnum

Number of keys that have been entered.

Examples:

Get the current unseal progress

status.progress #=> 2

Returns:

  • (Fixnum)


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

field :progress

#tFixnum

Threshold of keys required to unseal the Vault.

Examples:

Get the threshold of keys

status.t #=> 3

Returns:

  • (Fixnum)


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

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)


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

field :sealed, as: :sealed?