|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "stackit_sfs_export_policy Resource - stackit" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + SFS export policy resource schema. Must have a region specified in the provider configuration. |
| 7 | + ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources. |
| 8 | +--- |
| 9 | + |
| 10 | +# stackit_sfs_export_policy (Resource) |
| 11 | + |
| 12 | +SFS export policy resource schema. Must have a `region` specified in the provider configuration. |
| 13 | + |
| 14 | +~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources. |
| 15 | + |
| 16 | +## Example Usage |
| 17 | + |
| 18 | +```terraform |
| 19 | +resource "stackit_sfs_export_policy" "example" { |
| 20 | + project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" |
| 21 | + name = "example" |
| 22 | + rules = [ |
| 23 | + { |
| 24 | + ip_acl = ["172.16.0.0/24", "172.16.0.250/32"] |
| 25 | + order = 1 |
| 26 | + } |
| 27 | + ] |
| 28 | +} |
| 29 | +
|
| 30 | +# Only use the import statement, if you want to import an existing export policy |
| 31 | +import { |
| 32 | + to = stackit_sfs_export_policy.example |
| 33 | + id = "${var.project_id},${var.region},${var.policy_id}" |
| 34 | +} |
| 35 | +``` |
| 36 | + |
| 37 | +<!-- schema generated by tfplugindocs --> |
| 38 | +## Schema |
| 39 | + |
| 40 | +### Required |
| 41 | + |
| 42 | +- `name` (String) Name of the export policy. |
| 43 | +- `project_id` (String) STACKIT project ID to which the export policy is associated. |
| 44 | + |
| 45 | +### Optional |
| 46 | + |
| 47 | +- `region` (String) The resource region. If not defined, the provider region is used. |
| 48 | +- `rules` (Attributes List) (see [below for nested schema](#nestedatt--rules)) |
| 49 | + |
| 50 | +### Read-Only |
| 51 | + |
| 52 | +- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`policy_id`". |
| 53 | +- `policy_id` (String) Export policy ID |
| 54 | + |
| 55 | +<a id="nestedatt--rules"></a> |
| 56 | +### Nested Schema for `rules` |
| 57 | + |
| 58 | +Required: |
| 59 | + |
| 60 | +- `ip_acl` (List of String) IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP). |
| 61 | +- `order` (Number) Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied |
| 62 | + |
| 63 | +Optional: |
| 64 | + |
| 65 | +- `description` (String) Description of the Rule |
| 66 | +- `read_only` (Boolean) Flag to indicate if client IPs matching this rule can only mount the share in read only mode |
| 67 | +- `set_uuid` (Boolean) Flag to honor set UUID |
| 68 | +- `super_user` (Boolean) Flag to indicate if client IPs matching this rule have root access on the Share |
0 commit comments