1. Registry
  2. Packages
  3. Oh Dear
  4. API Docs
  5. Tag
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
ohdear logo
Viewing docs for Oh Dear v1.0.0
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)
    public Tag(String name, TagArgs args)
    public Tag(String name, TagArgs args, CustomResourceOptions options)
    
    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:

    Name string
    Tag name.
    TeamId int
    Team that owns the tag.
    Monitors List<int>
    IDs of monitors to attach the tag to.
    Name string
    Tag name.
    TeamId int
    Team that owns the tag.
    Monitors []int
    IDs of monitors to attach the tag to.
    name string
    Tag name.
    team_id number
    Team that owns the tag.
    monitors list(number)
    IDs of monitors to attach the tag to.
    name String
    Tag name.
    teamId Integer
    Team that owns the tag.
    monitors List<Integer>
    IDs of monitors to attach the tag to.
    name string
    Tag name.
    teamId number
    Team that owns the tag.
    monitors number[]
    IDs of monitors to attach the tag to.
    name str
    Tag name.
    team_id int
    Team that owns the tag.
    monitors Sequence[int]
    IDs of monitors to attach the tag to.
    name String
    Tag name.
    teamId Number
    Team that owns the tag.
    monitors List<Number>
    IDs of monitors to attach the tag to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Tag resource produces the following output properties:

    CreatedAt 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.
    TagId int
    Numeric Oh Dear tag ID.
    TeamName string
    Name of the owning team.
    UpdatedAt string
    When the tag was last updated, as an ISO 8601 timestamp.
    CreatedAt 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.
    TagId int
    Numeric Oh Dear tag ID.
    TeamName string
    Name of the owning team.
    UpdatedAt 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.
    createdAt 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.
    tagId Integer
    Numeric Oh Dear tag ID.
    teamName String
    Name of the owning team.
    updatedAt String
    When the tag was last updated, as an ISO 8601 timestamp.
    createdAt 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.
    tagId number
    Numeric Oh Dear tag ID.
    teamName string
    Name of the owning team.
    updatedAt 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.
    createdAt 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.
    tagId Number
    Numeric Oh Dear tag ID.
    teamName String
    Name of the owning team.
    updatedAt String
    When the tag was last updated, as an ISO 8601 timestamp.

    Package Details

    Repository
    ohdear matthiashamacher/pulumi-ohdear
    License
    Apache-2.0
    ohdear logo
    Viewing docs for Oh Dear v1.0.0
    published on Tuesday, Sep 1, 2026 by Matthias Hamacher

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial