published on Tuesday, Sep 1, 2026 by Matthias Hamacher
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
An Oh Dear tag. The API cannot update or delete tags: changing an input replaces the resource, and destroy only removes it from Pulumi state.
Create Tag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Tag(name: string, args: TagArgs, opts?: CustomResourceOptions);@overload
def Tag(resource_name: str,
args: TagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Tag(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
team_id: Optional[int] = None,
monitors: Optional[Sequence[int]] = None)func NewTag(ctx *Context, name string, args TagArgs, opts ...ResourceOption) (*Tag, error)public Tag(string name, TagArgs args, CustomResourceOptions? opts = null)type: ohdear:Tag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ohdear_tag" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TagArgs
- 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 TagArgs
- 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 TagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagArgs
- 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 tagResource = new Ohdear.Tag("tagResource", new()
{
Name = "string",
TeamId = 0,
Monitors = new[]
{
0,
},
});
example, err := ohdear.NewTag(ctx, "tagResource", &ohdear.TagArgs{
Name: pulumi.String("string"),
TeamId: pulumi.Int(0),
Monitors: pulumi.IntArray{
pulumi.Int(0),
},
})
resource "ohdear_tag" "tagResource" {
lifecycle {
create_before_destroy = true
}
name = "string"
team_id = 0
monitors = [0]
}
var tagResource = new Tag("tagResource", TagArgs.builder()
.name("string")
.teamId(0)
.monitors(0)
.build());
tag_resource = ohdear.Tag("tagResource",
name="string",
team_id=0,
monitors=[0])
const tagResource = new ohdear.Tag("tagResource", {
name: "string",
teamId: 0,
monitors: [0],
});
type: ohdear:Tag
properties:
monitors:
- 0
name: string
teamId: 0
Tag 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 Tag resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Tag resource produces the following output properties:
- Created
At string - When the tag was created, as an ISO 8601 timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sites List<int>
- IDs of the sites/monitors currently carrying the tag.
- Slug string
- URL-safe form of the tag name.
- Tag
Id int - Numeric Oh Dear tag ID.
- Team
Name string - Name of the owning team.
- Updated
At string - When the tag was last updated, as an ISO 8601 timestamp.
- Created
At string - When the tag was created, as an ISO 8601 timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sites []int
- IDs of the sites/monitors currently carrying the tag.
- Slug string
- URL-safe form of the tag name.
- Tag
Id int - Numeric Oh Dear tag ID.
- Team
Name string - Name of the owning team.
- Updated
At string - When the tag was last updated, as an ISO 8601 timestamp.
- created_
at string - When the tag was created, as an ISO 8601 timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- sites list(number)
- IDs of the sites/monitors currently carrying the tag.
- slug string
- URL-safe form of the tag name.
- tag_
id number - Numeric Oh Dear tag ID.
- team_
name string - Name of the owning team.
- updated_
at string - When the tag was last updated, as an ISO 8601 timestamp.
- created
At String - When the tag was created, as an ISO 8601 timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- sites List<Integer>
- IDs of the sites/monitors currently carrying the tag.
- slug String
- URL-safe form of the tag name.
- tag
Id Integer - Numeric Oh Dear tag ID.
- team
Name String - Name of the owning team.
- updated
At String - When the tag was last updated, as an ISO 8601 timestamp.
- created
At string - When the tag was created, as an ISO 8601 timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- sites number[]
- IDs of the sites/monitors currently carrying the tag.
- slug string
- URL-safe form of the tag name.
- tag
Id number - Numeric Oh Dear tag ID.
- team
Name string - Name of the owning team.
- updated
At string - When the tag was last updated, as an ISO 8601 timestamp.
- created_
at str - When the tag was created, as an ISO 8601 timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- sites Sequence[int]
- IDs of the sites/monitors currently carrying the tag.
- slug str
- URL-safe form of the tag name.
- tag_
id int - Numeric Oh Dear tag ID.
- team_
name str - Name of the owning team.
- updated_
at str - When the tag was last updated, as an ISO 8601 timestamp.
- created
At String - When the tag was created, as an ISO 8601 timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- sites List<Number>
- IDs of the sites/monitors currently carrying the tag.
- slug String
- URL-safe form of the tag name.
- tag
Id Number - Numeric Oh Dear tag ID.
- team
Name String - Name of the owning team.
- updated
At String - When the tag was last updated, as an ISO 8601 timestamp.
Package Details
- Repository
- ohdear matthiashamacher/pulumi-ohdear
- License
- Apache-2.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher