1. Packages
  2. Packages
  3. Nutanix
  4. API Docs
  5. getSslCertificateV2
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
nutanix logo
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg

    Provides detailed information about the SSL certificate in privacy-enhanced mail (.pem) format for the specified cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const _this = nutanix.getSslCertificateV2({
        clusterExtId: "6a68ecf4-8cac-42b3-9805-3186c2cecbd2",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    this = nutanix.get_ssl_certificate_v2(cluster_ext_id="6a68ecf4-8cac-42b3-9805-3186c2cecbd2")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.GetSslCertificateV2(ctx, &nutanix.LookupSslCertificateV2Args{
    			ClusterExtId: "6a68ecf4-8cac-42b3-9805-3186c2cecbd2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = Nutanix.GetSslCertificateV2.Invoke(new()
        {
            ClusterExtId = "6a68ecf4-8cac-42b3-9805-3186c2cecbd2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetSslCertificateV2Args;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 this = NutanixFunctions.getSslCertificateV2(GetSslCertificateV2Args.builder()
                .clusterExtId("6a68ecf4-8cac-42b3-9805-3186c2cecbd2")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: nutanix:getSslCertificateV2
          arguments:
            clusterExtId: 6a68ecf4-8cac-42b3-9805-3186c2cecbd2
    
    pulumi {
      required_providers {
        nutanix = {
          source = "pulumi/nutanix"
        }
      }
    }
    
    data "nutanix_getsslcertificatev2" "this" {
      cluster_ext_id = "6a68ecf4-8cac-42b3-9805-3186c2cecbd2"
    }
    

    API Reference

    See detailed information in Nutanix SSL Certificates v4

    Using getSslCertificateV2

    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 getSslCertificateV2(args: GetSslCertificateV2Args, opts?: InvokeOptions): Promise<GetSslCertificateV2Result>
    function getSslCertificateV2Output(args: GetSslCertificateV2OutputArgs, opts?: InvokeOptions): Output<GetSslCertificateV2Result>
    def get_ssl_certificate_v2(cluster_ext_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSslCertificateV2Result
    def get_ssl_certificate_v2_output(cluster_ext_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSslCertificateV2Result]
    func LookupSslCertificateV2(ctx *Context, args *LookupSslCertificateV2Args, opts ...InvokeOption) (*LookupSslCertificateV2Result, error)
    func LookupSslCertificateV2Output(ctx *Context, args *LookupSslCertificateV2OutputArgs, opts ...InvokeOption) LookupSslCertificateV2ResultOutput

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

    public static class GetSslCertificateV2 
    {
        public static Task<GetSslCertificateV2Result> InvokeAsync(GetSslCertificateV2Args args, InvokeOptions? opts = null)
        public static Output<GetSslCertificateV2Result> Invoke(GetSslCertificateV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSslCertificateV2Result> getSslCertificateV2(GetSslCertificateV2Args args, InvokeOptions options)
    public static Output<GetSslCertificateV2Result> getSslCertificateV2(GetSslCertificateV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: nutanix:index/getSslCertificateV2:getSslCertificateV2
      arguments:
        # arguments dictionary
    data "nutanix_getsslcertificatev2" "name" {
        # arguments
    }

    The following arguments are supported:

    ClusterExtId string
    — UUID of the cluster to which the host NIC belongs.
    ClusterExtId string
    — UUID of the cluster to which the host NIC belongs.
    cluster_ext_id string
    — UUID of the cluster to which the host NIC belongs.
    clusterExtId String
    — UUID of the cluster to which the host NIC belongs.
    clusterExtId string
    — UUID of the cluster to which the host NIC belongs.
    cluster_ext_id str
    — UUID of the cluster to which the host NIC belongs.
    clusterExtId String
    — UUID of the cluster to which the host NIC belongs.

    getSslCertificateV2 Result

    The following output properties are available:

    CaChain string
    ClusterExtId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Passphrase string
    PrivateKey string
    PrivateKeyAlgorithm string
    — Private Key Algorithm used for SSL certificate.
    PublicCertificate string
    — Details about the public SSL certificate.
    CaChain string
    ClusterExtId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Passphrase string
    PrivateKey string
    PrivateKeyAlgorithm string
    — Private Key Algorithm used for SSL certificate.
    PublicCertificate string
    — Details about the public SSL certificate.
    ca_chain string
    cluster_ext_id string
    id string
    The provider-assigned unique ID for this managed resource.
    passphrase string
    private_key string
    private_key_algorithm string
    — Private Key Algorithm used for SSL certificate.
    public_certificate string
    — Details about the public SSL certificate.
    caChain String
    clusterExtId String
    id String
    The provider-assigned unique ID for this managed resource.
    passphrase String
    privateKey String
    privateKeyAlgorithm String
    — Private Key Algorithm used for SSL certificate.
    publicCertificate String
    — Details about the public SSL certificate.
    caChain string
    clusterExtId string
    id string
    The provider-assigned unique ID for this managed resource.
    passphrase string
    privateKey string
    privateKeyAlgorithm string
    — Private Key Algorithm used for SSL certificate.
    publicCertificate string
    — Details about the public SSL certificate.
    ca_chain str
    cluster_ext_id str
    id str
    The provider-assigned unique ID for this managed resource.
    passphrase str
    private_key str
    private_key_algorithm str
    — Private Key Algorithm used for SSL certificate.
    public_certificate str
    — Details about the public SSL certificate.
    caChain String
    clusterExtId String
    id String
    The provider-assigned unique ID for this managed resource.
    passphrase String
    privateKey String
    privateKeyAlgorithm String
    — Private Key Algorithm used for SSL certificate.
    publicCertificate String
    — Details about the public SSL certificate.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Viewing docs for Nutanix v0.16.0
    published on Tuesday, May 26, 2026 by Piers Karsenbarg

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial