f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi
f5bigip.ssl.getCertificate
Explore with Pulumi AI
Use this data source (f5bigip.ssl.Certificate
) to get the ssl-certificate details available on BIG-IP
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
const test = f5bigip.ssl.getCertificate({
name: "terraform_ssl_certificate",
partition: "Common",
});
export const bigipSslCertificateName = test.then(test => test.name);
import pulumi
import pulumi_f5bigip as f5bigip
test = f5bigip.ssl.get_certificate(name="terraform_ssl_certificate",
partition="Common")
pulumi.export("bigipSslCertificateName", test.name)
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;
return await Deployment.RunAsync(() =>
{
var test = F5BigIP.Ssl.GetCertificate.Invoke(new()
{
Name = "terraform_ssl_certificate",
Partition = "Common",
});
return new Dictionary<string, object?>
{
["bigipSslCertificateName"] = test.Apply(getCertificateResult => getCertificateResult.Name),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.ssl.SslFunctions;
import com.pulumi.f5bigip.ssl.inputs.GetCertificateArgs;
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 test = SslFunctions.getCertificate(GetCertificateArgs.builder()
.name("terraform_ssl_certificate")
.partition("Common")
.build());
ctx.export("bigipSslCertificateName", test.applyValue(getCertificateResult -> getCertificateResult.name()));
}
}
variables:
test:
fn::invoke:
Function: f5bigip:ssl:getCertificate
Arguments:
name: terraform_ssl_certificate
partition: Common
outputs:
bigipSslCertificateName: ${test.name}
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:
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
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigip
Terraform Provider.