# Data Source:<span pulumi-lang-nodejs=" honeycombio.getAuthMetadata
" pulumi-lang-dotnet=" honeycombio.getAuthMetadata
" pulumi-lang-go=" getAuthMetadata
" pulumi-lang-python=" get_auth_metadata
" pulumi-lang-yaml=" honeycombio.getAuthMetadata
" pulumi-lang-java=" honeycombio.getAuthMetadata
“> honeycombio.getAuthMetadata
The honeycombio.getAuthMetadata data source retreives information about the API key used to authenticate the provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as honeycombio from "@pulumi/honeycombio";
const current = honeycombio.getAuthMetadata({});
export const teamName = current.then(current => current.team?.name);
export const environmentSlug = current.then(current => current.environment?.slug);
export const sloManagementAccess = current.then(current => current.apiKeyAccess?.slos);
import pulumi
import pulumi_honeycombio as honeycombio
current = honeycombio.get_auth_metadata()
pulumi.export("teamName", current.team.name)
pulumi.export("environmentSlug", current.environment.slug)
pulumi.export("sloManagementAccess", current.api_key_access.slos)
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 {
current, err := honeycombio.GetAuthMetadata(ctx, &honeycombio.GetAuthMetadataArgs{}, nil)
if err != nil {
return err
}
ctx.Export("teamName", current.Team.Name)
ctx.Export("environmentSlug", current.Environment.Slug)
ctx.Export("sloManagementAccess", current.ApiKeyAccess.Slos)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Honeycombio = Pulumi.Honeycombio;
return await Deployment.RunAsync(() =>
{
var current = Honeycombio.GetAuthMetadata.Invoke();
return new Dictionary<string, object?>
{
["teamName"] = current.Apply(getAuthMetadataResult => getAuthMetadataResult.Team?.Name),
["environmentSlug"] = current.Apply(getAuthMetadataResult => getAuthMetadataResult.Environment?.Slug),
["sloManagementAccess"] = current.Apply(getAuthMetadataResult => getAuthMetadataResult.ApiKeyAccess?.Slos),
};
});
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.GetAuthMetadataArgs;
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 current = HoneycombioFunctions.getAuthMetadata(GetAuthMetadataArgs.builder()
.build());
ctx.export("teamName", current.team().name());
ctx.export("environmentSlug", current.environment().slug());
ctx.export("sloManagementAccess", current.apiKeyAccess().slos());
}
}
variables:
current:
fn::invoke:
function: honeycombio:getAuthMetadata
arguments: {}
outputs:
teamName: ${current.team.name}
environmentSlug: ${current.environment.slug}
sloManagementAccess: ${current.apiKeyAccess.slos}
Using getAuthMetadata
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 getAuthMetadata(args: GetAuthMetadataArgs, opts?: InvokeOptions): Promise<GetAuthMetadataResult>
function getAuthMetadataOutput(args: GetAuthMetadataOutputArgs, opts?: InvokeOptions): Output<GetAuthMetadataResult>def get_auth_metadata(api_key_access: Optional[GetAuthMetadataApiKeyAccess] = None,
environment: Optional[GetAuthMetadataEnvironment] = None,
team: Optional[GetAuthMetadataTeam] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthMetadataResult
def get_auth_metadata_output(api_key_access: Optional[pulumi.Input[GetAuthMetadataApiKeyAccessArgs]] = None,
environment: Optional[pulumi.Input[GetAuthMetadataEnvironmentArgs]] = None,
team: Optional[pulumi.Input[GetAuthMetadataTeamArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthMetadataResult]func GetAuthMetadata(ctx *Context, args *GetAuthMetadataArgs, opts ...InvokeOption) (*GetAuthMetadataResult, error)
func GetAuthMetadataOutput(ctx *Context, args *GetAuthMetadataOutputArgs, opts ...InvokeOption) GetAuthMetadataResultOutput> Note: This function is named GetAuthMetadata in the Go SDK.
public static class GetAuthMetadata
{
public static Task<GetAuthMetadataResult> InvokeAsync(GetAuthMetadataArgs args, InvokeOptions? opts = null)
public static Output<GetAuthMetadataResult> Invoke(GetAuthMetadataInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAuthMetadataResult> getAuthMetadata(GetAuthMetadataArgs args, InvokeOptions options)
public static Output<GetAuthMetadataResult> getAuthMetadata(GetAuthMetadataArgs args, InvokeOptions options)
fn::invoke:
function: honeycombio:index/getAuthMetadata:getAuthMetadata
arguments:
# arguments dictionaryThe following arguments are supported:
- Api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- Environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- Team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- Api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- Environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- Team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- api_
key_ Getaccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- api
Key Property MapAccess - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment Property Map
- Information about the Environment the API key is scoped to.
- team Property Map
- Information about the Team the API key is scoped to.
getAuthMetadata Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- Environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- Team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- Environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- Team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- id String
- The provider-assigned unique ID for this managed resource.
- api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- id string
- The provider-assigned unique ID for this managed resource.
- api
Key GetAccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- id str
- The provider-assigned unique ID for this managed resource.
- api_
key_ Getaccess Auth Metadata Api Key Access - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment
Get
Auth Metadata Environment - Information about the Environment the API key is scoped to.
- team
Get
Auth Metadata Team - Information about the Team the API key is scoped to.
- id String
- The provider-assigned unique ID for this managed resource.
- api
Key Property MapAccess - The authorizations granted for the API key used to authenticate the provider. See https://docs.honeycomb.io/working-with-your-data/settings/api-keys/ for more information.
- environment Property Map
- Information about the Environment the API key is scoped to.
- team Property Map
- Information about the Team the API key is scoped to.
Supporting Types
GetAuthMetadataApiKeyAccess
- Boards bool
- Whether this API key can create and manage Boards.
- Columns bool
- Whether this API key can create and manage Queries, Columns, Derived Columns, and Query Annotations.
- Datasets bool
- Whether this API key can create and manage Datasets.
- Events bool
- Whether this API key can send events to Honeycomb.
- Markers bool
- Whether this API key can create and manage Markers.
- Queries bool
- Whether this API key can execute existing Queries via the Query Data API.
- Recipients bool
- Whether this API key can create and manage Recipients.
- Slos bool
- Whether this API key can create and manage SLOs and Burn Alerts.
- Triggers bool
- Whether this API key can create and manage Triggers.
- Boards bool
- Whether this API key can create and manage Boards.
- Columns bool
- Whether this API key can create and manage Queries, Columns, Derived Columns, and Query Annotations.
- Datasets bool
- Whether this API key can create and manage Datasets.
- Events bool
- Whether this API key can send events to Honeycomb.
- Markers bool
- Whether this API key can create and manage Markers.
- Queries bool
- Whether this API key can execute existing Queries via the Query Data API.
- Recipients bool
- Whether this API key can create and manage Recipients.
- Slos bool
- Whether this API key can create and manage SLOs and Burn Alerts.
- Triggers bool
- Whether this API key can create and manage Triggers.
- boards Boolean
- Whether this API key can create and manage Boards.
- columns Boolean
- Whether this API key can create and manage Queries, Columns, Derived Columns, and Query Annotations.
- datasets Boolean
- Whether this API key can create and manage Datasets.
- events Boolean
- Whether this API key can send events to Honeycomb.
- markers Boolean
- Whether this API key can create and manage Markers.
- queries Boolean
- Whether this API key can execute existing Queries via the Query Data API.
- recipients Boolean
- Whether this API key can create and manage Recipients.
- slos Boolean
- Whether this API key can create and manage SLOs and Burn Alerts.
- triggers Boolean
- Whether this API key can create and manage Triggers.
- boards boolean
- Whether this API key can create and manage Boards.
- columns boolean
- Whether this API key can create and manage Queries, Columns, Derived Columns, and Query Annotations.
- datasets boolean
- Whether this API key can create and manage Datasets.
- events boolean
- Whether this API key can send events to Honeycomb.
- markers boolean
- Whether this API key can create and manage Markers.
- queries boolean
- Whether this API key can execute existing Queries via the Query Data API.
- recipients boolean
- Whether this API key can create and manage Recipients.
- slos boolean
- Whether this API key can create and manage SLOs and Burn Alerts.
- triggers boolean
- Whether this API key can create and manage Triggers.
- boards bool
- Whether this API key can create and manage Boards.
- columns bool
- Whether this API key can create and manage Queries, Columns, Derived Columns, and Query Annotations.
- datasets bool
- Whether this API key can create and manage Datasets.
- events bool
- Whether this API key can send events to Honeycomb.
- markers bool
- Whether this API key can create and manage Markers.
- queries bool
- Whether this API key can execute existing Queries via the Query Data API.
- recipients bool
- Whether this API key can create and manage Recipients.
- slos bool
- Whether this API key can create and manage SLOs and Burn Alerts.
- triggers bool
- Whether this API key can create and manage Triggers.
- boards Boolean
- Whether this API key can create and manage Boards.
- columns Boolean
- Whether this API key can create and manage Queries, Columns, Derived Columns, and Query Annotations.
- datasets Boolean
- Whether this API key can create and manage Datasets.
- events Boolean
- Whether this API key can send events to Honeycomb.
- markers Boolean
- Whether this API key can create and manage Markers.
- queries Boolean
- Whether this API key can execute existing Queries via the Query Data API.
- recipients Boolean
- Whether this API key can create and manage Recipients.
- slos Boolean
- Whether this API key can create and manage SLOs and Burn Alerts.
- triggers Boolean
- Whether this API key can create and manage Triggers.
GetAuthMetadataEnvironment
GetAuthMetadataTeam
Package Details
- Repository
- honeycombio honeycombio/terraform-provider-honeycombio
- License
- Notes
- This Pulumi package is based on the
honeycombioTerraform Provider.
