Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi
fastly.getTlsPlatformCertificateIds
Explore with Pulumi AI
Use this data source to get the IDs of available Platform TLS Certificates for use with other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const example = fastly.getTlsPlatformCertificateIds({});
const exampleGetTlsPlatformCertificate = example.then(example => fastly.getTlsPlatformCertificate({
id: example.ids?.[0],
}));
import pulumi
import pulumi_fastly as fastly
example = fastly.get_tls_platform_certificate_ids()
example_get_tls_platform_certificate = fastly.get_tls_platform_certificate(id=example.ids[0])
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 {
example, err := fastly.GetTlsPlatformCertificateIds(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = fastly.LookupTlsPlatformCertificate(ctx, &fastly.LookupTlsPlatformCertificateArgs{
Id: pulumi.StringRef(example.Ids[0]),
}, 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.GetTlsPlatformCertificateIds.Invoke();
var exampleGetTlsPlatformCertificate = Fastly.GetTlsPlatformCertificate.Invoke(new()
{
Id = example.Apply(getTlsPlatformCertificateIdsResult => getTlsPlatformCertificateIdsResult.Ids[0]),
});
});
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.getTlsPlatformCertificateIds();
final var exampleGetTlsPlatformCertificate = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()
.id(example.applyValue(getTlsPlatformCertificateIdsResult -> getTlsPlatformCertificateIdsResult.ids()[0]))
.build());
}
}
variables:
example:
fn::invoke:
Function: fastly:getTlsPlatformCertificateIds
Arguments: {}
exampleGetTlsPlatformCertificate:
fn::invoke:
Function: fastly:getTlsPlatformCertificate
Arguments:
id: ${example.ids[0]}
Using getTlsPlatformCertificateIds
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 getTlsPlatformCertificateIds(opts?: InvokeOptions): Promise<GetTlsPlatformCertificateIdsResult>
function getTlsPlatformCertificateIdsOutput(opts?: InvokeOptions): Output<GetTlsPlatformCertificateIdsResult>
def get_tls_platform_certificate_ids(opts: Optional[InvokeOptions] = None) -> GetTlsPlatformCertificateIdsResult
def get_tls_platform_certificate_ids_output(opts: Optional[InvokeOptions] = None) -> Output[GetTlsPlatformCertificateIdsResult]
func GetTlsPlatformCertificateIds(ctx *Context, opts ...InvokeOption) (*GetTlsPlatformCertificateIdsResult, error)
func GetTlsPlatformCertificateIdsOutput(ctx *Context, opts ...InvokeOption) GetTlsPlatformCertificateIdsResultOutput
> Note: This function is named GetTlsPlatformCertificateIds
in the Go SDK.
public static class GetTlsPlatformCertificateIds
{
public static Task<GetTlsPlatformCertificateIdsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetTlsPlatformCertificateIdsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetTlsPlatformCertificateIdsResult> getTlsPlatformCertificateIds(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds
arguments:
# arguments dictionary
getTlsPlatformCertificateIds Result
The following output properties are available:
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.