1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getOrganization
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.getOrganization

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Data source for retrieving a Harness organization

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = Harness.Platform.GetOrganization.Invoke(new()
        {
            Identifier = "identifier",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.LookupOrganization(ctx, &platform.LookupOrganizationArgs{
    			Identifier: pulumi.StringRef("identifier"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.PlatformFunctions;
    import com.pulumi.harness.platform.inputs.GetOrganizationArgs;
    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 this = PlatformFunctions.getOrganization(GetOrganizationArgs.builder()
                .identifier("identifier")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    this = harness.platform.get_organization(identifier="identifier")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const this = harness.platform.getOrganization({
        identifier: "identifier",
    });
    
    variables:
      this:
        fn::invoke:
          Function: harness:platform:getOrganization
          Arguments:
            identifier: identifier
    

    Using getOrganization

    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 getOrganization(args: GetOrganizationArgs, opts?: InvokeOptions): Promise<GetOrganizationResult>
    function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: InvokeOptions): Output<GetOrganizationResult>
    def get_organization(identifier: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
    def get_organization_output(identifier: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationResult]
    func LookupOrganization(ctx *Context, args *LookupOrganizationArgs, opts ...InvokeOption) (*LookupOrganizationResult, error)
    func LookupOrganizationOutput(ctx *Context, args *LookupOrganizationOutputArgs, opts ...InvokeOption) LookupOrganizationResultOutput

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

    public static class GetOrganization 
    {
        public static Task<GetOrganizationResult> InvokeAsync(GetOrganizationArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getOrganization:getOrganization
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.
    identifier string
    Unique identifier of the resource.
    name string
    Name of the resource.
    identifier str
    Unique identifier of the resource.
    name str
    Name of the resource.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.

    getOrganization Result

    The following output properties are available:

    Description string
    Description of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags List<string>
    Tags to associate with the resource.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    Description string
    Description of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags []string
    Tags to associate with the resource.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    description String
    Description of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<String>
    Tags to associate with the resource.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.
    description string
    Description of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    tags string[]
    Tags to associate with the resource.
    identifier string
    Unique identifier of the resource.
    name string
    Name of the resource.
    description str
    Description of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    tags Sequence[str]
    Tags to associate with the resource.
    identifier str
    Unique identifier of the resource.
    name str
    Name of the resource.
    description String
    Description of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<String>
    Tags to associate with the resource.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs