rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar
rollbar.getProjects
Explore with Pulumi AI
rollbar.getProjects
Data Source
==============================
Use this data source to retrieve information about all Rollbar projects you can access.
Example Usage
To retrieve info about all projects:
import * as pulumi from "@pulumi/pulumi";
import * as rollbar from "@pulumi/rollbar";
const all = rollbar.getProjects({});
export const allProjects = all.then(all => all.projects);
import pulumi
import pulumi_rollbar as rollbar
all = rollbar.get_projects()
pulumi.export("allProjects", all.projects)
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 {
all, err := rollbar.GetProjects(ctx, &rollbar.GetProjectsArgs{}, nil)
if err != nil {
return err
}
ctx.Export("allProjects", all.Projects)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rollbar = Pulumi.Rollbar;
return await Deployment.RunAsync(() =>
{
var all = Rollbar.GetProjects.Invoke();
return new Dictionary<string, object?>
{
["allProjects"] = all.Apply(getProjectsResult => getProjectsResult.Projects),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rollbar.RollbarFunctions;
import com.pulumi.rollbar.inputs.GetProjectsArgs;
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) {
final var all = RollbarFunctions.getProjects();
ctx.export("allProjects", all.applyValue(getProjectsResult -> getProjectsResult.projects()));
}
}
variables:
all:
fn::invoke:
function: rollbar:getProjects
arguments: {}
outputs:
allProjects: ${all.projects}
Using getProjects
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
def get_projects(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput
> Note: This function is named GetProjects
in the Go SDK.
public static class GetProjects
{
public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
public static Output<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
fn::invoke:
function: rollbar:index/getProjects:getProjects
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- ID of project
- Id string
- ID of project
- id String
- ID of project
- id string
- ID of project
- id str
- ID of project
- id String
- ID of project
getProjects Result
The following output properties are available:
- Id string
- ID of project
- Projects
List<Get
Projects Project>
- Id string
- ID of project
- Projects
[]Get
Projects Project
- id String
- ID of project
- projects
List<Get
Projects Project>
- id string
- ID of project
- projects
Get
Projects Project[]
- id str
- ID of project
- projects
Sequence[Get
Projects Project]
- id String
- ID of project
- projects List<Property Map>
Supporting Types
GetProjectsProject
- Account
Id double - ID of account that owns the project
- Date
Created double - Date the project was created
- Date
Modified double - Date the project was last modified
- Id double
- ID of project
- Name string
- Name of project
- Status string
- Status of the project
- Account
Id float64 - ID of account that owns the project
- Date
Created float64 - Date the project was created
- Date
Modified float64 - Date the project was last modified
- Id float64
- ID of project
- Name string
- Name of project
- Status string
- Status of the project
- account
Id Double - ID of account that owns the project
- date
Created Double - Date the project was created
- date
Modified Double - Date the project was last modified
- id Double
- ID of project
- name String
- Name of project
- status String
- Status of the project
- account
Id number - ID of account that owns the project
- date
Created number - Date the project was created
- date
Modified number - Date the project was last modified
- id number
- ID of project
- name string
- Name of project
- 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 float
- ID of project
- name str
- Name of project
- status str
- Status of the project
- account
Id Number - ID of account that owns the project
- date
Created Number - Date the project was created
- date
Modified Number - Date the project was last modified
- id Number
- ID of project
- name String
- Name of project
- status String
- Status of the project
Package Details
- Repository
- rollbar rollbar/terraform-provider-rollbar
- License
- Notes
- This Pulumi package is based on the
rollbar
Terraform Provider.