Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
harness.platform.getDelegatetoken
Explore with Pulumi AI
Data Source for retrieving delegate tokens.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetDelegatetokenArgs;
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 test = PlatformFunctions.getDelegatetoken(GetDelegatetokenArgs.builder()
.identifier("test_token")
.name("test token")
.accountId("account_id")
.orgId("org_id")
.projectId("project_id")
.build());
}
}
variables:
test:
fn::invoke:
Function: harness:platform:getDelegatetoken
Arguments:
identifier: test_token
name: test token
accountId: account_id
orgId: org_id
projectId: project_id
Using getDelegatetoken
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 getDelegatetoken(args: GetDelegatetokenArgs, opts?: InvokeOptions): Promise<GetDelegatetokenResult>
function getDelegatetokenOutput(args: GetDelegatetokenOutputArgs, opts?: InvokeOptions): Output<GetDelegatetokenResult>
def get_delegatetoken(account_id: Optional[str] = None,
created_at: Optional[int] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
token_status: Optional[str] = None,
value: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDelegatetokenResult
def get_delegatetoken_output(account_id: Optional[pulumi.Input[str]] = None,
created_at: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
token_status: Optional[pulumi.Input[str]] = None,
value: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDelegatetokenResult]
func LookupDelegatetoken(ctx *Context, args *LookupDelegatetokenArgs, opts ...InvokeOption) (*LookupDelegatetokenResult, error)
func LookupDelegatetokenOutput(ctx *Context, args *LookupDelegatetokenOutputArgs, opts ...InvokeOption) LookupDelegatetokenResultOutput
> Note: This function is named LookupDelegatetoken
in the Go SDK.
public static class GetDelegatetoken
{
public static Task<GetDelegatetokenResult> InvokeAsync(GetDelegatetokenArgs args, InvokeOptions? opts = null)
public static Output<GetDelegatetokenResult> Invoke(GetDelegatetokenInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDelegatetokenResult> getDelegatetoken(GetDelegatetokenArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getDelegatetoken:getDelegatetoken
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Account Identifier for the Entity
- Name string
- Name of the resource.
- Created
At int - Time when the delegate token is created.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Token
Status string - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- Value string
- Value of the delegate Token
- Account
Id string - Account Identifier for the Entity
- Name string
- Name of the resource.
- Created
At int - Time when the delegate token is created.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Token
Status string - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- Value string
- Value of the delegate Token
- account
Id String - Account Identifier for the Entity
- name String
- Name of the resource.
- created
At Integer - Time when the delegate token is created.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- token
Status String - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value String
- Value of the delegate Token
- account
Id string - Account Identifier for the Entity
- name string
- Name of the resource.
- created
At number - Time when the delegate token is created.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- token
Status string - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value string
- Value of the delegate Token
- account_
id str - Account Identifier for the Entity
- name str
- Name of the resource.
- created_
at int - Time when the delegate token is created.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- token_
status str - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value str
- Value of the delegate Token
- account
Id String - Account Identifier for the Entity
- name String
- Name of the resource.
- created
At Number - Time when the delegate token is created.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- token
Status String - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value String
- Value of the delegate Token
getDelegatetoken Result
The following output properties are available:
- Account
Id string - Account Identifier for the Entity
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource.
- Created
At int - Time when the delegate token is created.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Token
Status string - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- Value string
- Value of the delegate Token
- Account
Id string - Account Identifier for the Entity
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource.
- Created
At int - Time when the delegate token is created.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Token
Status string - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- Value string
- Value of the delegate Token
- account
Id String - Account Identifier for the Entity
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource.
- created
At Integer - Time when the delegate token is created.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- token
Status String - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value String
- Value of the delegate Token
- account
Id string - Account Identifier for the Entity
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the resource.
- created
At number - Time when the delegate token is created.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- token
Status string - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value string
- Value of the delegate Token
- account_
id str - Account Identifier for the Entity
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the resource.
- created_
at int - Time when the delegate token is created.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- token_
status str - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value str
- Value of the delegate Token
- account
Id String - Account Identifier for the Entity
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource.
- created
At Number - Time when the delegate token is created.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- token
Status String - Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
- value String
- Value of the delegate Token
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.