harness.platform.getApiKey
Explore with Pulumi AI
Using getApiKey
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 getApiKey(args: GetApiKeyArgs, opts?: InvokeOptions): Promise<GetApiKeyResult>
function getApiKeyOutput(args: GetApiKeyOutputArgs, opts?: InvokeOptions): Output<GetApiKeyResult>
def get_api_key(account_id: Optional[str] = None,
apikey_type: Optional[str] = None,
default_time_to_expire_token: Optional[int] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
parent_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetApiKeyResult
def get_api_key_output(account_id: Optional[pulumi.Input[str]] = None,
apikey_type: Optional[pulumi.Input[str]] = None,
default_time_to_expire_token: Optional[pulumi.Input[int]] = None,
description: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
parent_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiKeyResult]
func GetApiKey(ctx *Context, args *GetApiKeyArgs, opts ...InvokeOption) (*GetApiKeyResult, error)
func GetApiKeyOutput(ctx *Context, args *GetApiKeyOutputArgs, opts ...InvokeOption) GetApiKeyResultOutput
> Note: This function is named GetApiKey
in the Go SDK.
public static class GetApiKey
{
public static Task<GetApiKeyResult> InvokeAsync(GetApiKeyArgs args, InvokeOptions? opts = null)
public static Output<GetApiKeyResult> Invoke(GetApiKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApiKeyResult> getApiKey(GetApiKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getApiKey:getApiKey
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Apikey
Type string - Identifier string
- Name string
- Parent
Id string - Default
Time intTo Expire Token - Description string
- Org
Id string - Project
Id string - Dictionary<string, string>
- Account
Id string - Apikey
Type string - Identifier string
- Name string
- Parent
Id string - Default
Time intTo Expire Token - Description string
- Org
Id string - Project
Id string - map[string]string
- account
Id String - apikey
Type String - identifier String
- name String
- parent
Id String - default
Time IntegerTo Expire Token - description String
- org
Id String - project
Id String - Map<String,String>
- account
Id string - apikey
Type string - identifier string
- name string
- parent
Id string - default
Time numberTo Expire Token - description string
- org
Id string - project
Id string - {[key: string]: string}
- account_
id str - apikey_
type str - identifier str
- name str
- parent_
id str - default_
time_ intto_ expire_ token - description str
- org_
id str - project_
id str - Mapping[str, str]
- account
Id String - apikey
Type String - identifier String
- name String
- parent
Id String - default
Time NumberTo Expire Token - description String
- org
Id String - project
Id String - Map<String>
getApiKey Result
The following output properties are available:
- Account
Id string - Apikey
Type string - Id string
The provider-assigned unique ID for this managed resource.
- Identifier string
- Name string
- Parent
Id string - Default
Time intTo Expire Token - Description string
- Org
Id string - Project
Id string - Dictionary<string, string>
- Account
Id string - Apikey
Type string - Id string
The provider-assigned unique ID for this managed resource.
- Identifier string
- Name string
- Parent
Id string - Default
Time intTo Expire Token - Description string
- Org
Id string - Project
Id string - map[string]string
- account
Id String - apikey
Type String - id String
The provider-assigned unique ID for this managed resource.
- identifier String
- name String
- parent
Id String - default
Time IntegerTo Expire Token - description String
- org
Id String - project
Id String - Map<String,String>
- account
Id string - apikey
Type string - id string
The provider-assigned unique ID for this managed resource.
- identifier string
- name string
- parent
Id string - default
Time numberTo Expire Token - description string
- org
Id string - project
Id string - {[key: string]: string}
- account_
id str - apikey_
type str - id str
The provider-assigned unique ID for this managed resource.
- identifier str
- name str
- parent_
id str - default_
time_ intto_ expire_ token - description str
- org_
id str - project_
id str - Mapping[str, str]
- account
Id String - apikey
Type String - id String
The provider-assigned unique ID for this managed resource.
- identifier String
- name String
- parent
Id String - default
Time NumberTo Expire Token - description String
- org
Id String - project
Id String - Map<String>
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harness
Terraform Provider.