1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. getEnvironment
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Example Usage

    data "rootly_environment" "my-environment" {
      slug = "my-environment"
    }
    

    Using getEnvironment

    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 getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
    function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>
    def get_environment(color: Optional[str] = None,
                        created_at: Optional[Mapping[str, str]] = None,
                        name: Optional[str] = None,
                        slug: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
    def get_environment_output(color: pulumi.Input[Optional[str]] = None,
                        created_at: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                        name: pulumi.Input[Optional[str]] = None,
                        slug: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]
    func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
    func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput

    > Note: This function is named LookupEnvironment in the Go SDK.

    public static class GetEnvironment 
    {
        public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
        public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
    public static Output<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: rootly:index/getEnvironment:getEnvironment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Color string
    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    Color string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    color String
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String
    color string
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    name string
    slug string
    color str
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    name str
    slug str
    color String
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String

    getEnvironment Result

    The following output properties are available:

    Color string
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    Color string
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    color String
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    color string
    id string
    The ID of this resource.
    name string
    slug string
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    color str
    id str
    The ID of this resource.
    name str
    slug str
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    color String
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.