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"],
});
import pulumi
import pulumi_fastly as fastly
example = fastly.get_tls_platform_certificate(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.LookupTlsPlatformCertificate(ctx, &fastly.LookupTlsPlatformCertificateArgs{
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.GetTlsPlatformCertificate.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.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());
}
}
variables:
example:
fn::invoke:
Function: fastly:getTlsPlatformCertificate
Arguments:
domains:
- example.com
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>
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]
func LookupTlsPlatformCertificate(ctx *Context, args *LookupTlsPlatformCertificateArgs, opts ...InvokeOption) (*LookupTlsPlatformCertificateResult, error)
func LookupTlsPlatformCertificateOutput(ctx *Context, args *LookupTlsPlatformCertificateOutputArgs, opts ...InvokeOption) LookupTlsPlatformCertificateResultOutput
> 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)
}
public static CompletableFuture<GetTlsPlatformCertificateResult> getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate
arguments:
# arguments dictionary
The following arguments are supported:
getTlsPlatformCertificate Result
The following output properties are available:
- Configuration
Id string - ID of TLS configuration used to terminate TLS traffic.
- Created
At 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.
- Not
After string - Timestamp (GMT) when the certificate will expire.
- Not
Before 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.
- Updated
At string - Timestamp (GMT) when the certificate was last updated.
- Configuration
Id string - ID of TLS configuration used to terminate TLS traffic.
- Created
At 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.
- Not
After string - Timestamp (GMT) when the certificate will expire.
- Not
Before 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.
- Updated
At string - Timestamp (GMT) when the certificate was last updated.
- configuration
Id String - ID of TLS configuration used to terminate TLS traffic.
- created
At 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.
- not
After String - Timestamp (GMT) when the certificate will expire.
- not
Before 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.
- updated
At String - Timestamp (GMT) when the certificate was last updated.
- configuration
Id string - ID of TLS configuration used to terminate TLS traffic.
- created
At 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.
- not
After string - Timestamp (GMT) when the certificate will expire.
- not
Before 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.
- updated
At 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.
- configuration
Id String - ID of TLS configuration used to terminate TLS traffic.
- created
At 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.
- not
After String - Timestamp (GMT) when the certificate will expire.
- not
Before 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.
- updated
At 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.