» Nutanix Provider
The provider is used to interact with the many resources supported by Nutanix. The provider needs to be configured with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
» Example Usage
provider "nutanix" {
username = "xxxx"
password = "xxxx"
endpoint = "xxxx"
insecure = true
port = 9440
wait_timeout = 10
}
» Authentication
The Nutanix provider offers a flexible means of providing credentials for authentication. The following methods are supported, in this order, and explained below:
» Static credentials
Static credentials can be provided by adding the fowlloing attributes in-line in the Nutanix provider block:
Usage:
provider "nutanix" {
username = "xxxx"
password = "xxxx"
endpoint = "xxxx"
insecure = true
port = 9440
wait_timeout = 10 //Optional
proxy_url = "xxxx" //Optional
}
» Environment variables
You can provide your credentials via environment variables, representing your Nutanix authentication.
provider "nutanix" {}
Usage:
$ export NUTANIX_USERNAME="xxxx"
$ export NUTANIX_PASSWORD="xxxx"
$ export NUTANIX_INSECURE="xxxx"
$ export NUTANIX_PORT="xxxx"
$ export NUTANIX_ENDPOINT="xxxx"
$ export NUTANIX_WAIT_TIMEOUT = "xxx"
$ export NUTANIX_PROXY_URL = "xxx"
$ terraform plan