triton_datacenter

The triton_datacenter data source queries Triton for Data Center information.

Example Usages

Find current Data Center endpoint URL:

# Declare the data source.
data "triton_datacenter" "current" {}

# Access current endpoint URL using output from the data source.
output "endpoint" {
  value = "${data.triton_datacenter.current.endpoint}"
}

Argument Reference

There are no arguments available for this data source.

Attribute Reference

The following attributes are supported:

  • name - (string) The name of the Data Center.

  • endpoint - (string) The endpoint URL of the Data Center.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/triton/d/triton_datacenter.html