diff --git a/examples/unregister_cluster_v2/main.tf b/examples/unregister_cluster_v2/main.tf new file mode 100644 index 000000000..d9b5c9ca8 --- /dev/null +++ b/examples/unregister_cluster_v2/main.tf @@ -0,0 +1,23 @@ +terraform { + required_providers { + nutanix = { + source = "nutanix/nutanix" + version = "2.1" + } + } +} + +#defining nutanix configuration +provider "nutanix" { + username = var.nutanix_username + password = var.nutanix_password + endpoint = var.nutanix_endpoint + port = 9440 + insecure = true +} + + +resource "nutanix_unregister_cluster_v2 " "pc"{ + pc_ext_id = "" + ext_id = "" +} \ No newline at end of file diff --git a/examples/unregister_cluster_v2/terraform.tfvars b/examples/unregister_cluster_v2/terraform.tfvars new file mode 100644 index 000000000..867888ffc --- /dev/null +++ b/examples/unregister_cluster_v2/terraform.tfvars @@ -0,0 +1,5 @@ +#define values to the variables to be used in terraform file +nutanix_username = "admin" +nutanix_password = "password" +nutanix_endpoint = "10.xx.xx.xx" +nutanix_port = 9440 diff --git a/examples/unregister_cluster_v2/variables.tf b/examples/unregister_cluster_v2/variables.tf new file mode 100644 index 000000000..dcd130ec8 --- /dev/null +++ b/examples/unregister_cluster_v2/variables.tf @@ -0,0 +1,13 @@ +#define the type of variables to be used in terraform file +variable "nutanix_username" { + type = string +} +variable "nutanix_password" { + type = string +} +variable "nutanix_endpoint" { + type = string +} +variable "nutanix_port" { + type = string +}