Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi
fastly.getTlsSubscription
Explore with Pulumi AI
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"],
});
import pulumi
import pulumi_fastly as fastly
example = fastly.get_tls_subscription(domains=["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.LookupTlsSubscription(ctx, &fastly.LookupTlsSubscriptionArgs{
			Domains: []string{
				"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.GetTlsSubscription.Invoke(new()
    {
        Domains = new[]
        {
            "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.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());
    }
}
variables:
  example:
    fn::invoke:
      Function: fastly:getTlsSubscription
      Arguments:
        domains:
          - example.com
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>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]func LookupTlsSubscription(ctx *Context, args *LookupTlsSubscriptionArgs, opts ...InvokeOption) (*LookupTlsSubscriptionResult, error)
func LookupTlsSubscriptionOutput(ctx *Context, args *LookupTlsSubscriptionOutputArgs, opts ...InvokeOption) LookupTlsSubscriptionResultOutput> 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)
}public static CompletableFuture<GetTlsSubscriptionResult> getTlsSubscription(GetTlsSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: fastly:index/getTlsSubscription:getTlsSubscription
  arguments:
    # arguments dictionaryThe following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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:
- 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, andrenewing.
- UpdatedAt string
- Timestamp (GMT) when subscription was last updated.
- 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, andrenewing.
- UpdatedAt string
- Timestamp (GMT) when subscription was last updated.
- 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, andrenewing.
- updatedAt String
- Timestamp (GMT) when subscription was last updated.
- 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, andrenewing.
- updatedAt string
- Timestamp (GMT) when subscription was last updated.
- 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, andrenewing.
- updated_at str
- Timestamp (GMT) when subscription was last updated.
- 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, andrenewing.
- 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 fastlyTerraform Provider.