Skip to main content
Version: Next

VMware vSphere Folder

Description

The vsphere_folder resource can be used to manage vSphere inventory folders.

Examples

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: vsphere-test-folder
spec:
components:
- name: folder-comp
type: vsphere-folder
properties:
folder_path: terraform-test-folder
folder_type: vm

Specification

Properties

NameDescriptionTypeRequiredDefault
folder_pathThe path of the folder to be created.stringfalse
folder_typeThe type of folder to create. Allowed options: datacenter, host, vm, datastore and network.stringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to.writeConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written to.stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to.stringfalse

Outputs

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
FOLDER