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)


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

field :name

#rulesString (readonly)

Raw HCL policy.

Examples:

Display the list of rules

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

Returns:

  • (String)


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

field :rules