1. Packages
  2. Fastly Provider
  3. API Docs
  4. getTlsPlatformCertificate
Fastly v8.14.0 published on Monday, Feb 3, 2025 by Pulumi

fastly.getTlsPlatformCertificate

Explore with Pulumi AI

Use this data source to get information of a Platform TLS certificate for use with other resources.

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.getTlsPlatformCertificate({
    domains: ["example.com"],
});
Copy
import pulumi
import pulumi_fastly as fastly

example = fastly.get_tls_platform_certificate(domains=["example.com"])
Copy
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.LookupTlsPlatformCertificate(ctx, &fastly.LookupTlsPlatformCertificateArgs{
			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.GetTlsPlatformCertificate.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.GetTlsPlatformCertificateArgs;
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.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()
            .domains("example.com")
            .build());

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

Using getTlsPlatformCertificate

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 getTlsPlatformCertificate(args: GetTlsPlatformCertificateArgs, opts?: InvokeOptions): Promise<GetTlsPlatformCertificateResult>
function getTlsPlatformCertificateOutput(args: GetTlsPlatformCertificateOutputArgs, opts?: InvokeOptions): Output<GetTlsPlatformCertificateResult>
Copy
def get_tls_platform_certificate(domains: Optional[Sequence[str]] = None,
                                 id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetTlsPlatformCertificateResult
def get_tls_platform_certificate_output(domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetTlsPlatformCertificateResult]
Copy
func LookupTlsPlatformCertificate(ctx *Context, args *LookupTlsPlatformCertificateArgs, opts ...InvokeOption) (*LookupTlsPlatformCertificateResult, error)
func LookupTlsPlatformCertificateOutput(ctx *Context, args *LookupTlsPlatformCertificateOutputArgs, opts ...InvokeOption) LookupTlsPlatformCertificateResultOutput
Copy

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

public static class GetTlsPlatformCertificate 
{
    public static Task<GetTlsPlatformCertificateResult> InvokeAsync(GetTlsPlatformCertificateArgs args, InvokeOptions? opts = null)
    public static Output<GetTlsPlatformCertificateResult> Invoke(GetTlsPlatformCertificateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTlsPlatformCertificateResult> getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args, InvokeOptions options)
public static Output<GetTlsPlatformCertificateResult> getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domains List<string>
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
Id string
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
Domains []string
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
Id string
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
domains List<String>
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id String
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
domains string[]
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id string
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
domains Sequence[str]
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id str
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
domains List<String>
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id String
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.

getTlsPlatformCertificate Result

The following output properties are available:

ConfigurationId string
ID of TLS configuration used to terminate TLS traffic.
CreatedAt string
Timestamp (GMT) when the certificate was created.
Domains List<string>
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
Id string
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
NotAfter string
Timestamp (GMT) when the certificate will expire.
NotBefore string
Timestamp (GMT) when the certificate will become valid.
Replace bool
A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
UpdatedAt string
Timestamp (GMT) when the certificate was last updated.
ConfigurationId string
ID of TLS configuration used to terminate TLS traffic.
CreatedAt string
Timestamp (GMT) when the certificate was created.
Domains []string
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
Id string
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
NotAfter string
Timestamp (GMT) when the certificate will expire.
NotBefore string
Timestamp (GMT) when the certificate will become valid.
Replace bool
A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
UpdatedAt string
Timestamp (GMT) when the certificate was last updated.
configurationId String
ID of TLS configuration used to terminate TLS traffic.
createdAt String
Timestamp (GMT) when the certificate was created.
domains List<String>
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id String
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
notAfter String
Timestamp (GMT) when the certificate will expire.
notBefore String
Timestamp (GMT) when the certificate will become valid.
replace Boolean
A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
updatedAt String
Timestamp (GMT) when the certificate was last updated.
configurationId string
ID of TLS configuration used to terminate TLS traffic.
createdAt string
Timestamp (GMT) when the certificate was created.
domains string[]
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id string
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
notAfter string
Timestamp (GMT) when the certificate will expire.
notBefore string
Timestamp (GMT) when the certificate will become valid.
replace boolean
A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
updatedAt string
Timestamp (GMT) when the certificate was last updated.
configuration_id str
ID of TLS configuration used to terminate TLS traffic.
created_at str
Timestamp (GMT) when the certificate was created.
domains Sequence[str]
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id str
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
not_after str
Timestamp (GMT) when the certificate will expire.
not_before str
Timestamp (GMT) when the certificate will become valid.
replace bool
A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
updated_at str
Timestamp (GMT) when the certificate was last updated.
configurationId String
ID of TLS configuration used to terminate TLS traffic.
createdAt String
Timestamp (GMT) when the certificate was created.
domains List<String>
Domains that are listed in any certificate's Subject Alternative Names (SAN) list.
id String
Unique ID assigned to certificate by Fastly. Conflicts with all the other filters.
notAfter String
Timestamp (GMT) when the certificate will expire.
notBefore String
Timestamp (GMT) when the certificate will become valid.
replace Boolean
A recommendation from Fastly indicating the key associated with this certificate is in need of rotation.
updatedAt String
Timestamp (GMT) when the certificate 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.