nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware
nsxt.getCertificate
Explore with Pulumi AI
This data source provides information about various types of certificates imported into NSX trust management.
This data source is applicable to NSX-T Policy Manager.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nsxt from "@pulumi/nsxt";
const cA = nsxt.getCertificate({
displayName: "ca-cert",
});
import pulumi
import pulumi_nsxt as nsxt
c_a = nsxt.get_certificate(display_name="ca-cert")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/nsxt/v3/nsxt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nsxt.GetCertificate(ctx, &nsxt.GetCertificateArgs{
DisplayName: pulumi.StringRef("ca-cert"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nsxt = Pulumi.Nsxt;
return await Deployment.RunAsync(() =>
{
var cA = Nsxt.GetCertificate.Invoke(new()
{
DisplayName = "ca-cert",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nsxt.NsxtFunctions;
import com.pulumi.nsxt.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 cA = NsxtFunctions.getCertificate(GetCertificateArgs.builder()
.displayName("ca-cert")
.build());
}
}
variables:
cA:
fn::invoke:
function: nsxt:getCertificate
arguments:
displayName: ca-cert
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(description: Optional[str] = None,
display_name: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
func GetCertificate(ctx *Context, args *GetCertificateArgs, opts ...InvokeOption) (*GetCertificateResult, error)
func GetCertificateOutput(ctx *Context, args *GetCertificateOutputArgs, opts ...InvokeOption) GetCertificateResultOutput
> Note: This function is named GetCertificate
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)
public static Output<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
fn::invoke:
function: nsxt:index/getCertificate:getCertificate
arguments:
# arguments dictionary
The following arguments are supported:
- Description string
- The description of the Certificate.
- Display
Name string - The Display Name of the Certificate to retrieve.
- Id string
- The ID of Certificate to retrieve.
- Description string
- The description of the Certificate.
- Display
Name string - The Display Name of the Certificate to retrieve.
- Id string
- The ID of Certificate to retrieve.
- description String
- The description of the Certificate.
- display
Name String - The Display Name of the Certificate to retrieve.
- id String
- The ID of Certificate to retrieve.
- description string
- The description of the Certificate.
- display
Name string - The Display Name of the Certificate to retrieve.
- id string
- The ID of Certificate to retrieve.
- description str
- The description of the Certificate.
- display_
name str - The Display Name of the Certificate to retrieve.
- id str
- The ID of Certificate to retrieve.
- description String
- The description of the Certificate.
- display
Name String - The Display Name of the Certificate to retrieve.
- id String
- The ID of Certificate to retrieve.
getCertificate Result
The following output properties are available:
- Description string
- The description of the Certificate.
- Display
Name string - Id string
- Description string
- The description of the Certificate.
- Display
Name string - Id string
- description String
- The description of the Certificate.
- display
Name String - id String
- description string
- The description of the Certificate.
- display
Name string - id string
- description str
- The description of the Certificate.
- display_
name str - id str
- description String
- The description of the Certificate.
- display
Name String - id String
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.