Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getFoundationCentralApiKeys
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Key
Uuid string - UUID of the key which needs to be fetched.
 
- Key
Uuid string - UUID of the key which needs to be fetched.
 
- key
Uuid String - UUID of the key which needs to be fetched.
 
- key
Uuid string - UUID of the key which needs to be fetched.
 
- key_
uuid str - UUID of the key which needs to be fetched.
 
- key
Uuid 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.
 - Api
Key string - Api key in string format.
 - Created
Timestamp string - Time when the api key was created.
 - Current
Time string - Current time of Foundation Central.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Key
Uuid string - UUID of the api key.
 
- Alias string
 - Alias of the api key.
 - Api
Key string - Api key in string format.
 - Created
Timestamp string - Time when the api key was created.
 - Current
Time string - Current time of Foundation Central.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Key
Uuid string - UUID of the api key.
 
- alias String
 - Alias of the api key.
 - api
Key String - Api key in string format.
 - created
Timestamp String - Time when the api key was created.
 - current
Time String - Current time of Foundation Central.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - key
Uuid String - UUID of the api key.
 
- alias string
 - Alias of the api key.
 - api
Key string - Api key in string format.
 - created
Timestamp string - Time when the api key was created.
 - current
Time string - Current time of Foundation Central.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - key
Uuid 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.
 - api
Key String - Api key in string format.
 - created
Timestamp String - Time when the api key was created.
 - current
Time String - Current time of Foundation Central.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - key
Uuid 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 
nutanixTerraform Provider.