1. Packages
  2. Fastly Provider
  3. API Docs
  4. getTlsActivation
Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi

fastly.getTlsActivation

Explore with Pulumi AI

fastly logo
Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi

    Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.

    Warning: The data source’s filters are applied using an AND boolean operator, so depending on the combination of filters, they may become mutually exclusive. The exception to this is id which must not be specified in combination with any of the others.

    Note: If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const example = fastly.getTlsActivation({
        domain: "example.com",
    });
    
    import pulumi
    import pulumi_fastly as fastly
    
    example = fastly.get_tls_activation(domain="example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fastly.LookupTlsActivation(ctx, &fastly.LookupTlsActivationArgs{
    			Domain: pulumi.StringRef("example.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Fastly.GetTlsActivation.Invoke(new()
        {
            Domain = "example.com",
        });
    
    });
    
    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.GetTlsActivationArgs;
    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.getTlsActivation(GetTlsActivationArgs.builder()
                .domain("example.com")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: fastly:getTlsActivation
          Arguments:
            domain: example.com
    

    Using getTlsActivation

    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 getTlsActivation(args: GetTlsActivationArgs, opts?: InvokeOptions): Promise<GetTlsActivationResult>
    function getTlsActivationOutput(args: GetTlsActivationOutputArgs, opts?: InvokeOptions): Output<GetTlsActivationResult>
    def get_tls_activation(certificate_id: Optional[str] = None,
                           configuration_id: Optional[str] = None,
                           domain: Optional[str] = None,
                           id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetTlsActivationResult
    def get_tls_activation_output(certificate_id: Optional[pulumi.Input[str]] = None,
                           configuration_id: Optional[pulumi.Input[str]] = None,
                           domain: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetTlsActivationResult]
    func LookupTlsActivation(ctx *Context, args *LookupTlsActivationArgs, opts ...InvokeOption) (*LookupTlsActivationResult, error)
    func LookupTlsActivationOutput(ctx *Context, args *LookupTlsActivationOutputArgs, opts ...InvokeOption) LookupTlsActivationResultOutput

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

    public static class GetTlsActivation 
    {
        public static Task<GetTlsActivationResult> InvokeAsync(GetTlsActivationArgs args, InvokeOptions? opts = null)
        public static Output<GetTlsActivationResult> Invoke(GetTlsActivationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTlsActivationResult> getTlsActivation(GetTlsActivationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: fastly:index/getTlsActivation:getTlsActivation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string
    ID of the TLS Certificate used.
    ConfigurationId string
    ID of the TLS Configuration used.
    Domain string
    Domain that TLS was enabled on.
    Id string
    Fastly Activation ID. Conflicts with all other filters.
    CertificateId string
    ID of the TLS Certificate used.
    ConfigurationId string
    ID of the TLS Configuration used.
    Domain string
    Domain that TLS was enabled on.
    Id string
    Fastly Activation ID. Conflicts with all other filters.
    certificateId String
    ID of the TLS Certificate used.
    configurationId String
    ID of the TLS Configuration used.
    domain String
    Domain that TLS was enabled on.
    id String
    Fastly Activation ID. Conflicts with all other filters.
    certificateId string
    ID of the TLS Certificate used.
    configurationId string
    ID of the TLS Configuration used.
    domain string
    Domain that TLS was enabled on.
    id string
    Fastly Activation ID. Conflicts with all other filters.
    certificate_id str
    ID of the TLS Certificate used.
    configuration_id str
    ID of the TLS Configuration used.
    domain str
    Domain that TLS was enabled on.
    id str
    Fastly Activation ID. Conflicts with all other filters.
    certificateId String
    ID of the TLS Certificate used.
    configurationId String
    ID of the TLS Configuration used.
    domain String
    Domain that TLS was enabled on.
    id String
    Fastly Activation ID. Conflicts with all other filters.

    getTlsActivation Result

    The following output properties are available:

    CertificateId string
    ID of the TLS Certificate used.
    ConfigurationId string
    ID of the TLS Configuration used.
    CreatedAt string
    Timestamp (GMT) when TLS was enabled.
    Domain string
    Domain that TLS was enabled on.
    Id string
    Fastly Activation ID. Conflicts with all other filters.
    CertificateId string
    ID of the TLS Certificate used.
    ConfigurationId string
    ID of the TLS Configuration used.
    CreatedAt string
    Timestamp (GMT) when TLS was enabled.
    Domain string
    Domain that TLS was enabled on.
    Id string
    Fastly Activation ID. Conflicts with all other filters.
    certificateId String
    ID of the TLS Certificate used.
    configurationId String
    ID of the TLS Configuration used.
    createdAt String
    Timestamp (GMT) when TLS was enabled.
    domain String
    Domain that TLS was enabled on.
    id String
    Fastly Activation ID. Conflicts with all other filters.
    certificateId string
    ID of the TLS Certificate used.
    configurationId string
    ID of the TLS Configuration used.
    createdAt string
    Timestamp (GMT) when TLS was enabled.
    domain string
    Domain that TLS was enabled on.
    id string
    Fastly Activation ID. Conflicts with all other filters.
    certificate_id str
    ID of the TLS Certificate used.
    configuration_id str
    ID of the TLS Configuration used.
    created_at str
    Timestamp (GMT) when TLS was enabled.
    domain str
    Domain that TLS was enabled on.
    id str
    Fastly Activation ID. Conflicts with all other filters.
    certificateId String
    ID of the TLS Certificate used.
    configurationId String
    ID of the TLS Configuration used.
    createdAt String
    Timestamp (GMT) when TLS was enabled.
    domain String
    Domain that TLS was enabled on.
    id String
    Fastly Activation ID. Conflicts with all other filters.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi