1. Packages
  2. Harness
  3. API Docs
  4. getCurrentAccount
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.getCurrentAccount

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Data source for retrieving information about the current Harness account

    Using getCurrentAccount

    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 getCurrentAccount(args: GetCurrentAccountArgs, opts?: InvokeOptions): Promise<GetCurrentAccountResult>
    function getCurrentAccountOutput(args: GetCurrentAccountOutputArgs, opts?: InvokeOptions): Output<GetCurrentAccountResult>
    def get_current_account(id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCurrentAccountResult
    def get_current_account_output(id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetCurrentAccountResult]
    func GetCurrentAccount(ctx *Context, args *GetCurrentAccountArgs, opts ...InvokeOption) (*GetCurrentAccountResult, error)
    func GetCurrentAccountOutput(ctx *Context, args *GetCurrentAccountOutputArgs, opts ...InvokeOption) GetCurrentAccountResultOutput

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

    public static class GetCurrentAccount 
    {
        public static Task<GetCurrentAccountResult> InvokeAsync(GetCurrentAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetCurrentAccountResult> Invoke(GetCurrentAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCurrentAccountResult> getCurrentAccount(GetCurrentAccountArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:index/getCurrentAccount:getCurrentAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id of the git connector.
    Id string
    Id of the git connector.
    id String
    Id of the git connector.
    id string
    Id of the git connector.
    id str
    Id of the git connector.
    id String
    Id of the git connector.

    getCurrentAccount Result

    The following output properties are available:

    AccountId string
    Id of the account.
    Endpoint string
    The url of the Harness control plane.
    Id string
    Id of the git connector.
    AccountId string
    Id of the account.
    Endpoint string
    The url of the Harness control plane.
    Id string
    Id of the git connector.
    accountId String
    Id of the account.
    endpoint String
    The url of the Harness control plane.
    id String
    Id of the git connector.
    accountId string
    Id of the account.
    endpoint string
    The url of the Harness control plane.
    id string
    Id of the git connector.
    account_id str
    Id of the account.
    endpoint str
    The url of the Harness control plane.
    id str
    Id of the git connector.
    accountId String
    Id of the account.
    endpoint String
    The url of the Harness control plane.
    id String
    Id of the git connector.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs