1. Packages
  2. Nutanix
  3. API Docs
  4. ObjectStoreCertificateV2
Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg

nutanix.ObjectStoreCertificateV2

Explore with Pulumi AI

nutanix logo
Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg

    This operation creates a new default certificate and keys. It also creates the alternate FQDNs and alternate IPs for the Object store. The certificate of an Object store can be created when it is in a OBJECT_STORE_AVAILABLE or OBJECT_STORE_CERT_CREATION_FAILED state. If the publicCert, privateKey, and ca values are provided in the request body, these values are used to create the new certificate. If these values are not provided, a new certificate will be generated if ‘shouldGenerate’ is set to true and if it is set to false, the existing certificate will be used as the new certificate. Optionally, a list of additional alternate FQDNs and alternate IPs can be provided. These alternateFqdns and alternateIps must be included in the CA certificate if it has been provided.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const example = nutanix.getCertificateV2({
        extId: "ef0a9a54-e7e1-42e2-a59f-de779ec1c9ea",
        objectStoreExtId: "ac91151a-28b4-4ffe-b150-6bcb2ec80cd4",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    example = nutanix.get_certificate_v2(ext_id="ef0a9a54-e7e1-42e2-a59f-de779ec1c9ea",
        object_store_ext_id="ac91151a-28b4-4ffe-b150-6bcb2ec80cd4")
    
    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.GetCertificateV2(ctx, &nutanix.GetCertificateV2Args{
    			ExtId:            "ef0a9a54-e7e1-42e2-a59f-de779ec1c9ea",
    			ObjectStoreExtId: "ac91151a-28b4-4ffe-b150-6bcb2ec80cd4",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Nutanix.GetCertificateV2.Invoke(new()
        {
            ExtId = "ef0a9a54-e7e1-42e2-a59f-de779ec1c9ea",
            ObjectStoreExtId = "ac91151a-28b4-4ffe-b150-6bcb2ec80cd4",
        });
    
    });
    
    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.GetCertificateV2Args;
    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 example = NutanixFunctions.getCertificateV2(GetCertificateV2Args.builder()
                .extId("ef0a9a54-e7e1-42e2-a59f-de779ec1c9ea")
                .objectStoreExtId("ac91151a-28b4-4ffe-b150-6bcb2ec80cd4")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: nutanix:getCertificateV2
          arguments:
            extId: ef0a9a54-e7e1-42e2-a59f-de779ec1c9ea
            objectStoreExtId: ac91151a-28b4-4ffe-b150-6bcb2ec80cd4
    

    JSON Example

    {
      "alternateFqdns": [
        {
          "value": "fqdn1.example.com"
        },
        {
          "value": "fqdn2.example.com"
        }
      ],
      "alternateIps": [
        {
          "ipv4": {
            "value": "192.168.1.1"
          }
        },
        {
          "ipv4": {
             "value": "192.168.1.2"
          }
        }
      ],
      "shouldGenerate": true,
      "ca": "-----BEGIN CERTIFICATE-----\nMIIDzTCCArWgAwIBAgIUI...\n-----END CERTIFICATE-----",
      "publicCert": "-----BEGIN CERTIFICATE-----\nMIIDzTCCArWgAwIBAgIUI...\n-----END CERTIFICATE-----",
      "privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIDzTCCArWgAwIBAgIUI...\n-----END RSA PRIVATE KEY-----"
    }
    

    See detailed information in Nutanix Create a SSL certificate for an Object store V4 .

    Create ObjectStoreCertificateV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ObjectStoreCertificateV2(name: string, args: ObjectStoreCertificateV2Args, opts?: CustomResourceOptions);
    @overload
    def ObjectStoreCertificateV2(resource_name: str,
                                 args: ObjectStoreCertificateV2Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectStoreCertificateV2(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 object_store_ext_id: Optional[str] = None,
                                 path: Optional[str] = None)
    func NewObjectStoreCertificateV2(ctx *Context, name string, args ObjectStoreCertificateV2Args, opts ...ResourceOption) (*ObjectStoreCertificateV2, error)
    public ObjectStoreCertificateV2(string name, ObjectStoreCertificateV2Args args, CustomResourceOptions? opts = null)
    public ObjectStoreCertificateV2(String name, ObjectStoreCertificateV2Args args)
    public ObjectStoreCertificateV2(String name, ObjectStoreCertificateV2Args args, CustomResourceOptions options)
    
    type: nutanix:ObjectStoreCertificateV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ObjectStoreCertificateV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ObjectStoreCertificateV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ObjectStoreCertificateV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectStoreCertificateV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectStoreCertificateV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var objectStoreCertificateV2Resource = new Nutanix.ObjectStoreCertificateV2("objectStoreCertificateV2Resource", new()
    {
        ObjectStoreExtId = "string",
        Path = "string",
    });
    
    example, err := nutanix.NewObjectStoreCertificateV2(ctx, "objectStoreCertificateV2Resource", &nutanix.ObjectStoreCertificateV2Args{
    	ObjectStoreExtId: pulumi.String("string"),
    	Path:             pulumi.String("string"),
    })
    
    var objectStoreCertificateV2Resource = new ObjectStoreCertificateV2("objectStoreCertificateV2Resource", ObjectStoreCertificateV2Args.builder()
        .objectStoreExtId("string")
        .path("string")
        .build());
    
    object_store_certificate_v2_resource = nutanix.ObjectStoreCertificateV2("objectStoreCertificateV2Resource",
        object_store_ext_id="string",
        path="string")
    
    const objectStoreCertificateV2Resource = new nutanix.ObjectStoreCertificateV2("objectStoreCertificateV2Resource", {
        objectStoreExtId: "string",
        path: "string",
    });
    
    type: nutanix:ObjectStoreCertificateV2
    properties:
        objectStoreExtId: string
        path: string
    

    ObjectStoreCertificateV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ObjectStoreCertificateV2 resource accepts the following input properties:

    ObjectStoreExtId string
    -(Required) The UUID of the Object store.
    Path string
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    ObjectStoreExtId string
    -(Required) The UUID of the Object store.
    Path string
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    objectStoreExtId String
    -(Required) The UUID of the Object store.
    path String
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    objectStoreExtId string
    -(Required) The UUID of the Object store.
    path string
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    object_store_ext_id str
    -(Required) The UUID of the Object store.
    path str
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    objectStoreExtId String
    -(Required) The UUID of the Object store.
    path String
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ObjectStoreCertificateV2 resource produces the following output properties:

    AlternateFqdns []ObjectStoreCertificateV2AlternateFqdn
    AlternateIps []ObjectStoreCertificateV2AlternateIp
    ExtId string
    -(Required) The UUID of the certificate of an Object store.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []ObjectStoreCertificateV2Link
    Metadatas []ObjectStoreCertificateV2Metadata
    TenantId string
    alternateFqdns List<ObjectStoreCertificateV2AlternateFqdn>
    alternateIps List<ObjectStoreCertificateV2AlternateIp>
    extId String
    -(Required) The UUID of the certificate of an Object store.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<ObjectStoreCertificateV2Link>
    metadatas List<ObjectStoreCertificateV2Metadata>
    tenantId String
    alternateFqdns ObjectStoreCertificateV2AlternateFqdn[]
    alternateIps ObjectStoreCertificateV2AlternateIp[]
    extId string
    -(Required) The UUID of the certificate of an Object store.
    id string
    The provider-assigned unique ID for this managed resource.
    links ObjectStoreCertificateV2Link[]
    metadatas ObjectStoreCertificateV2Metadata[]
    tenantId string
    alternateFqdns List<Property Map>
    alternateIps List<Property Map>
    extId String
    -(Required) The UUID of the certificate of an Object store.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<Property Map>
    metadatas List<Property Map>
    tenantId String

    Look up Existing ObjectStoreCertificateV2 Resource

    Get an existing ObjectStoreCertificateV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ObjectStoreCertificateV2State, opts?: CustomResourceOptions): ObjectStoreCertificateV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alternate_fqdns: Optional[Sequence[ObjectStoreCertificateV2AlternateFqdnArgs]] = None,
            alternate_ips: Optional[Sequence[ObjectStoreCertificateV2AlternateIpArgs]] = None,
            ext_id: Optional[str] = None,
            links: Optional[Sequence[ObjectStoreCertificateV2LinkArgs]] = None,
            metadatas: Optional[Sequence[ObjectStoreCertificateV2MetadataArgs]] = None,
            object_store_ext_id: Optional[str] = None,
            path: Optional[str] = None,
            tenant_id: Optional[str] = None) -> ObjectStoreCertificateV2
    func GetObjectStoreCertificateV2(ctx *Context, name string, id IDInput, state *ObjectStoreCertificateV2State, opts ...ResourceOption) (*ObjectStoreCertificateV2, error)
    public static ObjectStoreCertificateV2 Get(string name, Input<string> id, ObjectStoreCertificateV2State? state, CustomResourceOptions? opts = null)
    public static ObjectStoreCertificateV2 get(String name, Output<String> id, ObjectStoreCertificateV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:ObjectStoreCertificateV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlternateFqdns List<PiersKarsenbarg.Nutanix.Inputs.ObjectStoreCertificateV2AlternateFqdn>
    AlternateIps List<PiersKarsenbarg.Nutanix.Inputs.ObjectStoreCertificateV2AlternateIp>
    ExtId string
    -(Required) The UUID of the certificate of an Object store.
    Links List<PiersKarsenbarg.Nutanix.Inputs.ObjectStoreCertificateV2Link>
    Metadatas List<PiersKarsenbarg.Nutanix.Inputs.ObjectStoreCertificateV2Metadata>
    ObjectStoreExtId string
    -(Required) The UUID of the Object store.
    Path string
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    TenantId string
    AlternateFqdns []ObjectStoreCertificateV2AlternateFqdnArgs
    AlternateIps []ObjectStoreCertificateV2AlternateIpArgs
    ExtId string
    -(Required) The UUID of the certificate of an Object store.
    Links []ObjectStoreCertificateV2LinkArgs
    Metadatas []ObjectStoreCertificateV2MetadataArgs
    ObjectStoreExtId string
    -(Required) The UUID of the Object store.
    Path string
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    TenantId string
    alternateFqdns List<ObjectStoreCertificateV2AlternateFqdn>
    alternateIps List<ObjectStoreCertificateV2AlternateIp>
    extId String
    -(Required) The UUID of the certificate of an Object store.
    links List<ObjectStoreCertificateV2Link>
    metadatas List<ObjectStoreCertificateV2Metadata>
    objectStoreExtId String
    -(Required) The UUID of the Object store.
    path String
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    tenantId String
    alternateFqdns ObjectStoreCertificateV2AlternateFqdn[]
    alternateIps ObjectStoreCertificateV2AlternateIp[]
    extId string
    -(Required) The UUID of the certificate of an Object store.
    links ObjectStoreCertificateV2Link[]
    metadatas ObjectStoreCertificateV2Metadata[]
    objectStoreExtId string
    -(Required) The UUID of the Object store.
    path string
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    tenantId string
    alternate_fqdns Sequence[ObjectStoreCertificateV2AlternateFqdnArgs]
    alternate_ips Sequence[ObjectStoreCertificateV2AlternateIpArgs]
    ext_id str
    -(Required) The UUID of the certificate of an Object store.
    links Sequence[ObjectStoreCertificateV2LinkArgs]
    metadatas Sequence[ObjectStoreCertificateV2MetadataArgs]
    object_store_ext_id str
    -(Required) The UUID of the Object store.
    path str
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    tenant_id str
    alternateFqdns List<Property Map>
    alternateIps List<Property Map>
    extId String
    -(Required) The UUID of the certificate of an Object store.
    links List<Property Map>
    metadatas List<Property Map>
    objectStoreExtId String
    -(Required) The UUID of the Object store.
    path String
    -(Required) Path to a JSON file which contains the public certificates, private key, and CA certificate or chain, along with a list of alternate FQDNs and alternate IPs to create a certificate for the Object store.
    tenantId String

    Supporting Types

    ObjectStoreCertificateV2AlternateFqdn, ObjectStoreCertificateV2AlternateFqdnArgs

    Value string
    Value string
    value String
    value string
    value str
    value String

    ObjectStoreCertificateV2AlternateIp, ObjectStoreCertificateV2AlternateIpArgs

    ObjectStoreCertificateV2AlternateIpIpv4, ObjectStoreCertificateV2AlternateIpIpv4Args

    value String
    prefixLength Integer
    value string
    prefixLength number
    value String
    prefixLength Number

    ObjectStoreCertificateV2AlternateIpIpv6, ObjectStoreCertificateV2AlternateIpIpv6Args

    value String
    prefixLength Integer
    value string
    prefixLength number
    value String
    prefixLength Number
    Href string
    Rel string
    Href string
    Rel string
    href String
    rel String
    href string
    rel string
    href str
    rel str
    href String
    rel String

    ObjectStoreCertificateV2Metadata, ObjectStoreCertificateV2MetadataArgs

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.10.0 published on Monday, Sep 1, 2025 by Piers Karsenbarg
      AI Agentic Workflows: Register now