Источник данных servercore_dedicated_servers_v1
Provides a list of dedicated servers in the project. Learn more about About dedicated servers.
Example Usage
data "servercore_dedicated_servers_v1" "servers_1" {
project_id = servercore_project_v2.project_1.id
filter {
name = "production-web-01"
ip = "192.168.1.100"
location_id = "data.servercore_location_v1.server_location.locations[0].id"
configuration = "EL50 SSD"
public_subnet = "data.servercore_dedicated_public_subnet_v1.subnets.subnets[0].id"
private_subnet = "data.servercore_dedicated_private_subnet_v1.subnets.subnets[0].id"
}
}
Argument Reference
-
project_id— (Required) Unique identifier of the associated project. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects. -
filter— (Optional) Values to filter available servers:-
name— (Optional) Name of the server. Supports partial match, case-insensitive. -
ip— (Optional) IP address of the server. -
location_id— (Optional) Unique identifier of the location. Retrieved from the servercore_dedicated_location_v1 data source. -
configuration— (Optional) Partial, case-insensitive substring of the configuration display name, for example,EL50 SSD. Matches any server whose configuration name contains the specified string. -
public_subnet— (Optional) Unique identifier of a public subnet to which the server belongs. Retrieved from the servercore_dedicated_public_subnet_v1. -
private_subnet— (Optional) Unique identifier of a private subnet to which the server belongs. Retrieved from the servercore_dedicated_private_subnet_v1.
-
Attributes Reference
-
servers— List of the available servers:-
id— Unique identifier of the server. -
name— Server name. -
configuration_id— Configuration ID of the server. -
location_id— Location ID of the server. -
reserved_public_ips— List of reserved public IP addresses for the server. -
reserved_private_ips— List of reserved private IP addresses for the server.
-