Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi
fastly.getTlsPrivateKeyIds
Explore with Pulumi AI
Use this data source to get the list of TLS private key identifiers in Fastly.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const demo = fastly.getTlsPrivateKeyIds({});
const example = fastly.getTlsPrivateKey({
id: demoFastlyTlsPrivateKeyIds.ids[0],
});
import pulumi
import pulumi_fastly as fastly
demo = fastly.get_tls_private_key_ids()
example = fastly.get_tls_private_key(id=demo_fastly_tls_private_key_ids["ids"])
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.GetTlsPrivateKeyIds(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = fastly.LookupTlsPrivateKey(ctx, &fastly.LookupTlsPrivateKeyArgs{
Id: pulumi.StringRef(demoFastlyTlsPrivateKeyIds.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 demo = Fastly.GetTlsPrivateKeyIds.Invoke();
var example = Fastly.GetTlsPrivateKey.Invoke(new()
{
Id = demoFastlyTlsPrivateKeyIds.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.GetTlsPrivateKeyArgs;
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 demo = FastlyFunctions.getTlsPrivateKeyIds();
final var example = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()
.id(demoFastlyTlsPrivateKeyIds.ids()[0])
.build());
}
}
variables:
demo:
fn::invoke:
Function: fastly:getTlsPrivateKeyIds
Arguments: {}
example:
fn::invoke:
Function: fastly:getTlsPrivateKey
Arguments:
id: ${demoFastlyTlsPrivateKeyIds.ids[0]}
Using getTlsPrivateKeyIds
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 getTlsPrivateKeyIds(opts?: InvokeOptions): Promise<GetTlsPrivateKeyIdsResult>
function getTlsPrivateKeyIdsOutput(opts?: InvokeOptions): Output<GetTlsPrivateKeyIdsResult>
def get_tls_private_key_ids(opts: Optional[InvokeOptions] = None) -> GetTlsPrivateKeyIdsResult
def get_tls_private_key_ids_output(opts: Optional[InvokeOptions] = None) -> Output[GetTlsPrivateKeyIdsResult]
func GetTlsPrivateKeyIds(ctx *Context, opts ...InvokeOption) (*GetTlsPrivateKeyIdsResult, error)
func GetTlsPrivateKeyIdsOutput(ctx *Context, opts ...InvokeOption) GetTlsPrivateKeyIdsResultOutput
> Note: This function is named GetTlsPrivateKeyIds
in the Go SDK.
public static class GetTlsPrivateKeyIds
{
public static Task<GetTlsPrivateKeyIdsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetTlsPrivateKeyIdsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetTlsPrivateKeyIdsResult> getTlsPrivateKeyIds(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds
arguments:
# arguments dictionary
getTlsPrivateKeyIds 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.