1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. CollectionDataSource
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pulumi = Pulumi.Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Pulumi.CollectionDataSource.Invoke(new()
        {
            Slug = "default",
        });
    
    });
    
    package main
    
    import (
    	"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chronosphere.CollectionDataSource(ctx, &chronosphere.CollectionDataSourceArgs{
    			Slug: pulumi.StringRef("default"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.chronosphere.ChronosphereFunctions;
    import com.pulumi.chronosphere.inputs.CollectionDataSourceArgs;
    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 default = ChronosphereFunctions.CollectionDataSource(CollectionDataSourceArgs.builder()
                .slug("default")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as chronosphere from "@pulumi/chronosphere";
    
    const default = chronosphere.CollectionDataSource({
        slug: "default",
    });
    
    import pulumi
    import pulumi_chronosphere as chronosphere
    
    default = chronosphere.collection_data_source(slug="default")
    
    variables:
      default:
        fn::invoke:
          Function: chronosphere:CollectionDataSource
          Arguments:
            slug: default
    

    Using CollectionDataSource

    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 collectionDataSource(args: CollectionDataSourceArgs, opts?: InvokeOptions): Promise<CollectionDataSourceResult>
    function collectionDataSourceOutput(args: CollectionDataSourceOutputArgs, opts?: InvokeOptions): Output<CollectionDataSourceResult>
    def collection_data_source(slug: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> CollectionDataSourceResult
    def collection_data_source_output(slug: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[CollectionDataSourceResult]
    func CollectionDataSource(ctx *Context, args *CollectionDataSourceArgs, opts ...InvokeOption) (*CollectionDataSourceResult, error)
    func CollectionDataSourceOutput(ctx *Context, args *CollectionDataSourceOutputArgs, opts ...InvokeOption) CollectionDataSourceResultOutput
    public static class CollectionDataSource 
    {
        public static Task<CollectionDataSourceResult> InvokeAsync(CollectionDataSourceArgs args, InvokeOptions? opts = null)
        public static Output<CollectionDataSourceResult> Invoke(CollectionDataSourceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<CollectionDataSourceResult> collectionDataSource(CollectionDataSourceArgs args, InvokeOptions options)
    public static Output<CollectionDataSourceResult> collectionDataSource(CollectionDataSourceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: chronosphere:CollectionDataSource
      arguments:
        # arguments dictionary
    data "chronosphere_collectiondatasource" "name" {
        # arguments
    }

    The following arguments are supported:

    Slug string
    Slug of the collection to look up.
    Slug string
    Slug of the collection to look up.
    slug string
    Slug of the collection to look up.
    slug String
    Slug of the collection to look up.
    slug string
    Slug of the collection to look up.
    slug str
    Slug of the collection to look up.
    slug String
    Slug of the collection to look up.

    CollectionDataSource Result

    The following output properties are available:

    Description string
    Read-only: free-form description of the collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Read-only: display name of the collection.
    Slug string
    Slug of the collection to look up.
    Description string
    Read-only: free-form description of the collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Read-only: display name of the collection.
    Slug string
    Slug of the collection to look up.
    description string
    Read-only: free-form description of the collection.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Read-only: display name of the collection.
    slug string
    Slug of the collection to look up.
    description String
    Read-only: free-form description of the collection.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Read-only: display name of the collection.
    slug String
    Slug of the collection to look up.
    description string
    Read-only: free-form description of the collection.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Read-only: display name of the collection.
    slug string
    Slug of the collection to look up.
    description str
    Read-only: free-form description of the collection.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Read-only: display name of the collection.
    slug str
    Slug of the collection to look up.
    description String
    Read-only: free-form description of the collection.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Read-only: display name of the collection.
    slug String
    Slug of the collection to look up.

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.16
    published on Friday, Jun 5, 2026 by Chronosphere

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial