selectel_dedicated_configuration_v1
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
Provides a list of server configurations available. For more information about server configurations, see the official Selectel documentation.
Example Usage
Find configuration ID by name
data "selectel_dedicated_servers_configuration_v1" "server_config" {
project_id = selectel_vpc_project_v2.project_1.id
deep_filter = "{\"name\":\"CL25-NVMe\"}"
}
Search available configurations with additional parameters
data "selectel_dedicated_servers_configuration_v1" "server_config" {
project_id = selectel_vpc_project_v2.project_1.id
deep_filter = <<EOT
{
"gpu": {
"count": 1
},
"state": "Active",
}
EOT
}
Search available configurations with additional parameters from file
data "selectel_dedicated_servers_configuration_v1" "server_config" {
project_id = selectel_vpc_project_v2.project_1.id
deep_filter = file("filter.json")
}
Argument Reference
-
project_id— (Required) Unique identifier of the associated project. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects. -
deep_filter— (Optional) JSON filter. You can use it to filter the results. Arrays filter checks inclusion, not the full equality. See an example of the filter values in the API documentation. -
deep_filter— (Optional) JSON filter for available locations:-
You can use only the name of the configuration to get the results. To get the name of the configuration, in the Selectel site.
-
You can use additional parameters or their combinations to filter available configurations. You can set them in place or use another file. See an example of the filter values in the API documentation
-
Attributes Reference
-
configurations— List of the available configurations:-
id— Unique identifier of the configuration. -
name— Configuration name.
-