From 0080273558be3cc683da619bd5e6ea6edaefbbea Mon Sep 17 00:00:00 2001 From: Haroon-Dweikat-Ntx Date: Wed, 25 Dec 2024 12:15:22 +0200 Subject: [PATCH] unregister cluster example --- examples/unregister_cluster_v2/main.tf | 23 +++++++++++++++++++ .../unregister_cluster_v2/terraform.tfvars | 5 ++++ examples/unregister_cluster_v2/variables.tf | 13 +++++++++++ 3 files changed, 41 insertions(+) create mode 100644 examples/unregister_cluster_v2/main.tf create mode 100644 examples/unregister_cluster_v2/terraform.tfvars create mode 100644 examples/unregister_cluster_v2/variables.tf 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 +}