terraform-provider-mozoutmz/docs/data-sources/servers.md
2026-11-28 15:28:10 +02:00

30 lines
575 B
Markdown

---
page_title: "mozoutmz_servers Data Source - MozOut Mozambique"
subcategory: "VPS"
description: |-
The VPS servers of the account.
---
# mozoutmz_servers (Data Source)
The active and suspended VPS servers of the account, newest first.
## Example Usage
```terraform
data "mozoutmz_servers" "all" {}
output "ips" {
value = { for s in data.mozoutmz_servers.all.servers : s.name => s.ip }
}
```
## Schema
### Optional
- `status` (String) `active` or `suspended`.
### Read-Only
- `servers` (List of Object) `id`, `name`, `status`, `product`, `ip`, `power_state`.