published on Thursday, Nov 5, 2026 by dimeskigj
published on Thursday, Nov 5, 2026 by dimeskigj
A Dokploy project-to-tag association.
Create ProjectTag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectTag(name: string, args: ProjectTagArgs, opts?: CustomResourceOptions);@overload
def ProjectTag(resource_name: str,
args: ProjectTagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectTag(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
tag_id: Optional[str] = None)func NewProjectTag(ctx *Context, name string, args ProjectTagArgs, opts ...ResourceOption) (*ProjectTag, error)public ProjectTag(string name, ProjectTagArgs args, CustomResourceOptions? opts = null)
public ProjectTag(String name, ProjectTagArgs args)
public ProjectTag(String name, ProjectTagArgs args, CustomResourceOptions options)
type: dokploy:ProjectTag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dokploy_project_tag" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectTagArgs
- 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 ProjectTagArgs
- 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 ProjectTagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectTagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectTagArgs
- 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 projectTagResource = new Dokploy.ProjectTag("projectTagResource", new()
{
ProjectId = "string",
TagId = "string",
});
example, err := dokploy.NewProjectTag(ctx, "projectTagResource", &dokploy.ProjectTagArgs{
ProjectId: pulumi.String("string"),
TagId: pulumi.String("string"),
})
resource "dokploy_project_tag" "projectTagResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
tag_id = "string"
}
var projectTagResource = new ProjectTag("projectTagResource", ProjectTagArgs.builder()
.projectId("string")
.tagId("string")
.build());
project_tag_resource = dokploy.ProjectTag("projectTagResource",
project_id="string",
tag_id="string")
const projectTagResource = new dokploy.ProjectTag("projectTagResource", {
projectId: "string",
tagId: "string",
});
type: dokploy:ProjectTag
properties:
projectId: string
tagId: string
ProjectTag 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 ProjectTag resource accepts the following input properties:
- project_
id string - The Dokploy project ID.
- tag_
id string - The Dokploy tag ID.
- project_
id str - The Dokploy project ID.
- tag_
id str - The Dokploy tag ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectTag 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 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 ProjectTag Resource
Get an existing ProjectTag 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>, opts?: CustomResourceOptions): ProjectTag@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> ProjectTagfunc GetProjectTag(ctx *Context, name string, id IDInput, state *ProjectTagState, opts ...ResourceOption) (*ProjectTag, error)public static ProjectTag Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static ProjectTag get(String name, Output<String> id, CustomResourceOptions options)resources: existingProjectTag: type: dokploy:ProjectTag get: id: ${id}import {
to = dokploy_project_tag.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ProjectTagState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- dokploy dimeskigj/pulumi-dokploy
- License
- Apache-2.0
published on Thursday, Nov 5, 2026 by dimeskigj