1. Packages
  2. Fastly Provider
  3. API Docs
  4. getTlsSubscription
Fastly v9.0.0 published on Tuesday, Apr 8, 2025 by Pulumi

fastly.getTlsSubscription

Explore with Pulumi AI

Fastly v9.0.0 published on Tuesday, Apr 8, 2025 by Pulumi

Use this data source to get information about a TLS subscription.

Example Usage

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

const example = fastly.getTlsSubscription({
    domains: ["example.com"],
});
Copy
import pulumi
import pulumi_fastly as fastly

example = fastly.get_tls_subscription(domains=["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.LookupTlsSubscription(ctx, &fastly.LookupTlsSubscriptionArgs{
			Domains: []string{
				"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 example = Fastly.GetTlsSubscription.Invoke(new()
    {
        Domains = new[]
        {
            "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.GetTlsSubscriptionArgs;
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.getTlsSubscription(GetTlsSubscriptionArgs.builder()
            .domains("example.com")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: fastly:getTlsSubscription
      arguments:
        domains:
          - example.com
Copy

Using getTlsSubscription

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 getTlsSubscription(args: GetTlsSubscriptionArgs, opts?: InvokeOptions): Promise<GetTlsSubscriptionResult>
function getTlsSubscriptionOutput(args: GetTlsSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetTlsSubscriptionResult>
Copy
def get_tls_subscription(certificate_authority: Optional[str] = None,
                         configuration_id: Optional[str] = None,
                         domains: Optional[Sequence[str]] = None,
                         id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetTlsSubscriptionResult
def get_tls_subscription_output(certificate_authority: Optional[pulumi.Input[str]] = None,
                         configuration_id: Optional[pulumi.Input[str]] = None,
                         domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetTlsSubscriptionResult]
Copy
func LookupTlsSubscription(ctx *Context, args *LookupTlsSubscriptionArgs, opts ...InvokeOption) (*LookupTlsSubscriptionResult, error)
func LookupTlsSubscriptionOutput(ctx *Context, args *LookupTlsSubscriptionOutputArgs, opts ...InvokeOption) LookupTlsSubscriptionResultOutput
Copy

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

public static class GetTlsSubscription 
{
    public static Task<GetTlsSubscriptionResult> InvokeAsync(GetTlsSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetTlsSubscriptionResult> Invoke(GetTlsSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTlsSubscriptionResult> getTlsSubscription(GetTlsSubscriptionArgs args, InvokeOptions options)
public static Output<GetTlsSubscriptionResult> getTlsSubscription(GetTlsSubscriptionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: fastly:index/getTlsSubscription:getTlsSubscription
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CertificateAuthority string
The entity that issues and certifies the TLS certificates for the subscription.
ConfigurationId string
ID of TLS configuration used to terminate TLS traffic.
Domains List<string>
List of domains on which to enable TLS.
Id string
ID of TLS subscription. Conflicts with all the other filters.
CertificateAuthority string
The entity that issues and certifies the TLS certificates for the subscription.
ConfigurationId string
ID of TLS configuration used to terminate TLS traffic.
Domains []string
List of domains on which to enable TLS.
Id string
ID of TLS subscription. Conflicts with all the other filters.
certificateAuthority String
The entity that issues and certifies the TLS certificates for the subscription.
configurationId String
ID of TLS configuration used to terminate TLS traffic.
domains List<String>
List of domains on which to enable TLS.
id String
ID of TLS subscription. Conflicts with all the other filters.
certificateAuthority string
The entity that issues and certifies the TLS certificates for the subscription.
configurationId string
ID of TLS configuration used to terminate TLS traffic.
domains string[]
List of domains on which to enable TLS.
id string
ID of TLS subscription. Conflicts with all the other filters.
certificate_authority str
The entity that issues and certifies the TLS certificates for the subscription.
configuration_id str
ID of TLS configuration used to terminate TLS traffic.
domains Sequence[str]
List of domains on which to enable TLS.
id str
ID of TLS subscription. Conflicts with all the other filters.
certificateAuthority String
The entity that issues and certifies the TLS certificates for the subscription.
configurationId String
ID of TLS configuration used to terminate TLS traffic.
domains List<String>
List of domains on which to enable TLS.
id String
ID of TLS subscription. Conflicts with all the other filters.

getTlsSubscription Result

The following output properties are available:

CertificateAuthority string
The entity that issues and certifies the TLS certificates for the subscription.
CertificateIds List<string>
List of certificate IDs associated with the Subscription.
CommonName string
The common name associated with the subscription generated by Fastly TLS.
ConfigurationId string
ID of TLS configuration used to terminate TLS traffic.
CreatedAt string
Timestamp (GMT) when subscription was created.
Domains List<string>
List of domains on which to enable TLS.
Id string
ID of TLS subscription. Conflicts with all the other filters.
State string
The current state of the subscription. The list of possible states are: pending, processing, issued, and renewing.
UpdatedAt string
Timestamp (GMT) when subscription was last updated.
CertificateAuthority string
The entity that issues and certifies the TLS certificates for the subscription.
CertificateIds []string
List of certificate IDs associated with the Subscription.
CommonName string
The common name associated with the subscription generated by Fastly TLS.
ConfigurationId string
ID of TLS configuration used to terminate TLS traffic.
CreatedAt string
Timestamp (GMT) when subscription was created.
Domains []string
List of domains on which to enable TLS.
Id string
ID of TLS subscription. Conflicts with all the other filters.
State string
The current state of the subscription. The list of possible states are: pending, processing, issued, and renewing.
UpdatedAt string
Timestamp (GMT) when subscription was last updated.
certificateAuthority String
The entity that issues and certifies the TLS certificates for the subscription.
certificateIds List<String>
List of certificate IDs associated with the Subscription.
commonName String
The common name associated with the subscription generated by Fastly TLS.
configurationId String
ID of TLS configuration used to terminate TLS traffic.
createdAt String
Timestamp (GMT) when subscription was created.
domains List<String>
List of domains on which to enable TLS.
id String
ID of TLS subscription. Conflicts with all the other filters.
state String
The current state of the subscription. The list of possible states are: pending, processing, issued, and renewing.
updatedAt String
Timestamp (GMT) when subscription was last updated.
certificateAuthority string
The entity that issues and certifies the TLS certificates for the subscription.
certificateIds string[]
List of certificate IDs associated with the Subscription.
commonName string
The common name associated with the subscription generated by Fastly TLS.
configurationId string
ID of TLS configuration used to terminate TLS traffic.
createdAt string
Timestamp (GMT) when subscription was created.
domains string[]
List of domains on which to enable TLS.
id string
ID of TLS subscription. Conflicts with all the other filters.
state string
The current state of the subscription. The list of possible states are: pending, processing, issued, and renewing.
updatedAt string
Timestamp (GMT) when subscription was last updated.
certificate_authority str
The entity that issues and certifies the TLS certificates for the subscription.
certificate_ids Sequence[str]
List of certificate IDs associated with the Subscription.
common_name str
The common name associated with the subscription generated by Fastly TLS.
configuration_id str
ID of TLS configuration used to terminate TLS traffic.
created_at str
Timestamp (GMT) when subscription was created.
domains Sequence[str]
List of domains on which to enable TLS.
id str
ID of TLS subscription. Conflicts with all the other filters.
state str
The current state of the subscription. The list of possible states are: pending, processing, issued, and renewing.
updated_at str
Timestamp (GMT) when subscription was last updated.
certificateAuthority String
The entity that issues and certifies the TLS certificates for the subscription.
certificateIds List<String>
List of certificate IDs associated with the Subscription.
commonName String
The common name associated with the subscription generated by Fastly TLS.
configurationId String
ID of TLS configuration used to terminate TLS traffic.
createdAt String
Timestamp (GMT) when subscription was created.
domains List<String>
List of domains on which to enable TLS.
id String
ID of TLS subscription. Conflicts with all the other filters.
state String
The current state of the subscription. The list of possible states are: pending, processing, issued, and renewing.
updatedAt String
Timestamp (GMT) when subscription was last updated.

Package Details

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