Viewing docs for Fastly v11.4.1
published on Friday, Feb 27, 2026 by Pulumi
published on Friday, Feb 27, 2026 by Pulumi
Viewing docs for Fastly v11.4.1
published on Friday, Feb 27, 2026 by Pulumi
published on Friday, Feb 27, 2026 by Pulumi
Use this data source to get information about versionless domains.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const example = fastly.getDomains({});
export const allDomains = example.then(example => example.domains);
export const totalDomains = example.then(example => example.total);
import pulumi
import pulumi_fastly as fastly
example = fastly.get_domains()
pulumi.export("allDomains", example.domains)
pulumi.export("totalDomains", example.total)
package main
import (
"github.com/pulumi/pulumi-fastly/sdk/v11/go/fastly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := fastly.GetDomains(ctx, &fastly.GetDomainsArgs{}, nil)
if err != nil {
return err
}
ctx.Export("allDomains", example.Domains)
ctx.Export("totalDomains", example.Total)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fastly = Pulumi.Fastly;
return await Deployment.RunAsync(() =>
{
var example = Fastly.GetDomains.Invoke();
return new Dictionary<string, object?>
{
["allDomains"] = example.Apply(getDomainsResult => getDomainsResult.Domains),
["totalDomains"] = example.Apply(getDomainsResult => getDomainsResult.Total),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fastly.FastlyFunctions;
import com.pulumi.fastly.inputs.GetDomainsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = FastlyFunctions.getDomains(GetDomainsArgs.builder()
.build());
ctx.export("allDomains", example.domains());
ctx.export("totalDomains", example.total());
}
}
variables:
example:
fn::invoke:
function: fastly:getDomains
arguments: {}
outputs:
allDomains: ${example.domains}
totalDomains: ${example.total}
Using getDomains
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
function getDomainsOutput(args: GetDomainsOutputArgs, opts?: InvokeOptions): Output<GetDomainsResult>def get_domains(total: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsResult
def get_domains_output(total: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsResult]func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
func GetDomainsOutput(ctx *Context, args *GetDomainsOutputArgs, opts ...InvokeOption) GetDomainsResultOutput> Note: This function is named GetDomains in the Go SDK.
public static class GetDomains
{
public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
public static Output<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
fn::invoke:
function: fastly:index/getDomains:getDomains
arguments:
# arguments dictionaryThe following arguments are supported:
- Total int
- The total number of domains returned.
- Total int
- The total number of domains returned.
- total Integer
- The total number of domains returned.
- total number
- The total number of domains returned.
- total int
- The total number of domains returned.
- total Number
- The total number of domains returned.
getDomains Result
The following output properties are available:
- Domains
List<Get
Domains Domain> - A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total int
- The total number of domains returned.
- Domains
[]Get
Domains Domain - A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total int
- The total number of domains returned.
- domains
List<Get
Domains Domain> - A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
- id String
- The provider-assigned unique ID for this managed resource.
- total Integer
- The total number of domains returned.
- domains
Get
Domains Domain[] - A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
- id string
- The provider-assigned unique ID for this managed resource.
- total number
- The total number of domains returned.
- domains
Sequence[Get
Domains Domain] - A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
- id str
- The provider-assigned unique ID for this managed resource.
- total int
- The total number of domains returned.
- domains List<Property Map>
- A domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
- id String
- The provider-assigned unique ID for this managed resource.
- total Number
- The total number of domains returned.
Supporting Types
GetDomainsDomain
- fqdn str
- The fully-qualified domain name for your domain.
- id str
- Domain Identifier (UUID).
- service_
id str - The 'service_id' associated with your domain or 'null' if there is no association.
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastlyTerraform Provider.
Viewing docs for Fastly v11.4.1
published on Friday, Feb 27, 2026 by Pulumi
published on Friday, Feb 27, 2026 by Pulumi
