1. Packages
  2. Nutanix
  3. API Docs
  4. getFoundationCentralApiKeys
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

nutanix.getFoundationCentralApiKeys

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

    Get an api key given its UUID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const apiKeysList = nutanix.getFoundationCentralApiKeys({
        keyUuid: "<KEY_UUID>",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    api_keys_list = nutanix.get_foundation_central_api_keys(key_uuid="<KEY_UUID>")
    
    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.LookupFoundationCentralApiKeys(ctx, &nutanix.LookupFoundationCentralApiKeysArgs{
    			KeyUuid: "<KEY_UUID>",
    		}, 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 apiKeysList = Nutanix.GetFoundationCentralApiKeys.Invoke(new()
        {
            KeyUuid = "<KEY_UUID>",
        });
    
    });
    
    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.GetFoundationCentralApiKeysArgs;
    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 apiKeysList = NutanixFunctions.getFoundationCentralApiKeys(GetFoundationCentralApiKeysArgs.builder()
                .keyUuid("<KEY_UUID>")
                .build());
    
        }
    }
    
    variables:
      apiKeysList:
        fn::invoke:
          Function: nutanix:getFoundationCentralApiKeys
          Arguments:
            keyUuid: <KEY_UUID>
    

    Using getFoundationCentralApiKeys

    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 getFoundationCentralApiKeys(args: GetFoundationCentralApiKeysArgs, opts?: InvokeOptions): Promise<GetFoundationCentralApiKeysResult>
    function getFoundationCentralApiKeysOutput(args: GetFoundationCentralApiKeysOutputArgs, opts?: InvokeOptions): Output<GetFoundationCentralApiKeysResult>
    def get_foundation_central_api_keys(key_uuid: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetFoundationCentralApiKeysResult
    def get_foundation_central_api_keys_output(key_uuid: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetFoundationCentralApiKeysResult]
    func LookupFoundationCentralApiKeys(ctx *Context, args *LookupFoundationCentralApiKeysArgs, opts ...InvokeOption) (*LookupFoundationCentralApiKeysResult, error)
    func LookupFoundationCentralApiKeysOutput(ctx *Context, args *LookupFoundationCentralApiKeysOutputArgs, opts ...InvokeOption) LookupFoundationCentralApiKeysResultOutput

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

    public static class GetFoundationCentralApiKeys 
    {
        public static Task<GetFoundationCentralApiKeysResult> InvokeAsync(GetFoundationCentralApiKeysArgs args, InvokeOptions? opts = null)
        public static Output<GetFoundationCentralApiKeysResult> Invoke(GetFoundationCentralApiKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFoundationCentralApiKeysResult> getFoundationCentralApiKeys(GetFoundationCentralApiKeysArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getFoundationCentralApiKeys:getFoundationCentralApiKeys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    KeyUuid string
    UUID of the key which needs to be fetched.
    KeyUuid string
    UUID of the key which needs to be fetched.
    keyUuid String
    UUID of the key which needs to be fetched.
    keyUuid string
    UUID of the key which needs to be fetched.
    key_uuid str
    UUID of the key which needs to be fetched.
    keyUuid String
    UUID of the key which needs to be fetched.

    getFoundationCentralApiKeys Result

    The following output properties are available:

    Alias string
    Alias of the api key.
    ApiKey string
    Api key in string format.
    CreatedTimestamp string
    Time when the api key was created.
    CurrentTime string
    Current time of Foundation Central.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyUuid string
    UUID of the api key.
    Alias string
    Alias of the api key.
    ApiKey string
    Api key in string format.
    CreatedTimestamp string
    Time when the api key was created.
    CurrentTime string
    Current time of Foundation Central.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyUuid string
    UUID of the api key.
    alias String
    Alias of the api key.
    apiKey String
    Api key in string format.
    createdTimestamp String
    Time when the api key was created.
    currentTime String
    Current time of Foundation Central.
    id String
    The provider-assigned unique ID for this managed resource.
    keyUuid String
    UUID of the api key.
    alias string
    Alias of the api key.
    apiKey string
    Api key in string format.
    createdTimestamp string
    Time when the api key was created.
    currentTime string
    Current time of Foundation Central.
    id string
    The provider-assigned unique ID for this managed resource.
    keyUuid string
    UUID of the api key.
    alias str
    Alias of the api key.
    api_key str
    Api key in string format.
    created_timestamp str
    Time when the api key was created.
    current_time str
    Current time of Foundation Central.
    id str
    The provider-assigned unique ID for this managed resource.
    key_uuid str
    UUID of the api key.
    alias String
    Alias of the api key.
    apiKey String
    Api key in string format.
    createdTimestamp String
    Time when the api key was created.
    currentTime String
    Current time of Foundation Central.
    id String
    The provider-assigned unique ID for this managed resource.
    keyUuid String
    UUID of the api key.

    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.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg