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
The Delegatetoken resource accepts the following input properties:
- Account
Id string - Account Identifier for the Entity
- Created
At int - Time when the delegate token is created.
- Created
By Dictionary<string, string> - created by details.
- Name string
- Name of the resource.
- 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
- Created
At int - Time when the delegate token is created.
- Created
By map[string]string - created by details.
- Name string
- Name of the resource.
- 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
- created
At Integer - Time when the delegate token is created.
- created
By Map<String,String> - created by details.
- name String
- Name of the resource.
- 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
- created
At number - Time when the delegate token is created.
- created
By {[key: string]: string} - created by details.
- name string
- Name of the resource.
- 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
- 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
- account
Id String - Account Identifier for the Entity
- created
At Number - Time when the delegate token is created.
- created
By Map<String> - created by details.
- name String
- Name of the resource.
- 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
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) -> Delegatetoken
func 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)
Resource lookup is not supported in YAML
- 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.
- Account
Id string - Account Identifier for the Entity
- Created
At int - Time when the delegate token is created.
- Created
By Dictionary<string, string> - created by details.
- Name string
- Name of the resource.
- 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
- Created
At int - Time when the delegate token is created.
- Created
By map[string]string - created by details.
- Name string
- Name of the resource.
- 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
- created
At Integer - Time when the delegate token is created.
- created
By Map<String,String> - created by details.
- name String
- Name of the resource.
- 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
- created
At number - Time when the delegate token is created.
- created
By {[key: string]: string} - created by details.
- name string
- Name of the resource.
- 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
- 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
- account
Id String - Account Identifier for the Entity
- created
At Number - Time when the delegate token is created.
- created
By Map<String> - created by details.
- name String
- Name of the resource.
- 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
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
harness
Terraform Provider.