0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-30 07:15:39 +00:00
terraform-provider-proxmox/templates/resources/virtual_environment_vm2.md.tmpl
Pavel Boldyrev b6af836386
misc: update documentation
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-05-05 22:27:18 -04:00

39 lines
1.1 KiB
Cheetah

---
layout: page
title: {{.Name}}
parent: Resources
subcategory: Virtual Environment
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---
# {{.Type}}: {{.Name}}
!> **DO NOT USE**
{{ .Description | trimspace }}
-> Many attributes are marked as **optional** _and_ **computed** in the schema,
hence you may seem added to the plan with "(known after apply)" status, even if they are not set in the configuration.
This is done to support the `clone` operation, when a VM is created from an existing one,
and attributes of the original VM are copied to the new one.<br><br>
Computed attributes allow the provider to set those attributes without user input.
The attributes are marked as optional to allow the user to set (or overwrite) them if needed.
In order to remove the computed attribute from the plan, you can set it to an empty value (e.g. `""` for string, `[]` for collection).
{{ if .HasExample -}}
## Example Usage
{{ codefile "terraform" .ExampleFile }}
{{- end }}
{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}
## Import
Import is supported using the following syntax:
{{ codefile "shell" .ImportFile }}
{{- end }}