Datacenter

Get information on a IonosCloud Data Centers

The data centers data source can be used to search for and return an existing Virtual Data Center. You can provide a string for the name and location parameters which will be compared with provisioned Virtual Data Centers. If a single match is found, it will be returned. If your search results in multiple matches, the first result found will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.

Example Usage

data "ionoscloud_datacenter" "dc_example" {
  name     = "test_dc"
  location = "us"
}

Argument Reference

  • id - (Optional) Id of an existing Virtual Data Center that you want to search for.

  • name - (Optional) Name of an existing Virtual Data Center that you want to search for.

  • location - (Optional) Id of the existing Virtual Data Center's location.

Either name, location or id must be provided. If none, the datasource will return an error.

Attributes Reference

The following attributes are returned by the datasource:

  • id - UUID of the Virtual Data Center

  • name - The name of the Virtual Data Center.

  • location - The regional location where the Virtual Data Center will be created.

  • description - Description for the Virtual Data Center.

  • version - The version of that Data Center. Gets incremented with every change

  • features - List of features supported by the location this data center is part of

  • sec_auth_protection - Boolean value representing if the data center requires extra protection e.g. two factor protection

Last updated