IpBlock

Get information on a IonosCloud Ip Block

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

Example Usage

By ID

data "ionoscloud_ipblock" "example" {
  id = <ipblock_id>
}

By Name

data "ionoscloud_ipblock" "example" {
  name = "IP Block Name"
}

By Location

data "ionoscloud_ipblock" "example" {
  location = "us/las"
}

By Name & Location

data "ionoscloud_ipblock" "example" {
  name      = "IP Block Name"
  location  = "us/las"
}

Argument reference

  • id - (Optional) ID of an existing Ip Block that you want to search for.

  • name - (Optional) Name of an existing Ip Block that you want to search for.

  • location - (Optional) The regional location for this IP Block: us/las, us/ewr, de/fra, de/fkb.

Attributes Reference

  • id - The id of Ip Block

  • name - The name of Ip Block

  • location - The regional location for this IP Block: us/las, us/ewr, de/fra, de/fkb.

  • size - The number of IP addresses to reserve for this block.

  • ips - The list of IP addresses associated with this block.

  • ip_consumers Read-Only attribute. Lists consumption detail of an individual ip

    • ip

    • mac

    • nic_uuid

    • server_id

    • server_name

    • datacenter_id

    • datacenter_name

    • k8s_nodepool_uuid

    • k8s_cluster_uuid

Last updated