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

nutanix.getFoundationCentralListApiKeys

Explore with Pulumi AI

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

    List all the api keys created in Foundation Central.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const apiKeysList = nutanix.getFoundationCentralListApiKeys({});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    api_keys_list = nutanix.get_foundation_central_list_api_keys()
    
    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.GetFoundationCentralListApiKeys(ctx, nil, 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.GetFoundationCentralListApiKeys.Invoke();
    
    });
    
    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.GetFoundationCentralListApiKeysArgs;
    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.getFoundationCentralListApiKeys();
    
        }
    }
    
    variables:
      apiKeysList:
        fn::invoke:
          Function: nutanix:getFoundationCentralListApiKeys
          Arguments: {}
    

    Using getFoundationCentralListApiKeys

    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 getFoundationCentralListApiKeys(args: GetFoundationCentralListApiKeysArgs, opts?: InvokeOptions): Promise<GetFoundationCentralListApiKeysResult>
    function getFoundationCentralListApiKeysOutput(args: GetFoundationCentralListApiKeysOutputArgs, opts?: InvokeOptions): Output<GetFoundationCentralListApiKeysResult>
    def get_foundation_central_list_api_keys(length: Optional[int] = None,
                                             metadata: Optional[GetFoundationCentralListApiKeysMetadata] = None,
                                             offset: Optional[int] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetFoundationCentralListApiKeysResult
    def get_foundation_central_list_api_keys_output(length: Optional[pulumi.Input[int]] = None,
                                             metadata: Optional[pulumi.Input[GetFoundationCentralListApiKeysMetadataArgs]] = None,
                                             offset: Optional[pulumi.Input[int]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetFoundationCentralListApiKeysResult]
    func GetFoundationCentralListApiKeys(ctx *Context, args *GetFoundationCentralListApiKeysArgs, opts ...InvokeOption) (*GetFoundationCentralListApiKeysResult, error)
    func GetFoundationCentralListApiKeysOutput(ctx *Context, args *GetFoundationCentralListApiKeysOutputArgs, opts ...InvokeOption) GetFoundationCentralListApiKeysResultOutput

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

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

    The following arguments are supported:

    Length int
    The number of records retrieved.
    Metadata PiersKarsenbarg.Nutanix.Inputs.GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    Offset int
    Offset from the start of the object list.
    Length int
    The number of records retrieved.
    Metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    Offset int
    Offset from the start of the object list.
    length Integer
    The number of records retrieved.
    metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    offset Integer
    Offset from the start of the object list.
    length number
    The number of records retrieved.
    metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    offset number
    Offset from the start of the object list.
    length int
    The number of records retrieved.
    metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    offset int
    Offset from the start of the object list.
    length Number
    The number of records retrieved.
    metadata Property Map
    List metadata output for all list apis.
    offset Number
    Offset from the start of the object list.

    getFoundationCentralListApiKeys Result

    The following output properties are available:

    ApiKeys List<PiersKarsenbarg.Nutanix.Outputs.GetFoundationCentralListApiKeysApiKey>
    Id string
    The provider-assigned unique ID for this managed resource.
    Length int
    The number of records retrieved.
    Metadata PiersKarsenbarg.Nutanix.Outputs.GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    Offset int
    Offset from the start of the object list.
    ApiKeys []GetFoundationCentralListApiKeysApiKey
    Id string
    The provider-assigned unique ID for this managed resource.
    Length int
    The number of records retrieved.
    Metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    Offset int
    Offset from the start of the object list.
    apiKeys List<GetFoundationCentralListApiKeysApiKey>
    id String
    The provider-assigned unique ID for this managed resource.
    length Integer
    The number of records retrieved.
    metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    offset Integer
    Offset from the start of the object list.
    apiKeys GetFoundationCentralListApiKeysApiKey[]
    id string
    The provider-assigned unique ID for this managed resource.
    length number
    The number of records retrieved.
    metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    offset number
    Offset from the start of the object list.
    api_keys Sequence[GetFoundationCentralListApiKeysApiKey]
    id str
    The provider-assigned unique ID for this managed resource.
    length int
    The number of records retrieved.
    metadata GetFoundationCentralListApiKeysMetadata
    List metadata output for all list apis.
    offset int
    Offset from the start of the object list.
    apiKeys List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    length Number
    The number of records retrieved.
    metadata Property Map
    List metadata output for all list apis.
    offset Number
    Offset from the start of the object list.

    Supporting Types

    GetFoundationCentralListApiKeysApiKey

    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.
    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.
    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.
    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.
    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.
    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.
    keyUuid String
    UUID of the api key.

    GetFoundationCentralListApiKeysMetadata

    Length int
    The number of records retrieved.
    Offset int
    Offset from the start of the object list.
    TotalMatches int
    Total matches found.
    Length int
    The number of records retrieved.
    Offset int
    Offset from the start of the object list.
    TotalMatches int
    Total matches found.
    length Integer
    The number of records retrieved.
    offset Integer
    Offset from the start of the object list.
    totalMatches Integer
    Total matches found.
    length number
    The number of records retrieved.
    offset number
    Offset from the start of the object list.
    totalMatches number
    Total matches found.
    length int
    The number of records retrieved.
    offset int
    Offset from the start of the object list.
    total_matches int
    Total matches found.
    length Number
    The number of records retrieved.
    offset Number
    Offset from the start of the object list.
    totalMatches Number
    Total matches found.

    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