1. Packages
  2. Packages
  3. Nutanix
  4. API Docs
  5. getKeyManagementServersV2
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

    A Key Management Server (KMS) is a critical component in enterprise data security that handles the lifecycle of cryptographic keys—including creation, storage, rotation, and deletion. In Nutanix environments, KMS integrates with data-at-rest encryption to protect sensitive information stored on clusters. By centralizing key management, organizations can enforce consistent security policies, meet compliance requirements (such as HIPAA, PCI-DSS, and GDPR), and maintain control over who can access encrypted data.

    This datasource provides a comprehensive list of all key management servers configured in your environment, including their access details and relevant attributes.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const kms_list = nutanix.getKeyManagementServersV2({});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    kms_list = nutanix.get_key_management_servers_v2()
    
    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.GetKeyManagementServersV2(ctx, map[string]interface{}{}, 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 kms_list = Nutanix.GetKeyManagementServersV2.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    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 kms-list = NutanixFunctions.getKeyManagementServersV2(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      kms-list:
        fn::invoke:
          function: nutanix:getKeyManagementServersV2
          arguments: {}
    
    pulumi {
      required_providers {
        nutanix = {
          source = "pulumi/nutanix"
        }
      }
    }
    
    data "nutanix_getkeymanagementserversv2" "kms-list" {
    }
    

    Using getKeyManagementServersV2

    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 getKeyManagementServersV2(opts?: InvokeOptions): Promise<GetKeyManagementServersV2Result>
    function getKeyManagementServersV2Output(opts?: InvokeOptions): Output<GetKeyManagementServersV2Result>
    def get_key_management_servers_v2(opts: Optional[InvokeOptions] = None) -> GetKeyManagementServersV2Result
    def get_key_management_servers_v2_output(opts: Optional[InvokeOptions] = None) -> Output[GetKeyManagementServersV2Result]
    func GetKeyManagementServersV2(ctx *Context, opts ...InvokeOption) (*GetKeyManagementServersV2Result, error)
    func GetKeyManagementServersV2Output(ctx *Context, opts ...InvokeOption) GetKeyManagementServersV2ResultOutput

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

    public static class GetKeyManagementServersV2 
    {
        public static Task<GetKeyManagementServersV2Result> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetKeyManagementServersV2Result> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKeyManagementServersV2Result> getKeyManagementServersV2(InvokeOptions options)
    public static Output<GetKeyManagementServersV2Result> getKeyManagementServersV2(InvokeOptions options)
    
    fn::invoke:
      function: nutanix:index/getKeyManagementServersV2:getKeyManagementServersV2
      arguments:
        # arguments dictionary
    data "nutanix_getkeymanagementserversv2" "name" {
        # arguments
    }

    getKeyManagementServersV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Kms List<PiersKarsenbarg.Nutanix.Outputs.GetKeyManagementServersV2Km>
    • List of key management servers (KMS).
    Id string
    The provider-assigned unique ID for this managed resource.
    Kms []GetKeyManagementServersV2Km
    • List of key management servers (KMS).
    id string
    The provider-assigned unique ID for this managed resource.
    kms list(object)
    • List of key management servers (KMS).
    id String
    The provider-assigned unique ID for this managed resource.
    kms List<GetKeyManagementServersV2Km>
    • List of key management servers (KMS).
    id string
    The provider-assigned unique ID for this managed resource.
    kms GetKeyManagementServersV2Km[]
    • List of key management servers (KMS).
    id str
    The provider-assigned unique ID for this managed resource.
    kms Sequence[GetKeyManagementServersV2Km]
    • List of key management servers (KMS).
    id String
    The provider-assigned unique ID for this managed resource.
    kms List<Property Map>
    • List of key management servers (KMS).

    Supporting Types

    GetKeyManagementServersV2Km

    AccessInformations List<PiersKarsenbarg.Nutanix.Inputs.GetKeyManagementServersV2KmAccessInformation>
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    CreationTimestamp string
    • The timestamp when the key management server was created.
    ExtId string
    A globally unique identifier of an instance that is suitable for external consumption.
    Links List<PiersKarsenbarg.Nutanix.Inputs.GetKeyManagementServersV2KmLink>
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    Name string
    • Name of the key management server (KMS).
    TenantId string
    Tetant identifier for the Azure Key Vault.
    AccessInformations []GetKeyManagementServersV2KmAccessInformation
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    CreationTimestamp string
    • The timestamp when the key management server was created.
    ExtId string
    A globally unique identifier of an instance that is suitable for external consumption.
    Links []GetKeyManagementServersV2KmLink
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    Name string
    • Name of the key management server (KMS).
    TenantId string
    Tetant identifier for the Azure Key Vault.
    access_informations list(object)
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    creation_timestamp string
    • The timestamp when the key management server was created.
    ext_id string
    A globally unique identifier of an instance that is suitable for external consumption.
    links list(object)
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name string
    • Name of the key management server (KMS).
    tenant_id string
    Tetant identifier for the Azure Key Vault.
    accessInformations List<GetKeyManagementServersV2KmAccessInformation>
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    creationTimestamp String
    • The timestamp when the key management server was created.
    extId String
    A globally unique identifier of an instance that is suitable for external consumption.
    links List<GetKeyManagementServersV2KmLink>
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name String
    • Name of the key management server (KMS).
    tenantId String
    Tetant identifier for the Azure Key Vault.
    accessInformations GetKeyManagementServersV2KmAccessInformation[]
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    creationTimestamp string
    • The timestamp when the key management server was created.
    extId string
    A globally unique identifier of an instance that is suitable for external consumption.
    links GetKeyManagementServersV2KmLink[]
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name string
    • Name of the key management server (KMS).
    tenantId string
    Tetant identifier for the Azure Key Vault.
    access_informations Sequence[GetKeyManagementServersV2KmAccessInformation]
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    creation_timestamp str
    • The timestamp when the key management server was created.
    ext_id str
    A globally unique identifier of an instance that is suitable for external consumption.
    links Sequence[GetKeyManagementServersV2KmLink]
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name str
    • Name of the key management server (KMS).
    tenant_id str
    Tetant identifier for the Azure Key Vault.
    accessInformations List<Property Map>
    • KMS Access information, it can be Azure Key Vault access information or KMIP based External Key Manager Access Information.
    creationTimestamp String
    • The timestamp when the key management server was created.
    extId String
    A globally unique identifier of an instance that is suitable for external consumption.
    links List<Property Map>
    • A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name String
    • Name of the key management server (KMS).
    tenantId String
    Tetant identifier for the Azure Key Vault.

    GetKeyManagementServersV2KmAccessInformation

    azure_key_vaults list(object)
    • Access information for the Azure Key Vault.
    kmip_key_vaults list(object)
    • Access information for the KMIP Key Vault.
    azureKeyVaults List<Property Map>
    • Access information for the Azure Key Vault.
    kmipKeyVaults List<Property Map>
    • Access information for the KMIP Key Vault.

    GetKeyManagementServersV2KmAccessInformationAzureKeyVault

    ClientId string
    Client identifier for the Azure Key Vault.
    CredentialExpiryDate string
    When the client secret is going to expire.
    EndpointUrl string
    Endpoint URL for the Azure Key Vault.
    KeyId string
    Master key identifier for the Azure Key Vault.
    TenantId string
    Tetant identifier for the Azure Key Vault.
    TruncatedClientSecret string
    Truncated client secret for the Azure Key Vault.
    ClientId string
    Client identifier for the Azure Key Vault.
    CredentialExpiryDate string
    When the client secret is going to expire.
    EndpointUrl string
    Endpoint URL for the Azure Key Vault.
    KeyId string
    Master key identifier for the Azure Key Vault.
    TenantId string
    Tetant identifier for the Azure Key Vault.
    TruncatedClientSecret string
    Truncated client secret for the Azure Key Vault.
    client_id string
    Client identifier for the Azure Key Vault.
    credential_expiry_date string
    When the client secret is going to expire.
    endpoint_url string
    Endpoint URL for the Azure Key Vault.
    key_id string
    Master key identifier for the Azure Key Vault.
    tenant_id string
    Tetant identifier for the Azure Key Vault.
    truncated_client_secret string
    Truncated client secret for the Azure Key Vault.
    clientId String
    Client identifier for the Azure Key Vault.
    credentialExpiryDate String
    When the client secret is going to expire.
    endpointUrl String
    Endpoint URL for the Azure Key Vault.
    keyId String
    Master key identifier for the Azure Key Vault.
    tenantId String
    Tetant identifier for the Azure Key Vault.
    truncatedClientSecret String
    Truncated client secret for the Azure Key Vault.
    clientId string
    Client identifier for the Azure Key Vault.
    credentialExpiryDate string
    When the client secret is going to expire.
    endpointUrl string
    Endpoint URL for the Azure Key Vault.
    keyId string
    Master key identifier for the Azure Key Vault.
    tenantId string
    Tetant identifier for the Azure Key Vault.
    truncatedClientSecret string
    Truncated client secret for the Azure Key Vault.
    client_id str
    Client identifier for the Azure Key Vault.
    credential_expiry_date str
    When the client secret is going to expire.
    endpoint_url str
    Endpoint URL for the Azure Key Vault.
    key_id str
    Master key identifier for the Azure Key Vault.
    tenant_id str
    Tetant identifier for the Azure Key Vault.
    truncated_client_secret str
    Truncated client secret for the Azure Key Vault.
    clientId String
    Client identifier for the Azure Key Vault.
    credentialExpiryDate String
    When the client secret is going to expire.
    endpointUrl String
    Endpoint URL for the Azure Key Vault.
    keyId String
    Master key identifier for the Azure Key Vault.
    tenantId String
    Tetant identifier for the Azure Key Vault.
    truncatedClientSecret String
    Truncated client secret for the Azure Key Vault.

    GetKeyManagementServersV2KmAccessInformationKmipKeyVault

    CaName string
    Name of the Certificate Authority.
    CaPem string
    Cert PEM File.
    CertPem string
    Cert PEM.
    EndpointUrls List<PiersKarsenbarg.Nutanix.Inputs.GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrl>
    Endpoint URL for the Azure Key Vault.
    PrivateKey string
    CaName string
    Name of the Certificate Authority.
    CaPem string
    Cert PEM File.
    CertPem string
    Cert PEM.
    EndpointUrls []GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrl
    Endpoint URL for the Azure Key Vault.
    PrivateKey string
    ca_name string
    Name of the Certificate Authority.
    ca_pem string
    Cert PEM File.
    cert_pem string
    Cert PEM.
    endpoint_urls list(object)
    Endpoint URL for the Azure Key Vault.
    private_key string
    caName String
    Name of the Certificate Authority.
    caPem String
    Cert PEM File.
    certPem String
    Cert PEM.
    endpointUrls List<GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrl>
    Endpoint URL for the Azure Key Vault.
    privateKey String
    caName string
    Name of the Certificate Authority.
    caPem string
    Cert PEM File.
    certPem string
    Cert PEM.
    endpointUrls GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrl[]
    Endpoint URL for the Azure Key Vault.
    privateKey string
    ca_name str
    Name of the Certificate Authority.
    ca_pem str
    Cert PEM File.
    cert_pem str
    Cert PEM.
    endpoint_urls Sequence[GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrl]
    Endpoint URL for the Azure Key Vault.
    private_key str
    caName String
    Name of the Certificate Authority.
    caPem String
    Cert PEM File.
    certPem String
    Cert PEM.
    endpointUrls List<Property Map>
    Endpoint URL for the Azure Key Vault.
    privateKey String

    GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrl

    IpAddresses List<PiersKarsenbarg.Nutanix.Inputs.GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddress>
    IP address of the External Key Manager server.
    Port int
    Port of the External Key Manager server.
    IpAddresses []GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddress
    IP address of the External Key Manager server.
    Port int
    Port of the External Key Manager server.
    ip_addresses list(object)
    IP address of the External Key Manager server.
    port number
    Port of the External Key Manager server.
    ipAddresses List<GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddress>
    IP address of the External Key Manager server.
    port Integer
    Port of the External Key Manager server.
    ipAddresses GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddress[]
    IP address of the External Key Manager server.
    port number
    Port of the External Key Manager server.
    ip_addresses Sequence[GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddress]
    IP address of the External Key Manager server.
    port int
    Port of the External Key Manager server.
    ipAddresses List<Property Map>
    IP address of the External Key Manager server.
    port Number
    Port of the External Key Manager server.

    GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddress

    fqdns list(object)
    FQDN of the External Key Manager server.
    ipv4s list(object)
    IPv4 address of the External Key Manager server.
    ipv6s list(object)
    IPv6 address of the External Key Manager server.
    fqdns List<Property Map>
    FQDN of the External Key Manager server.
    ipv4s List<Property Map>
    IPv4 address of the External Key Manager server.
    ipv6s List<Property Map>
    IPv6 address of the External Key Manager server.

    GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddressFqdn

    Value string
    FQDN of the External Key Manager server.
    Value string
    FQDN of the External Key Manager server.
    value string
    FQDN of the External Key Manager server.
    value String
    FQDN of the External Key Manager server.
    value string
    FQDN of the External Key Manager server.
    value str
    FQDN of the External Key Manager server.
    value String
    FQDN of the External Key Manager server.

    GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddressIpv4

    Value string
    FQDN of the External Key Manager server.
    PrefixLength int
    Prefix length of the IPv6 address.
    Value string
    FQDN of the External Key Manager server.
    PrefixLength int
    Prefix length of the IPv6 address.
    value string
    FQDN of the External Key Manager server.
    prefix_length number
    Prefix length of the IPv6 address.
    value String
    FQDN of the External Key Manager server.
    prefixLength Integer
    Prefix length of the IPv6 address.
    value string
    FQDN of the External Key Manager server.
    prefixLength number
    Prefix length of the IPv6 address.
    value str
    FQDN of the External Key Manager server.
    prefix_length int
    Prefix length of the IPv6 address.
    value String
    FQDN of the External Key Manager server.
    prefixLength Number
    Prefix length of the IPv6 address.

    GetKeyManagementServersV2KmAccessInformationKmipKeyVaultEndpointUrlIpAddressIpv6

    Value string
    FQDN of the External Key Manager server.
    PrefixLength int
    Prefix length of the IPv6 address.
    Value string
    FQDN of the External Key Manager server.
    PrefixLength int
    Prefix length of the IPv6 address.
    value string
    FQDN of the External Key Manager server.
    prefix_length number
    Prefix length of the IPv6 address.
    value String
    FQDN of the External Key Manager server.
    prefixLength Integer
    Prefix length of the IPv6 address.
    value string
    FQDN of the External Key Manager server.
    prefixLength number
    Prefix length of the IPv6 address.
    value str
    FQDN of the External Key Manager server.
    prefix_length int
    Prefix length of the IPv6 address.
    value String
    FQDN of the External Key Manager server.
    prefixLength Number
    Prefix length of the IPv6 address.
    Href string
    Rel string
    Href string
    Rel string
    href string
    rel string
    href String
    rel String
    href string
    rel string
    href str
    rel str
    href String
    rel String

    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