1. Packages
  2. Honeycombio Provider
  3. API Docs
  4. getDataset
honeycombio 0.32.0 published on Monday, Apr 7, 2025 by honeycombio

honeycombio.getDataset

Explore with Pulumi AI

# Data Source: honeycombio.Dataset

The honeycombio.Dataset data source retrieves the details of a single Dataset. If you want to retrieve multiple Datasets, use the honeycombio.getDatasets data source instead.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as honeycombio from "@pulumi/honeycombio";

const my_service = honeycombio.getDataset({
    slug: "my-service",
});
Copy
import pulumi
import pulumi_honeycombio as honeycombio

my_service = honeycombio.get_dataset(slug="my-service")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/honeycombio/honeycombio"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := honeycombio.LookupDataset(ctx, &honeycombio.LookupDatasetArgs{
			Slug: "my-service",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Honeycombio = Pulumi.Honeycombio;

return await Deployment.RunAsync(() => 
{
    var my_service = Honeycombio.GetDataset.Invoke(new()
    {
        Slug = "my-service",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.honeycombio.HoneycombioFunctions;
import com.pulumi.honeycombio.inputs.GetDatasetArgs;
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 my-service = HoneycombioFunctions.getDataset(GetDatasetArgs.builder()
            .slug("my-service")
            .build());

    }
}
Copy
variables:
  my-service:
    fn::invoke:
      function: honeycombio:getDataset
      arguments:
        slug: my-service
Copy

Using getDataset

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 getDataset(args: GetDatasetArgs, opts?: InvokeOptions): Promise<GetDatasetResult>
function getDatasetOutput(args: GetDatasetOutputArgs, opts?: InvokeOptions): Output<GetDatasetResult>
Copy
def get_dataset(slug: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetDatasetResult
def get_dataset_output(slug: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetDatasetResult]
Copy
func LookupDataset(ctx *Context, args *LookupDatasetArgs, opts ...InvokeOption) (*LookupDatasetResult, error)
func LookupDatasetOutput(ctx *Context, args *LookupDatasetOutputArgs, opts ...InvokeOption) LookupDatasetResultOutput
Copy

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

public static class GetDataset 
{
    public static Task<GetDatasetResult> InvokeAsync(GetDatasetArgs args, InvokeOptions? opts = null)
    public static Output<GetDatasetResult> Invoke(GetDatasetInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatasetResult> getDataset(GetDatasetArgs args, InvokeOptions options)
public static Output<GetDatasetResult> getDataset(GetDatasetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: honeycombio:index/getDataset:getDataset
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Slug This property is required. string
The Slug of the Dataset
Slug This property is required. string
The Slug of the Dataset
slug This property is required. String
The Slug of the Dataset
slug This property is required. string
The Slug of the Dataset
slug This property is required. str
The Slug of the Dataset
slug This property is required. String
The Slug of the Dataset

getDataset Result

The following output properties are available:

CreatedAt string
ISO8601-formatted time the dataset was created.
DeleteProtected bool
the current state of the Dataset's deletion protection status.
Description string
the Dataset's description.
ExpandJsonDepth double
The Dataset's maximum unpacking depth of nested JSON fields.
Id string
LastWrittenAt string
ISO8601-formatted time the dataset was last written to (received event data).
Name string
the Dataset's name.
Slug string
CreatedAt string
ISO8601-formatted time the dataset was created.
DeleteProtected bool
the current state of the Dataset's deletion protection status.
Description string
the Dataset's description.
ExpandJsonDepth float64
The Dataset's maximum unpacking depth of nested JSON fields.
Id string
LastWrittenAt string
ISO8601-formatted time the dataset was last written to (received event data).
Name string
the Dataset's name.
Slug string
createdAt String
ISO8601-formatted time the dataset was created.
deleteProtected Boolean
the current state of the Dataset's deletion protection status.
description String
the Dataset's description.
expandJsonDepth Double
The Dataset's maximum unpacking depth of nested JSON fields.
id String
lastWrittenAt String
ISO8601-formatted time the dataset was last written to (received event data).
name String
the Dataset's name.
slug String
createdAt string
ISO8601-formatted time the dataset was created.
deleteProtected boolean
the current state of the Dataset's deletion protection status.
description string
the Dataset's description.
expandJsonDepth number
The Dataset's maximum unpacking depth of nested JSON fields.
id string
lastWrittenAt string
ISO8601-formatted time the dataset was last written to (received event data).
name string
the Dataset's name.
slug string
created_at str
ISO8601-formatted time the dataset was created.
delete_protected bool
the current state of the Dataset's deletion protection status.
description str
the Dataset's description.
expand_json_depth float
The Dataset's maximum unpacking depth of nested JSON fields.
id str
last_written_at str
ISO8601-formatted time the dataset was last written to (received event data).
name str
the Dataset's name.
slug str
createdAt String
ISO8601-formatted time the dataset was created.
deleteProtected Boolean
the current state of the Dataset's deletion protection status.
description String
the Dataset's description.
expandJsonDepth Number
The Dataset's maximum unpacking depth of nested JSON fields.
id String
lastWrittenAt String
ISO8601-formatted time the dataset was last written to (received event data).
name String
the Dataset's name.
slug String

Package Details

Repository
honeycombio honeycombio/terraform-provider-honeycombio
License
Notes
This Pulumi package is based on the honeycombio Terraform Provider.