Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Data source for retrieving a Harness ApiKey.
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,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
parent_id: Optional[str] = None,
project_id: Optional[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,
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,
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)
public static Output<GetApiKeyResult> getApiKey(GetApiKeyArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getApiKey:getApiKey
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Account Identifier for the Entity
- Apikey
Type string - Type of the API Key
- Identifier string
- Unique identifier of the resource.
- Parent
Id string - Parent Identifier for the Entity
- Default
Time intTo Expire Token - Expiry time of the apiKey
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Account
Id string - Account Identifier for the Entity
- Apikey
Type string - Type of the API Key
- Identifier string
- Unique identifier of the resource.
- Parent
Id string - Parent Identifier for the Entity
- Default
Time intTo Expire Token - Expiry time of the apiKey
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- account
Id String - Account Identifier for the Entity
- apikey
Type String - Type of the API Key
- identifier String
- Unique identifier of the resource.
- parent
Id String - Parent Identifier for the Entity
- default
Time IntegerTo Expire Token - Expiry time of the apiKey
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- account
Id string - Account Identifier for the Entity
- apikey
Type string - Type of the API Key
- identifier string
- Unique identifier of the resource.
- parent
Id string - Parent Identifier for the Entity
- default
Time numberTo Expire Token - Expiry time of the apiKey
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- account_
id str - Account Identifier for the Entity
- apikey_
type str - Type of the API Key
- identifier str
- Unique identifier of the resource.
- parent_
id str - Parent Identifier for the Entity
- default_
time_ intto_ expire_ token - Expiry time of the apiKey
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- account
Id String - Account Identifier for the Entity
- apikey
Type String - Type of the API Key
- identifier String
- Unique identifier of the resource.
- parent
Id String - Parent Identifier for the Entity
- default
Time NumberTo Expire Token - Expiry time of the apiKey
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
getApiKey Result
The following output properties are available:
- Account
Id string - Account Identifier for the Entity
- Apikey
Type string - Type of the API Key
- Description string
- Description of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- Parent
Id string - Parent Identifier for the Entity
- List<string>
- Tags to associate with the resource.
- Default
Time intTo Expire Token - Expiry time of the apiKey
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Account
Id string - Account Identifier for the Entity
- Apikey
Type string - Type of the API Key
- Description string
- Description of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- Parent
Id string - Parent Identifier for the Entity
- []string
- Tags to associate with the resource.
- Default
Time intTo Expire Token - Expiry time of the apiKey
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- account
Id String - Account Identifier for the Entity
- apikey
Type String - Type of the API Key
- description String
- Description of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- parent
Id String - Parent Identifier for the Entity
- List<String>
- Tags to associate with the resource.
- default
Time IntegerTo Expire Token - Expiry time of the apiKey
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- account
Id string - Account Identifier for the Entity
- apikey
Type string - Type of the API Key
- description string
- Description of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- parent
Id string - Parent Identifier for the Entity
- string[]
- Tags to associate with the resource.
- default
Time numberTo Expire Token - Expiry time of the apiKey
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- account_
id str - Account Identifier for the Entity
- apikey_
type str - Type of the API Key
- description str
- Description of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the resource.
- parent_
id str - Parent Identifier for the Entity
- Sequence[str]
- Tags to associate with the resource.
- default_
time_ intto_ expire_ token - Expiry time of the apiKey
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- account
Id String - Account Identifier for the Entity
- apikey
Type String - Type of the API Key
- description String
- Description of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- parent
Id String - Parent Identifier for the Entity
- List<String>
- Tags to associate with the resource.
- default
Time NumberTo Expire Token - Expiry time of the apiKey
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
