1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. fme
  6. getFlagSet
Viewing docs for Harness v0.12.1
published on Thursday, May 21, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.12.1
published on Thursday, May 21, 2026 by Pulumi

    Look up a Harness FME (Split) flag set by name. The workspace is resolved from orgId and projectId via Workspaces.ResolveWorkspaceID. After create, the list API can lag briefly; this data source retries for a short period.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // Name must match an existing flag set in the Split workspace for the Harness org/project.
    const example = harness.fme.getFlagSet({
        orgId: "organization_id",
        projectId: "project_id",
        name: "my-flag-set",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    # Name must match an existing flag set in the Split workspace for the Harness org/project.
    example = harness.fme.get_flag_set(org_id="organization_id",
        project_id="project_id",
        name="my-flag-set")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/fme"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Name must match an existing flag set in the Split workspace for the Harness org/project.
    		_, err := fme.LookupFlagSet(ctx, &fme.LookupFlagSetArgs{
    			OrgId:     "organization_id",
    			ProjectId: "project_id",
    			Name:      "my-flag-set",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // Name must match an existing flag set in the Split workspace for the Harness org/project.
        var example = Harness.Fme.GetFlagSet.Invoke(new()
        {
            OrgId = "organization_id",
            ProjectId = "project_id",
            Name = "my-flag-set",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.fme.FmeFunctions;
    import com.pulumi.harness.fme.inputs.GetFlagSetArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // Name must match an existing flag set in the Split workspace for the Harness org/project.
            final var example = FmeFunctions.getFlagSet(GetFlagSetArgs.builder()
                .orgId("organization_id")
                .projectId("project_id")
                .name("my-flag-set")
                .build());
    
        }
    }
    
    variables:
      # Name must match an existing flag set in the Split workspace for the Harness org/project.
      example:
        fn::invoke:
          function: harness:fme:getFlagSet
          arguments:
            orgId: organization_id
            projectId: project_id
            name: my-flag-set
    
    Example coming soon!
    

    Using getFlagSet

    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 getFlagSet(args: GetFlagSetArgs, opts?: InvokeOptions): Promise<GetFlagSetResult>
    function getFlagSetOutput(args: GetFlagSetOutputArgs, opts?: InvokeOptions): Output<GetFlagSetResult>
    def get_flag_set(name: Optional[str] = None,
                     org_id: Optional[str] = None,
                     project_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFlagSetResult
    def get_flag_set_output(name: pulumi.Input[Optional[str]] = None,
                     org_id: pulumi.Input[Optional[str]] = None,
                     project_id: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetFlagSetResult]
    func LookupFlagSet(ctx *Context, args *LookupFlagSetArgs, opts ...InvokeOption) (*LookupFlagSetResult, error)
    func LookupFlagSetOutput(ctx *Context, args *LookupFlagSetOutputArgs, opts ...InvokeOption) LookupFlagSetResultOutput

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

    public static class GetFlagSet 
    {
        public static Task<GetFlagSetResult> InvokeAsync(GetFlagSetArgs args, InvokeOptions? opts = null)
        public static Output<GetFlagSetResult> Invoke(GetFlagSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlagSetResult> getFlagSet(GetFlagSetArgs args, InvokeOptions options)
    public static Output<GetFlagSetResult> getFlagSet(GetFlagSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:fme/getFlagSet:getFlagSet
      arguments:
        # arguments dictionary
    data "harness_fme_getflagset" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    Flag set name in Split.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    Name string
    Flag set name in Split.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    name string
    Flag set name in Split.
    org_id string
    Harness organization identifier.
    project_id string
    Harness project identifier.
    name String
    Flag set name in Split.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.
    name string
    Flag set name in Split.
    orgId string
    Harness organization identifier.
    projectId string
    Harness project identifier.
    name str
    Flag set name in Split.
    org_id str
    Harness organization identifier.
    project_id str
    Harness project identifier.
    name String
    Flag set name in Split.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.

    getFlagSet Result

    The following output properties are available:

    Description string
    Flag set description.
    FlagSetId string
    The Split flag set ID (same as id).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Flag set name in Split.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    Description string
    Flag set description.
    FlagSetId string
    The Split flag set ID (same as id).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Flag set name in Split.
    OrgId string
    Harness organization identifier.
    ProjectId string
    Harness project identifier.
    description string
    Flag set description.
    flag_set_id string
    The Split flag set ID (same as id).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Flag set name in Split.
    org_id string
    Harness organization identifier.
    project_id string
    Harness project identifier.
    description String
    Flag set description.
    flagSetId String
    The Split flag set ID (same as id).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Flag set name in Split.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.
    description string
    Flag set description.
    flagSetId string
    The Split flag set ID (same as id).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Flag set name in Split.
    orgId string
    Harness organization identifier.
    projectId string
    Harness project identifier.
    description str
    Flag set description.
    flag_set_id str
    The Split flag set ID (same as id).
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Flag set name in Split.
    org_id str
    Harness organization identifier.
    project_id str
    Harness project identifier.
    description String
    Flag set description.
    flagSetId String
    The Split flag set ID (same as id).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Flag set name in Split.
    orgId String
    Harness organization identifier.
    projectId String
    Harness project identifier.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.12.1
    published on Thursday, May 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial