fastly.getDomainsV1
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.getDomainsV1({});
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_v1()
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.GetDomainsV1(ctx, &fastly.GetDomainsV1Args{}, 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.GetDomainsV1.Invoke();
return new Dictionary<string, object?>
{
["allDomains"] = example.Apply(getDomainsV1Result => getDomainsV1Result.Domains),
["totalDomains"] = example.Apply(getDomainsV1Result => getDomainsV1Result.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.GetDomainsV1Args;
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.getDomainsV1(GetDomainsV1Args.builder()
.build());
ctx.export("allDomains", example.domains());
ctx.export("totalDomains", example.total());
}
}
variables:
example:
fn::invoke:
function: fastly:getDomainsV1
arguments: {}
outputs:
allDomains: ${example.domains}
totalDomains: ${example.total}
Using getDomainsV1
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 getDomainsV1(args: GetDomainsV1Args, opts?: InvokeOptions): Promise<GetDomainsV1Result>
function getDomainsV1Output(args: GetDomainsV1OutputArgs, opts?: InvokeOptions): Output<GetDomainsV1Result>def get_domains_v1(total: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsV1Result
def get_domains_v1_output(total: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsV1Result]func GetDomainsV1(ctx *Context, args *GetDomainsV1Args, opts ...InvokeOption) (*GetDomainsV1Result, error)
func GetDomainsV1Output(ctx *Context, args *GetDomainsV1OutputArgs, opts ...InvokeOption) GetDomainsV1ResultOutput> Note: This function is named GetDomainsV1 in the Go SDK.
public static class GetDomainsV1
{
public static Task<GetDomainsV1Result> InvokeAsync(GetDomainsV1Args args, InvokeOptions? opts = null)
public static Output<GetDomainsV1Result> Invoke(GetDomainsV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainsV1Result> getDomainsV1(GetDomainsV1Args args, InvokeOptions options)
public static Output<GetDomainsV1Result> getDomainsV1(GetDomainsV1Args args, InvokeOptions options)
fn::invoke:
function: fastly:index/getDomainsV1:getDomainsV1
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.
getDomainsV1 Result
The following output properties are available:
- Domains
List<Get
Domains V1Domain> - 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 V1Domain - 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 V1Domain> - 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 V1Domain[] - 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 V1Domain] - 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
GetDomainsV1Domain
- 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.
