F5 BIG-IP

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Tuesday, May 31, 2022 by Pulumi

getCertificate

Use this data source (f5bigip.ssl.Certificate) to get the ssl-certificate details available on BIG-IP

Example Usage

using Pulumi;
using F5BigIP = Pulumi.F5BigIP;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(F5BigIP.Ssl.GetCertificate.InvokeAsync(new F5BigIP.Ssl.GetCertificateArgs
        {
            Name = "terraform_ssl_certificate",
            Partition = "Common",
        }));
        this.BigipSslCertificateName = test.Apply(test => test.Name);
    }

    [Output("bigipSslCertificateName")]
    public Output<string> BigipSslCertificateName { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ssl"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := ssl.LookupCertificate(ctx, &ssl.LookupCertificateArgs{
			Name:      "terraform_ssl_certificate",
			Partition: "Common",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("bigipSslCertificateName", test.Name)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_f5bigip as f5bigip

test = f5bigip.ssl.get_certificate(name="terraform_ssl_certificate",
    partition="Common")
pulumi.export("bigipSslCertificateName", test.name)
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";

const test = pulumi.output(f5bigip.ssl.getCertificate({
    name: "terraform_ssl_certificate",
    partition: "Common",
}));

export const bigipSslCertificateName = test.name;

Coming soon!

Using getCertificate

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 getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>
def get_certificate(name: Optional[str] = None,
                    partition: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(name: Optional[pulumi.Input[str]] = None,
                    partition: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
func LookupCertificate(ctx *Context, args *LookupCertificateArgs, opts ...InvokeOption) (*LookupCertificateResult, error)
func LookupCertificateOutput(ctx *Context, args *LookupCertificateOutputArgs, opts ...InvokeOption) LookupCertificateResultOutput

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

public static class GetCertificate 
{
    public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
    public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: f5bigip:ssl/getCertificate:getCertificate
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

Name of the ssl_certificate

Partition string

partition of the ltm ssl_certificate

Name string

Name of the ssl_certificate

Partition string

partition of the ltm ssl_certificate

name String

Name of the ssl_certificate

partition String

partition of the ltm ssl_certificate

name string

Name of the ssl_certificate

partition string

partition of the ltm ssl_certificate

name str

Name of the ssl_certificate

partition str

partition of the ltm ssl_certificate

name String

Name of the ssl_certificate

partition String

partition of the ltm ssl_certificate

getCertificate Result

The following output properties are available:

Certificate string
Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of ssl_certificate configured on bigip with full path

Partition string

Bigip partition in which ssl-certificate is configured

Certificate string
Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of ssl_certificate configured on bigip with full path

Partition string

Bigip partition in which ssl-certificate is configured

certificate String
id String

The provider-assigned unique ID for this managed resource.

name String

Name of ssl_certificate configured on bigip with full path

partition String

Bigip partition in which ssl-certificate is configured

certificate string
id string

The provider-assigned unique ID for this managed resource.

name string

Name of ssl_certificate configured on bigip with full path

partition string

Bigip partition in which ssl-certificate is configured

certificate str
id str

The provider-assigned unique ID for this managed resource.

name str

Name of ssl_certificate configured on bigip with full path

partition str

Bigip partition in which ssl-certificate is configured

certificate String
id String

The provider-assigned unique ID for this managed resource.

name String

Name of ssl_certificate configured on bigip with full path

partition String

Bigip partition in which ssl-certificate is configured

Package Details

Repository
https://github.com/pulumi/pulumi-f5bigip
License
Apache-2.0
Notes

This Pulumi package is based on the bigip Terraform Provider.