1. Packages
  2. Confluent Cloud
  3. API Docs
  4. getOrganization
Confluent v1.38.0 published on Thursday, Mar 21, 2024 by Pulumi

confluentcloud.getOrganization

Explore with Pulumi AI

confluentcloud logo
Confluent v1.38.0 published on Thursday, Mar 21, 2024 by Pulumi

    General Availability

    confluentcloud.getOrganization describes an Organization data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    const exampleOrganization = confluentcloud.getOrganization({});
    export const example = exampleOrganization;
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example_organization = confluentcloud.get_organization()
    pulumi.export("example", example_organization)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-confluentcloud/sdk/go/confluentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleOrganization, err := confluentcloud.GetOrganization(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("example", exampleOrganization)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleOrganization = ConfluentCloud.GetOrganization.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["example"] = exampleOrganization,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.confluentcloud.ConfluentcloudFunctions;
    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 exampleOrganization = ConfluentcloudFunctions.getOrganization();
    
            ctx.export("example", exampleOrganization.applyValue(getOrganizationResult -> getOrganizationResult));
        }
    }
    
    variables:
      exampleOrganization:
        fn::invoke:
          Function: confluentcloud:getOrganization
          Arguments: {}
    outputs:
      example: ${exampleOrganization}
    

    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(opts?: InvokeOptions): Promise<GetOrganizationResult>
    function getOrganizationOutput(opts?: InvokeOptions): Output<GetOrganizationResult>
    def get_organization(opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
    def get_organization_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationResult]
    func GetOrganization(ctx *Context, opts ...InvokeOption) (*GetOrganizationResult, error)
    func GetOrganizationOutput(ctx *Context, opts ...InvokeOption) GetOrganizationResultOutput

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

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

    getOrganization Result

    The following output properties are available:

    Id string
    (Required String) The ID of the Organization, for example, 1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    ResourceName string
    (Required String) The Confluent Resource Name of the Organization, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    Id string
    (Required String) The ID of the Organization, for example, 1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    ResourceName string
    (Required String) The Confluent Resource Name of the Organization, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    id String
    (Required String) The ID of the Organization, for example, 1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    resourceName String
    (Required String) The Confluent Resource Name of the Organization, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    id string
    (Required String) The ID of the Organization, for example, 1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    resourceName string
    (Required String) The Confluent Resource Name of the Organization, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    id str
    (Required String) The ID of the Organization, for example, 1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    resource_name str
    (Required String) The Confluent Resource Name of the Organization, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    id String
    (Required String) The ID of the Organization, for example, 1111aaaa-11aa-11aa-11aa-111111aaaaaa.
    resourceName String
    (Required String) The Confluent Resource Name of the Organization, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa.

    Package Details

    Repository
    Confluent Cloud pulumi/pulumi-confluentcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the confluent Terraform Provider.
    confluentcloud logo
    Confluent v1.38.0 published on Thursday, Mar 21, 2024 by Pulumi