Class: Vault::Policy

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Vault::Response

Instance Attribute Details

#nameString (readonly)

Name of the policy.

Examples:

Get the name of the policy

policy.name #=> "default"

Returns:

  • (String)


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

field :name

#rulesString (readonly)

Raw HCL policy.

Examples:

Display the list of rules

policy.rules #=> "path \"secret/foo\" {}"

Returns:

  • (String)


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

field :rules