1. Packages
  2. Fastly Provider
  3. API Docs
  4. getTlsDomain
Fastly v9.1.0 published on Friday, Apr 18, 2025 by Pulumi

fastly.getTlsDomain

Explore with Pulumi AI

Fastly v9.1.0 published on Friday, Apr 18, 2025 by Pulumi

Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";

const domain = fastly.getTlsDomain({
    domain: "example.com",
});
Copy
import pulumi
import pulumi_fastly as fastly

domain = fastly.get_tls_domain(domain="example.com")
Copy
package main

import (
	"github.com/pulumi/pulumi-fastly/sdk/v9/go/fastly"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fastly.GetTlsDomain(ctx, &fastly.GetTlsDomainArgs{
			Domain: "example.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fastly = Pulumi.Fastly;

return await Deployment.RunAsync(() => 
{
    var domain = Fastly.GetTlsDomain.Invoke(new()
    {
        Domain = "example.com",
    });

});
Copy
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.GetTlsDomainArgs;
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 domain = FastlyFunctions.getTlsDomain(GetTlsDomainArgs.builder()
            .domain("example.com")
            .build());

    }
}
Copy
variables:
  domain:
    fn::invoke:
      function: fastly:getTlsDomain
      arguments:
        domain: example.com
Copy

Using getTlsDomain

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 getTlsDomain(args: GetTlsDomainArgs, opts?: InvokeOptions): Promise<GetTlsDomainResult>
function getTlsDomainOutput(args: GetTlsDomainOutputArgs, opts?: InvokeOptions): Output<GetTlsDomainResult>
Copy
def get_tls_domain(domain: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetTlsDomainResult
def get_tls_domain_output(domain: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetTlsDomainResult]
Copy
func GetTlsDomain(ctx *Context, args *GetTlsDomainArgs, opts ...InvokeOption) (*GetTlsDomainResult, error)
func GetTlsDomainOutput(ctx *Context, args *GetTlsDomainOutputArgs, opts ...InvokeOption) GetTlsDomainResultOutput
Copy

> Note: This function is named GetTlsDomain in the Go SDK.

public static class GetTlsDomain 
{
    public static Task<GetTlsDomainResult> InvokeAsync(GetTlsDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetTlsDomainResult> Invoke(GetTlsDomainInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTlsDomainResult> getTlsDomain(GetTlsDomainArgs args, InvokeOptions options)
public static Output<GetTlsDomainResult> getTlsDomain(GetTlsDomainArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: fastly:index/getTlsDomain:getTlsDomain
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain This property is required. string
Domain name to look up activations, certificates and subscriptions for.
Domain This property is required. string
Domain name to look up activations, certificates and subscriptions for.
domain This property is required. String
Domain name to look up activations, certificates and subscriptions for.
domain This property is required. string
Domain name to look up activations, certificates and subscriptions for.
domain This property is required. str
Domain name to look up activations, certificates and subscriptions for.
domain This property is required. String
Domain name to look up activations, certificates and subscriptions for.

getTlsDomain Result

The following output properties are available:

Domain string
Domain name to look up activations, certificates and subscriptions for.
Id string
The provider-assigned unique ID for this managed resource.
TlsActivationIds List<string>
IDs of the activations associated with the domain.
TlsCertificateIds List<string>
IDs of the certificates associated with the domain.
TlsSubscriptionIds List<string>
IDs of the subscriptions associated with the domain.
Domain string
Domain name to look up activations, certificates and subscriptions for.
Id string
The provider-assigned unique ID for this managed resource.
TlsActivationIds []string
IDs of the activations associated with the domain.
TlsCertificateIds []string
IDs of the certificates associated with the domain.
TlsSubscriptionIds []string
IDs of the subscriptions associated with the domain.
domain String
Domain name to look up activations, certificates and subscriptions for.
id String
The provider-assigned unique ID for this managed resource.
tlsActivationIds List<String>
IDs of the activations associated with the domain.
tlsCertificateIds List<String>
IDs of the certificates associated with the domain.
tlsSubscriptionIds List<String>
IDs of the subscriptions associated with the domain.
domain string
Domain name to look up activations, certificates and subscriptions for.
id string
The provider-assigned unique ID for this managed resource.
tlsActivationIds string[]
IDs of the activations associated with the domain.
tlsCertificateIds string[]
IDs of the certificates associated with the domain.
tlsSubscriptionIds string[]
IDs of the subscriptions associated with the domain.
domain str
Domain name to look up activations, certificates and subscriptions for.
id str
The provider-assigned unique ID for this managed resource.
tls_activation_ids Sequence[str]
IDs of the activations associated with the domain.
tls_certificate_ids Sequence[str]
IDs of the certificates associated with the domain.
tls_subscription_ids Sequence[str]
IDs of the subscriptions associated with the domain.
domain String
Domain name to look up activations, certificates and subscriptions for.
id String
The provider-assigned unique ID for this managed resource.
tlsActivationIds List<String>
IDs of the activations associated with the domain.
tlsCertificateIds List<String>
IDs of the certificates associated with the domain.
tlsSubscriptionIds List<String>
IDs of the subscriptions associated with the domain.

Package Details

Repository
Fastly pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.
Fastly v9.1.0 published on Friday, Apr 18, 2025 by Pulumi