Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi
confluentcloud.getOrganization
Explore with Pulumi AI
confluentcloud.getOrganization
describes an Organization data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
export = async () => {
const example = await confluentcloud.getOrganization({});
return {
example: example,
};
}
import pulumi
import pulumi_confluentcloud as confluentcloud
example = confluentcloud.get_organization()
pulumi.export("example", example)
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := confluentcloud.GetOrganization(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("example", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var example = ConfluentCloud.GetOrganization.Invoke();
return new Dictionary<string, object?>
{
["example"] = example,
};
});
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 example = ConfluentcloudFunctions.getOrganization();
ctx.export("example", example.applyValue(getOrganizationResult -> getOrganizationResult));
}
}
variables:
example:
fn::invoke:
Function: confluentcloud:getOrganization
Arguments: {}
outputs:
example: ${example}
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
. - Resource
Name 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
. - Resource
Name 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
. - resource
Name 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
. - resource
Name 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
. - resource
Name 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.