|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "simplemdm_customdeclaration Resource - simplemdm" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Custom Declaration resource can be used to manage Custom Declaration. Can be used together with Device(s) and Group(s) and set addition details regarding Custom Declaration. |
| 7 | +--- |
| 8 | + |
| 9 | +# simplemdm_customdeclaration (Resource) |
| 10 | + |
| 11 | +Custom Declaration resource can be used to manage Custom Declaration. Can be used together with Device(s) and Group(s) and set addition details regarding Custom Declaration. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "simplemdm_customdeclaration" "test" { |
| 17 | + name = "testdeclaration" |
| 18 | + declaration = jsonencode(jsondecode(file("./testfiles/testdeclaration.json"))) |
| 19 | + userscope = true |
| 20 | + attributesupport = true |
| 21 | + escapeattributes = true |
| 22 | + declaration_type = "com.apple.configuration.safari.bookmarks" |
| 23 | + activation_predicate = "" |
| 24 | +} |
| 25 | +``` |
| 26 | + |
| 27 | +<!-- schema generated by tfplugindocs --> |
| 28 | +## Schema |
| 29 | + |
| 30 | +### Required |
| 31 | + |
| 32 | +- `declaration` (String) Required. Can be string or you can use function 'file' or 'templatefile' to load string from file (see examples folder). Example: declaration = file("./declarations/declaration.json") or declaration = <<-EOT DECLARATION STRING EOT |
| 33 | +- `declaration_type` (String) Required. The type of declaration being defined |
| 34 | +- `name` (String) Required. A name for the declaration. Example: "My First declaration by terraform" |
| 35 | + |
| 36 | +### Optional |
| 37 | + |
| 38 | +- `activation_predicate` (String) Optional. A predicate format string as Apple's Predicate Programming describes. The activation only installs when the predicate evaluates to true or if it is left blank. |
| 39 | +- `attributesupport` (Boolean) Optional. A boolean true or false. When enabled, SimpleMDM will process variables in the uploaded declaration. Defaults to false |
| 40 | +- `escapeattributes` (Boolean) Optional. A boolean true or false. When enabled, SimpleMDM escape the values of the custom variables in the uploaded declaration. Defaults to false |
| 41 | +- `userscope` (Boolean) Optional. A boolean true or false. If false, deploy as a device declaration instead of a user declaration for macOS devices. Defaults to true. |
| 42 | + |
| 43 | +### Read-Only |
| 44 | + |
| 45 | +- `id` (String) ID of a Custom Declaration in SimpleMDM |
0 commit comments