|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "flashblade_audit_object_store_policy Resource - flashblade" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Manages a FlashBlade audit object store policy that controls audit logging for object store operations. |
| 7 | +--- |
| 8 | + |
| 9 | +# flashblade_audit_object_store_policy (Resource) |
| 10 | + |
| 11 | +Manages a FlashBlade audit object store policy that controls audit logging for object store operations. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "flashblade_audit_object_store_policy" "example" { |
| 17 | + name = "my-audit-policy" |
| 18 | + enabled = true |
| 19 | +
|
| 20 | + log_targets = ["my-log-target"] |
| 21 | +} |
| 22 | +``` |
| 23 | + |
| 24 | +<!-- schema generated by tfplugindocs --> |
| 25 | +## Schema |
| 26 | + |
| 27 | +### Required |
| 28 | + |
| 29 | +- `name` (String) The name of the audit object store policy. Not renameable; changing forces replacement. |
| 30 | + |
| 31 | +### Optional |
| 32 | + |
| 33 | +- `enabled` (Boolean) Whether the audit object store policy is enabled. |
| 34 | +- `log_targets` (List of String) List of log target names to receive audit events from this policy. |
| 35 | +- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts)) |
| 36 | + |
| 37 | +### Read-Only |
| 38 | + |
| 39 | +- `id` (String) The unique identifier of the audit object store policy. |
| 40 | +- `is_local` (Boolean) Whether the policy is defined on the local array (read-only). |
| 41 | +- `policy_type` (String) The type of the policy (e.g. 'audit'). Read-only, set by the array. |
| 42 | + |
| 43 | +<a id="nestedatt--timeouts"></a> |
| 44 | +### Nested Schema for `timeouts` |
| 45 | + |
| 46 | +Optional: |
| 47 | + |
| 48 | +- `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). |
| 49 | +- `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. |
| 50 | +- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. |
| 51 | +- `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). |
| 52 | + |
| 53 | +## Import |
| 54 | + |
| 55 | +Import is supported using the following syntax: |
| 56 | + |
| 57 | +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: |
| 58 | + |
| 59 | +```shell |
| 60 | +terraform import flashblade_audit_object_store_policy.example my-audit-policy |
| 61 | +``` |
0 commit comments