2015-11-16 19:44:39 +01:00
|
|
|
---
|
|
|
|
layout: "vsphere"
|
|
|
|
page_title: "VMware vSphere: vsphere_folder"
|
|
|
|
sidebar_current: "docs-vsphere-resource-folder"
|
|
|
|
description: |-
|
|
|
|
Provides a VMware vSphere virtual machine folder resource. This can be used to create and delete virtual machine folders.
|
|
|
|
---
|
|
|
|
|
2016-03-10 00:12:16 +01:00
|
|
|
# vsphere\_folder
|
2015-11-16 19:44:39 +01:00
|
|
|
|
|
|
|
Provides a VMware vSphere virtual machine folder resource. This can be used to create and delete virtual machine folders.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2015-11-16 19:44:39 +01:00
|
|
|
resource "vsphere_folder" "web" {
|
2017-02-18 23:48:50 +01:00
|
|
|
path = "terraform_web_folder"
|
2015-11-16 19:44:39 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `path` - (Required) The path of the folder to be created (relative to the datacenter root); should not begin or end with a "/"
|
|
|
|
* `datacenter` - (Optional) The name of a Datacenter in which the folder will be created
|
|
|
|
* `existing_path` - (Computed) The path of any parent folder segments which existed at the time this folder was created; on a
|
|
|
|
destroy action, the (pre-) existing path is not removed.
|