1. Packages
  2. Aiven
  3. API Docs
  4. getOrganization
Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi

aiven.getOrganization

Explore with Pulumi AI

aiven logo
Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi

    Gets information about an organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const main = aiven.getOrganization({
        name: "Example organization",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    main = aiven.get_organization(name="Example organization")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupOrganization(ctx, &aiven.LookupOrganizationArgs{
    			Name: pulumi.StringRef("Example organization"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Aiven.GetOrganization.Invoke(new()
        {
            Name = "Example organization",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.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 main = AivenFunctions.getOrganization(GetOrganizationArgs.builder()
                .name("Example organization")
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          Function: aiven:getOrganization
          Arguments:
            name: Example organization
    

    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(id: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
    def get_organization_output(id: 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: aiven:index/getOrganization:getOrganization
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the organization.
    Name string
    Name of the organization.
    Id string
    ID of the organization.
    Name string
    Name of the organization.
    id String
    ID of the organization.
    name String
    Name of the organization.
    id string
    ID of the organization.
    name string
    Name of the organization.
    id str
    ID of the organization.
    name str
    Name of the organization.
    id String
    ID of the organization.
    name String
    Name of the organization.

    getOrganization Result

    The following output properties are available:

    CreateTime string
    Timestamp of the creation of the organization.
    TenantId string
    Tenant ID of the organization.
    UpdateTime string
    Timestamp of the last update of the organization.
    Id string
    ID of the organization.
    Name string
    Name of the organization.
    CreateTime string
    Timestamp of the creation of the organization.
    TenantId string
    Tenant ID of the organization.
    UpdateTime string
    Timestamp of the last update of the organization.
    Id string
    ID of the organization.
    Name string
    Name of the organization.
    createTime String
    Timestamp of the creation of the organization.
    tenantId String
    Tenant ID of the organization.
    updateTime String
    Timestamp of the last update of the organization.
    id String
    ID of the organization.
    name String
    Name of the organization.
    createTime string
    Timestamp of the creation of the organization.
    tenantId string
    Tenant ID of the organization.
    updateTime string
    Timestamp of the last update of the organization.
    id string
    ID of the organization.
    name string
    Name of the organization.
    create_time str
    Timestamp of the creation of the organization.
    tenant_id str
    Tenant ID of the organization.
    update_time str
    Timestamp of the last update of the organization.
    id str
    ID of the organization.
    name str
    Name of the organization.
    createTime String
    Timestamp of the creation of the organization.
    tenantId String
    Tenant ID of the organization.
    updateTime String
    Timestamp of the last update of the organization.
    id String
    ID of the organization.
    name String
    Name of the organization.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi