Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getFoundationCentralListApiKeys
Explore with Pulumi AI
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, &nutanix.GetFoundationCentralListApiKeysArgs{}, 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
Piers
Karsenbarg. Nutanix. Inputs. Get Foundation Central List Api Keys Metadata - 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
Get
Foundation Central List Api Keys Metadata - 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
Get
Foundation Central List Api Keys Metadata - 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
Get
Foundation Central List Api Keys Metadata - 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
Get
Foundation Central List Api Keys Metadata - 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:
- Api
Keys List<PiersKarsenbarg. Nutanix. Outputs. Get Foundation Central List Api Keys Api Key> - Id string
- The provider-assigned unique ID for this managed resource.
- Length int
- The number of records retrieved.
- Metadata
Piers
Karsenbarg. Nutanix. Outputs. Get Foundation Central List Api Keys Metadata - List metadata output for all list apis.
- Offset int
- Offset from the start of the object list.
- Api
Keys []GetFoundation Central List Api Keys Api Key - Id string
- The provider-assigned unique ID for this managed resource.
- Length int
- The number of records retrieved.
- Metadata
Get
Foundation Central List Api Keys Metadata - List metadata output for all list apis.
- Offset int
- Offset from the start of the object list.
- api
Keys List<GetFoundation Central List Api Keys Api Key> - id String
- The provider-assigned unique ID for this managed resource.
- length Integer
- The number of records retrieved.
- metadata
Get
Foundation Central List Api Keys Metadata - List metadata output for all list apis.
- offset Integer
- Offset from the start of the object list.
- api
Keys GetFoundation Central List Api Keys Api Key[] - id string
- The provider-assigned unique ID for this managed resource.
- length number
- The number of records retrieved.
- metadata
Get
Foundation Central List Api Keys Metadata - List metadata output for all list apis.
- offset number
- Offset from the start of the object list.
- api_
keys Sequence[GetFoundation Central List Api Keys Api Key] - id str
- The provider-assigned unique ID for this managed resource.
- length int
- The number of records retrieved.
- metadata
Get
Foundation Central List Api Keys Metadata - List metadata output for all list apis.
- offset int
- Offset from the start of the object list.
- api
Keys 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- key
Uuid String - UUID of the api key.
GetFoundationCentralListApiKeysMetadata
- Length int
- The number of records retrieved.
- Offset int
- Offset from the start of the object list.
- Total
Matches int - 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 Integer
- The number of records retrieved.
- offset Integer
- Offset from the start of the object list.
- total
Matches Integer - Total matches found.
- length number
- The number of records retrieved.
- offset number
- Offset from the start of the object list.
- total
Matches 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.
- total
Matches 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.