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

    Fetches the details of a key management server identified by its unique identifier (ext_id).

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const kms = nutanix.getKeyManagementServerV2({
        extId: "aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    kms = nutanix.get_key_management_server_v2(ext_id="aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1")
    
    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.GetKeyManagementServerV2(ctx, &nutanix.LookupKeyManagementServerV2Args{
    			ExtId: "aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1",
    		}, 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 = Nutanix.GetKeyManagementServerV2.Invoke(new()
        {
            ExtId = "aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1",
        });
    
    });
    
    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.GetKeyManagementServerV2Args;
    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 = NutanixFunctions.getKeyManagementServerV2(GetKeyManagementServerV2Args.builder()
                .extId("aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1")
                .build());
    
        }
    }
    
    variables:
      kms:
        fn::invoke:
          function: nutanix:getKeyManagementServerV2
          arguments:
            extId: aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1
    
    pulumi {
      required_providers {
        nutanix = {
          source = "pulumi/nutanix"
        }
      }
    }
    
    data "nutanix_getkeymanagementserverv2" "kms" {
      ext_id = "aa300b88-8560-4eb3-ba6c-49b0ff8c9cc1"
    }
    

    Using getKeyManagementServerV2

    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 getKeyManagementServerV2(args: GetKeyManagementServerV2Args, opts?: InvokeOptions): Promise<GetKeyManagementServerV2Result>
    function getKeyManagementServerV2Output(args: GetKeyManagementServerV2OutputArgs, opts?: InvokeOptions): Output<GetKeyManagementServerV2Result>
    def get_key_management_server_v2(ext_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetKeyManagementServerV2Result
    def get_key_management_server_v2_output(ext_id: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetKeyManagementServerV2Result]
    func LookupKeyManagementServerV2(ctx *Context, args *LookupKeyManagementServerV2Args, opts ...InvokeOption) (*LookupKeyManagementServerV2Result, error)
    func LookupKeyManagementServerV2Output(ctx *Context, args *LookupKeyManagementServerV2OutputArgs, opts ...InvokeOption) LookupKeyManagementServerV2ResultOutput

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

    public static class GetKeyManagementServerV2 
    {
        public static Task<GetKeyManagementServerV2Result> InvokeAsync(GetKeyManagementServerV2Args args, InvokeOptions? opts = null)
        public static Output<GetKeyManagementServerV2Result> Invoke(GetKeyManagementServerV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKeyManagementServerV2Result> getKeyManagementServerV2(GetKeyManagementServerV2Args args, InvokeOptions options)
    public static Output<GetKeyManagementServerV2Result> getKeyManagementServerV2(GetKeyManagementServerV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: nutanix:index/getKeyManagementServerV2:getKeyManagementServerV2
      arguments:
        # arguments dictionary
    data "nutanix_getkeymanagementserverv2" "name" {
        # arguments
    }

    The following arguments are supported:

    ExtId string
    Unique identifier for the key management server of type UUID.
    ExtId string
    Unique identifier for the key management server of type UUID.
    ext_id string
    Unique identifier for the key management server of type UUID.
    extId String
    Unique identifier for the key management server of type UUID.
    extId string
    Unique identifier for the key management server of type UUID.
    ext_id str
    Unique identifier for the key management server of type UUID.
    extId String
    Unique identifier for the key management server of type UUID.

    getKeyManagementServerV2 Result

    The following output properties are available:

    AccessInformations List<PiersKarsenbarg.Nutanix.Outputs.GetKeyManagementServerV2AccessInformation>
    • 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<PiersKarsenbarg.Nutanix.Outputs.GetKeyManagementServerV2Link>
    • 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 []GetKeyManagementServerV2AccessInformation
    • 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []GetKeyManagementServerV2Link
    • 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.
    id string
    The provider-assigned unique ID for this managed resource.
    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<GetKeyManagementServerV2AccessInformation>
    • 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.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<GetKeyManagementServerV2Link>
    • 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 GetKeyManagementServerV2AccessInformation[]
    • 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.
    id string
    The provider-assigned unique ID for this managed resource.
    links GetKeyManagementServerV2Link[]
    • 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[GetKeyManagementServerV2AccessInformation]
    • 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.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[GetKeyManagementServerV2Link]
    • 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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.

    Supporting Types

    GetKeyManagementServerV2AccessInformation

    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.

    GetKeyManagementServerV2AccessInformationAzureKeyVault

    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.

    GetKeyManagementServerV2AccessInformationKmipKeyVault

    CaName string
    Name of the Certificate Authority.
    CaPem string
    Cert PEM File.
    CertPem string
    Cert PEM.
    EndpointUrls List<PiersKarsenbarg.Nutanix.Inputs.GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrl>
    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 []GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrl
    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<GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrl>
    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 GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrl[]
    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[GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrl]
    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

    GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrl

    IpAddresses List<PiersKarsenbarg.Nutanix.Inputs.GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddress>
    IP address of the External Key Manager server.
    Port int
    Port of the External Key Manager server.
    IpAddresses []GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddress
    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<GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddress>
    IP address of the External Key Manager server.
    port Integer
    Port of the External Key Manager server.
    ipAddresses GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddress[]
    IP address of the External Key Manager server.
    port number
    Port of the External Key Manager server.
    ip_addresses Sequence[GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddress]
    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.

    GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddress

    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.

    GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddressFqdn

    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.

    GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddressIpv4

    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.

    GetKeyManagementServerV2AccessInformationKmipKeyVaultEndpointUrlIpAddressIpv6

    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