harness.platform.Delegatetoken
Explore with Pulumi AI
Resource for creating delegate tokens.
Create Delegatetoken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Delegatetoken(name: string, args: DelegatetokenArgs, opts?: CustomResourceOptions);@overload
def Delegatetoken(resource_name: str,
                  args: DelegatetokenArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def Delegatetoken(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_id: Optional[str] = None,
                  created_at: Optional[int] = None,
                  created_by: Optional[Mapping[str, str]] = None,
                  name: Optional[str] = None,
                  org_id: Optional[str] = None,
                  project_id: Optional[str] = None,
                  token_status: Optional[str] = None,
                  value: Optional[str] = None)func NewDelegatetoken(ctx *Context, name string, args DelegatetokenArgs, opts ...ResourceOption) (*Delegatetoken, error)public Delegatetoken(string name, DelegatetokenArgs args, CustomResourceOptions? opts = null)
public Delegatetoken(String name, DelegatetokenArgs args)
public Delegatetoken(String name, DelegatetokenArgs args, CustomResourceOptions options)
type: harness:platform:Delegatetoken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DelegatetokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DelegatetokenArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DelegatetokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DelegatetokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DelegatetokenArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var delegatetokenResource = new Harness.Platform.Delegatetoken("delegatetokenResource", new()
{
    AccountId = "string",
    CreatedAt = 0,
    CreatedBy = 
    {
        { "string", "string" },
    },
    Name = "string",
    OrgId = "string",
    ProjectId = "string",
    TokenStatus = "string",
    Value = "string",
});
example, err := platform.NewDelegatetoken(ctx, "delegatetokenResource", &platform.DelegatetokenArgs{
	AccountId: pulumi.String("string"),
	CreatedAt: pulumi.Int(0),
	CreatedBy: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:        pulumi.String("string"),
	OrgId:       pulumi.String("string"),
	ProjectId:   pulumi.String("string"),
	TokenStatus: pulumi.String("string"),
	Value:       pulumi.String("string"),
})
var delegatetokenResource = new Delegatetoken("delegatetokenResource", DelegatetokenArgs.builder()
    .accountId("string")
    .createdAt(0)
    .createdBy(Map.of("string", "string"))
    .name("string")
    .orgId("string")
    .projectId("string")
    .tokenStatus("string")
    .value("string")
    .build());
delegatetoken_resource = harness.platform.Delegatetoken("delegatetokenResource",
    account_id="string",
    created_at=0,
    created_by={
        "string": "string",
    },
    name="string",
    org_id="string",
    project_id="string",
    token_status="string",
    value="string")
const delegatetokenResource = new harness.platform.Delegatetoken("delegatetokenResource", {
    accountId: "string",
    createdAt: 0,
    createdBy: {
        string: "string",
    },
    name: "string",
    orgId: "string",
    projectId: "string",
    tokenStatus: "string",
    value: "string",
});
type: harness:platform:Delegatetoken
properties:
    accountId: string
    createdAt: 0
    createdBy:
        string: string
    name: string
    orgId: string
    projectId: string
    tokenStatus: string
    value: string
Delegatetoken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Delegatetoken resource accepts the following input properties:
- AccountId string
- Account Identifier for the Entity
- CreatedAt int
- Time when the delegate token is created.
- CreatedBy Dictionary<string, string>
- created by details.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- TokenStatus 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
- AccountId string
- Account Identifier for the Entity
- CreatedAt int
- Time when the delegate token is created.
- CreatedBy map[string]string
- created by details.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- TokenStatus 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
- accountId String
- Account Identifier for the Entity
- createdAt Integer
- Time when the delegate token is created.
- createdBy Map<String,String>
- created by details.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- tokenStatus 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
- accountId string
- Account Identifier for the Entity
- createdAt number
- Time when the delegate token is created.
- createdBy {[key: string]: string}
- created by details.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- tokenStatus 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
- created_at int
- Time when the delegate token is created.
- created_by Mapping[str, str]
- created by details.
- name str
- Name of the resource.
- 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
- accountId String
- Account Identifier for the Entity
- createdAt Number
- Time when the delegate token is created.
- createdBy Map<String>
- created by details.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- tokenStatus 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
Outputs
All input properties are implicitly available as output properties. Additionally, the Delegatetoken resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Delegatetoken Resource
Get an existing Delegatetoken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DelegatetokenState, opts?: CustomResourceOptions): Delegatetoken@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        created_at: Optional[int] = None,
        created_by: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        token_status: Optional[str] = None,
        value: Optional[str] = None) -> Delegatetokenfunc GetDelegatetoken(ctx *Context, name string, id IDInput, state *DelegatetokenState, opts ...ResourceOption) (*Delegatetoken, error)public static Delegatetoken Get(string name, Input<string> id, DelegatetokenState? state, CustomResourceOptions? opts = null)public static Delegatetoken get(String name, Output<String> id, DelegatetokenState state, CustomResourceOptions options)resources:  _:    type: harness:platform:Delegatetoken    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AccountId string
- Account Identifier for the Entity
- CreatedAt int
- Time when the delegate token is created.
- CreatedBy Dictionary<string, string>
- created by details.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- TokenStatus 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
- AccountId string
- Account Identifier for the Entity
- CreatedAt int
- Time when the delegate token is created.
- CreatedBy map[string]string
- created by details.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- TokenStatus 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
- accountId String
- Account Identifier for the Entity
- createdAt Integer
- Time when the delegate token is created.
- createdBy Map<String,String>
- created by details.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- tokenStatus 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
- accountId string
- Account Identifier for the Entity
- createdAt number
- Time when the delegate token is created.
- createdBy {[key: string]: string}
- created by details.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- tokenStatus 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
- created_at int
- Time when the delegate token is created.
- created_by Mapping[str, str]
- created by details.
- name str
- Name of the resource.
- 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
- accountId String
- Account Identifier for the Entity
- createdAt Number
- Time when the delegate token is created.
- createdBy Map<String>
- created by details.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- tokenStatus 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
Import
Import account level delegate token
$ pulumi import harness:platform/delegatetoken:Delegatetoken harness_platform_delegatetoken <token_id>
Import org level delegate token
$ pulumi import harness:platform/delegatetoken:Delegatetoken harness_platform_delegatetoken <org_id>/<token_id>
Import project level delegate token
$ pulumi import harness:platform/delegatetoken:Delegatetoken harness_platform_delegatetoken <org_id>/<project_id>/<token_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
