nutanix.ObjectStoreCertificateV2
Explore with Pulumi AI
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:
- Object
Store stringExt Id - -(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 stringExt Id - -(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 StringExt Id - -(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 stringExt Id - -(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_ strext_ id - -(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.
- object
Store StringExt Id - -(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:
- Alternate
Fqdns List<PiersKarsenbarg. Nutanix. Outputs. Object Store Certificate V2Alternate Fqdn> - Alternate
Ips List<PiersKarsenbarg. Nutanix. Outputs. Object Store Certificate V2Alternate Ip> - Ext
Id string - -(Required) The UUID of the certificate of an Object store.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Object Store Certificate V2Link> - Metadatas
List<Piers
Karsenbarg. Nutanix. Outputs. Object Store Certificate V2Metadata> - Tenant
Id string
- Alternate
Fqdns []ObjectStore Certificate V2Alternate Fqdn - Alternate
Ips []ObjectStore Certificate V2Alternate Ip - Ext
Id string - -(Required) The UUID of the certificate of an Object store.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Object
Store Certificate V2Link - Metadatas
[]Object
Store Certificate V2Metadata - Tenant
Id string
- alternate
Fqdns List<ObjectStore Certificate V2Alternate Fqdn> - alternate
Ips List<ObjectStore Certificate V2Alternate Ip> - ext
Id String - -(Required) The UUID of the certificate of an Object store.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Object
Store Certificate V2Link> - metadatas
List<Object
Store Certificate V2Metadata> - tenant
Id String
- alternate
Fqdns ObjectStore Certificate V2Alternate Fqdn[] - alternate
Ips ObjectStore Certificate V2Alternate Ip[] - ext
Id string - -(Required) The UUID of the certificate of an Object store.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Object
Store Certificate V2Link[] - metadatas
Object
Store Certificate V2Metadata[] - tenant
Id string
- alternate_
fqdns Sequence[ObjectStore Certificate V2Alternate Fqdn] - alternate_
ips Sequence[ObjectStore Certificate V2Alternate Ip] - ext_
id str - -(Required) The UUID of the certificate of an Object store.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Object
Store Certificate V2Link] - metadatas
Sequence[Object
Store Certificate V2Metadata] - tenant_
id str
- alternate
Fqdns List<Property Map> - alternate
Ips List<Property Map> - ext
Id 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>
- tenant
Id 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.
- Alternate
Fqdns List<PiersKarsenbarg. Nutanix. Inputs. Object Store Certificate V2Alternate Fqdn> - Alternate
Ips List<PiersKarsenbarg. Nutanix. Inputs. Object Store Certificate V2Alternate Ip> - Ext
Id string - -(Required) The UUID of the certificate of an Object store.
- Links
List<Piers
Karsenbarg. Nutanix. Inputs. Object Store Certificate V2Link> - Metadatas
List<Piers
Karsenbarg. Nutanix. Inputs. Object Store Certificate V2Metadata> - Object
Store stringExt Id - -(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.
- Tenant
Id string
- Alternate
Fqdns []ObjectStore Certificate V2Alternate Fqdn Args - Alternate
Ips []ObjectStore Certificate V2Alternate Ip Args - Ext
Id string - -(Required) The UUID of the certificate of an Object store.
- Links
[]Object
Store Certificate V2Link Args - Metadatas
[]Object
Store Certificate V2Metadata Args - Object
Store stringExt Id - -(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.
- Tenant
Id string
- alternate
Fqdns List<ObjectStore Certificate V2Alternate Fqdn> - alternate
Ips List<ObjectStore Certificate V2Alternate Ip> - ext
Id String - -(Required) The UUID of the certificate of an Object store.
- links
List<Object
Store Certificate V2Link> - metadatas
List<Object
Store Certificate V2Metadata> - object
Store StringExt Id - -(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.
- tenant
Id String
- alternate
Fqdns ObjectStore Certificate V2Alternate Fqdn[] - alternate
Ips ObjectStore Certificate V2Alternate Ip[] - ext
Id string - -(Required) The UUID of the certificate of an Object store.
- links
Object
Store Certificate V2Link[] - metadatas
Object
Store Certificate V2Metadata[] - object
Store stringExt Id - -(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.
- tenant
Id string
- alternate_
fqdns Sequence[ObjectStore Certificate V2Alternate Fqdn Args] - alternate_
ips Sequence[ObjectStore Certificate V2Alternate Ip Args] - ext_
id str - -(Required) The UUID of the certificate of an Object store.
- links
Sequence[Object
Store Certificate V2Link Args] - metadatas
Sequence[Object
Store Certificate V2Metadata Args] - object_
store_ strext_ id - -(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
- alternate
Fqdns List<Property Map> - alternate
Ips List<Property Map> - ext
Id String - -(Required) The UUID of the certificate of an Object store.
- links List<Property Map>
- metadatas List<Property Map>
- object
Store StringExt Id - -(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.
- tenant
Id String
Supporting Types
ObjectStoreCertificateV2AlternateFqdn, ObjectStoreCertificateV2AlternateFqdnArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
ObjectStoreCertificateV2AlternateIp, ObjectStoreCertificateV2AlternateIpArgs
ObjectStoreCertificateV2AlternateIpIpv4, ObjectStoreCertificateV2AlternateIpIpv4Args
- Value string
- Prefix
Length int
- Value string
- Prefix
Length int
- value String
- prefix
Length Integer
- value string
- prefix
Length number
- value str
- prefix_
length int
- value String
- prefix
Length Number
ObjectStoreCertificateV2AlternateIpIpv6, ObjectStoreCertificateV2AlternateIpIpv6Args
- Value string
- Prefix
Length int
- Value string
- Prefix
Length int
- value String
- prefix
Length Integer
- value string
- prefix
Length number
- value str
- prefix_
length int
- value String
- prefix
Length Number
ObjectStoreCertificateV2Link, ObjectStoreCertificateV2LinkArgs
ObjectStoreCertificateV2Metadata, ObjectStoreCertificateV2MetadataArgs
- Category
Ids List<string> - Owner
Reference stringId - Owner
User stringName - Project
Name string - Project
Reference stringId
- Category
Ids []string - Owner
Reference stringId - Owner
User stringName - Project
Name string - Project
Reference stringId
- category
Ids List<String> - owner
Reference StringId - owner
User StringName - project
Name String - project
Reference StringId
- category
Ids string[] - owner
Reference stringId - owner
User stringName - project
Name string - project
Reference stringId
- category_
ids Sequence[str] - owner_
reference_ strid - owner_
user_ strname - project_
name str - project_
reference_ strid
- category
Ids List<String> - owner
Reference StringId - owner
User StringName - project
Name String - project
Reference StringId
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.