1. Packages
  2. Rollbar Provider
  3. API Docs
  4. Project
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

rollbar.Project

Explore with Pulumi AI

rollbar logo
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

    rollbar.Project Resource

    =========================

    Rollbar project resource.

    Example Usage


    import * as pulumi from "@pulumi/pulumi";
    import * as rollbar from "@pulumi/rollbar";
    
    // Create a team
    const foo = new rollbar.Team("foo", {});
    // Create a project and assign the team
    const bar = new rollbar.Project("bar", {teamIds: [foo.teamId]});
    
    import pulumi
    import pulumi_rollbar as rollbar
    
    # Create a team
    foo = rollbar.Team("foo")
    # Create a project and assign the team
    bar = rollbar.Project("bar", team_ids=[foo.team_id])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/rollbar/rollbar"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a team
    		foo, err := rollbar.NewTeam(ctx, "foo", nil)
    		if err != nil {
    			return err
    		}
    		// Create a project and assign the team
    		_, err = rollbar.NewProject(ctx, "bar", &rollbar.ProjectArgs{
    			TeamIds: pulumi.Float64Array{
    				foo.TeamId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rollbar = Pulumi.Rollbar;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a team
        var foo = new Rollbar.Team("foo");
    
        // Create a project and assign the team
        var bar = new Rollbar.Project("bar", new()
        {
            TeamIds = new[]
            {
                foo.TeamId,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rollbar.Team;
    import com.pulumi.rollbar.Project;
    import com.pulumi.rollbar.ProjectArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Create a team
            var foo = new Team("foo");
    
            // Create a project and assign the team
            var bar = new Project("bar", ProjectArgs.builder()
                .teamIds(foo.teamId())
                .build());
    
        }
    }
    
    resources:
      # Create a team
      foo:
        type: rollbar:Team
      # Create a project and assign the team
      bar:
        type: rollbar:Project
        properties:
          teamIds:
            - ${foo.teamId}
    

    Create Project Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
    @overload
    def Project(resource_name: str,
                args: Optional[ProjectArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                name: Optional[str] = None,
                project_id: Optional[str] = None,
                team_ids: Optional[Sequence[float]] = None)
    func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
    public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
    public Project(String name, ProjectArgs args)
    public Project(String name, ProjectArgs args, CustomResourceOptions options)
    
    type: rollbar:Project
    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 ProjectArgs
    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 ProjectArgs
    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 ProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectArgs
    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 projectResource = new Rollbar.Project("projectResource", new()
    {
        Name = "string",
        ProjectId = "string",
        TeamIds = new[]
        {
            0,
        },
    });
    
    example, err := rollbar.NewProject(ctx, "projectResource", &rollbar.ProjectArgs{
    	Name:      pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	TeamIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    })
    
    var projectResource = new Project("projectResource", ProjectArgs.builder()
        .name("string")
        .projectId("string")
        .teamIds(0)
        .build());
    
    project_resource = rollbar.Project("projectResource",
        name="string",
        project_id="string",
        team_ids=[0])
    
    const projectResource = new rollbar.Project("projectResource", {
        name: "string",
        projectId: "string",
        teamIds: [0],
    });
    
    type: rollbar:Project
    properties:
        name: string
        projectId: string
        teamIds:
            - 0
    

    Project 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 Project resource accepts the following input properties:

    Name string
    Human readable name for the project
    ProjectId string
    ID of the project
    TeamIds List<double>
    IDs of teams assigned to the project
    Name string
    Human readable name for the project
    ProjectId string
    ID of the project
    TeamIds []float64
    IDs of teams assigned to the project
    name String
    Human readable name for the project
    projectId String
    ID of the project
    teamIds List<Double>
    IDs of teams assigned to the project
    name string
    Human readable name for the project
    projectId string
    ID of the project
    teamIds number[]
    IDs of teams assigned to the project
    name str
    Human readable name for the project
    project_id str
    ID of the project
    team_ids Sequence[float]
    IDs of teams assigned to the project
    name String
    Human readable name for the project
    projectId String
    ID of the project
    teamIds List<Number>
    IDs of teams assigned to the project

    Outputs

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

    AccountId double
    ID of account that owns the project
    DateCreated double
    Date the project was created
    DateModified double
    Date the project was last modified
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the project
    AccountId float64
    ID of account that owns the project
    DateCreated float64
    Date the project was created
    DateModified float64
    Date the project was last modified
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the project
    accountId Double
    ID of account that owns the project
    dateCreated Double
    Date the project was created
    dateModified Double
    Date the project was last modified
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the project
    accountId number
    ID of account that owns the project
    dateCreated number
    Date the project was created
    dateModified number
    Date the project was last modified
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the project
    account_id float
    ID of account that owns the project
    date_created float
    Date the project was created
    date_modified float
    Date the project was last modified
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the project
    accountId Number
    ID of account that owns the project
    dateCreated Number
    Date the project was created
    dateModified Number
    Date the project was last modified
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the project

    Look up Existing Project Resource

    Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[float] = None,
            date_created: Optional[float] = None,
            date_modified: Optional[float] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            status: Optional[str] = None,
            team_ids: Optional[Sequence[float]] = None) -> Project
    func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
    public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
    public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
    resources:  _:    type: rollbar:Project    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.
    The following state arguments are supported:
    AccountId double
    ID of account that owns the project
    DateCreated double
    Date the project was created
    DateModified double
    Date the project was last modified
    Name string
    Human readable name for the project
    ProjectId string
    ID of the project
    Status string
    Status of the project
    TeamIds List<double>
    IDs of teams assigned to the project
    AccountId float64
    ID of account that owns the project
    DateCreated float64
    Date the project was created
    DateModified float64
    Date the project was last modified
    Name string
    Human readable name for the project
    ProjectId string
    ID of the project
    Status string
    Status of the project
    TeamIds []float64
    IDs of teams assigned to the project
    accountId Double
    ID of account that owns the project
    dateCreated Double
    Date the project was created
    dateModified Double
    Date the project was last modified
    name String
    Human readable name for the project
    projectId String
    ID of the project
    status String
    Status of the project
    teamIds List<Double>
    IDs of teams assigned to the project
    accountId number
    ID of account that owns the project
    dateCreated number
    Date the project was created
    dateModified number
    Date the project was last modified
    name string
    Human readable name for the project
    projectId string
    ID of the project
    status string
    Status of the project
    teamIds number[]
    IDs of teams assigned to the project
    account_id float
    ID of account that owns the project
    date_created float
    Date the project was created
    date_modified float
    Date the project was last modified
    name str
    Human readable name for the project
    project_id str
    ID of the project
    status str
    Status of the project
    team_ids Sequence[float]
    IDs of teams assigned to the project
    accountId Number
    ID of account that owns the project
    dateCreated Number
    Date the project was created
    dateModified Number
    Date the project was last modified
    name String
    Human readable name for the project
    projectId String
    ID of the project
    status String
    Status of the project
    teamIds List<Number>
    IDs of teams assigned to the project

    Import


    Projects can be imported using the project ID, e.g.

    $ pulumi import rollbar:index/project:Project foo 411703
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    rollbar rollbar/terraform-provider-rollbar
    License
    Notes
    This Pulumi package is based on the rollbar Terraform Provider.
    rollbar logo
    rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar