---
layout: "fastly"
page_title: "Fastly: fastly_domains"
sidebar_current: "docs-fastly-datasource-fastly_domains"
description: |-
  Get information on versionless domains.
---

# fastly_domains

Use this data source to get information about versionless domains.

## Example Usage

```terraform
data "fastly_domains" "example" {
}

output "all_domains" {
  value = data.fastly_domains.example.domains
}

output "total_domains" {
  value = data.fastly_domains.example.total
}
```

[1]: https://www.fastly.com/documentation/reference/api/domain-management/domains/

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `total` (Number) The total number of domains returned.

### Read-Only

- `domains` (Set of Object) A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service. (see [below for nested schema](#nestedatt--domains))
- `id` (String) The ID of this resource.

<a id="nestedatt--domains"></a>
### Nested Schema for `domains`

Read-Only:

- `fqdn` (String)
- `id` (String)
- `service_id` (String)