1. Packages
  2. Aiven Provider
  3. API Docs
  4. getOrganizationalUnit
Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi
aiven logo
Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi

    Gets information about an organizational unit.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const exampleUnit = aiven.getOrganizationalUnit({
        name: "Example organizational unit",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_unit = aiven.get_organizational_unit(name="Example organizational unit")
    
    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.LookupOrganizationalUnit(ctx, &aiven.LookupOrganizationalUnitArgs{
    			Name: pulumi.StringRef("Example organizational unit"),
    		}, 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 exampleUnit = Aiven.GetOrganizationalUnit.Invoke(new()
        {
            Name = "Example organizational unit",
        });
    
    });
    
    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.GetOrganizationalUnitArgs;
    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 exampleUnit = AivenFunctions.getOrganizationalUnit(GetOrganizationalUnitArgs.builder()
                .name("Example organizational unit")
                .build());
    
        }
    }
    
    variables:
      exampleUnit:
        fn::invoke:
          function: aiven:getOrganizationalUnit
          arguments:
            name: Example organizational unit
    

    Using getOrganizationalUnit

    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 getOrganizationalUnit(args: GetOrganizationalUnitArgs, opts?: InvokeOptions): Promise<GetOrganizationalUnitResult>
    function getOrganizationalUnitOutput(args: GetOrganizationalUnitOutputArgs, opts?: InvokeOptions): Output<GetOrganizationalUnitResult>
    def get_organizational_unit(id: Optional[str] = None,
                                name: Optional[str] = None,
                                timeouts: Optional[GetOrganizationalUnitTimeouts] = None,
                                opts: Optional[InvokeOptions] = None) -> GetOrganizationalUnitResult
    def get_organizational_unit_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                timeouts: Optional[pulumi.Input[GetOrganizationalUnitTimeoutsArgs]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationalUnitResult]
    func LookupOrganizationalUnit(ctx *Context, args *LookupOrganizationalUnitArgs, opts ...InvokeOption) (*LookupOrganizationalUnitResult, error)
    func LookupOrganizationalUnitOutput(ctx *Context, args *LookupOrganizationalUnitOutputArgs, opts ...InvokeOption) LookupOrganizationalUnitResultOutput

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

    public static class GetOrganizationalUnit 
    {
        public static Task<GetOrganizationalUnitResult> InvokeAsync(GetOrganizationalUnitArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationalUnitResult> Invoke(GetOrganizationalUnitInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationalUnitResult> getOrganizationalUnit(GetOrganizationalUnitArgs args, InvokeOptions options)
    public static Output<GetOrganizationalUnitResult> getOrganizationalUnit(GetOrganizationalUnitArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getOrganizationalUnit:getOrganizationalUnit
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    Name string
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    Timeouts GetOrganizationalUnitTimeouts
    Id string
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    Name string
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    Timeouts GetOrganizationalUnitTimeouts
    id String
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name String
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    timeouts GetOrganizationalUnitTimeouts
    id string
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name string
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    timeouts GetOrganizationalUnitTimeouts
    id str
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name str
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    timeouts GetOrganizationalUnitTimeouts
    id String
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name String
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    timeouts Property Map

    getOrganizationalUnit Result

    The following output properties are available:

    CreateTime string
    Timestamp in ISO 8601 format, always in UTC.
    Id string
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    Name string
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    ParentId string
    The ID of the organization that the unit is created in.
    TenantId string
    Tenant identifier.
    UpdateTime string
    Timestamp in ISO 8601 format, always in UTC.
    Timeouts GetOrganizationalUnitTimeouts
    CreateTime string
    Timestamp in ISO 8601 format, always in UTC.
    Id string
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    Name string
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    ParentId string
    The ID of the organization that the unit is created in.
    TenantId string
    Tenant identifier.
    UpdateTime string
    Timestamp in ISO 8601 format, always in UTC.
    Timeouts GetOrganizationalUnitTimeouts
    createTime String
    Timestamp in ISO 8601 format, always in UTC.
    id String
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name String
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    parentId String
    The ID of the organization that the unit is created in.
    tenantId String
    Tenant identifier.
    updateTime String
    Timestamp in ISO 8601 format, always in UTC.
    timeouts GetOrganizationalUnitTimeouts
    createTime string
    Timestamp in ISO 8601 format, always in UTC.
    id string
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name string
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    parentId string
    The ID of the organization that the unit is created in.
    tenantId string
    Tenant identifier.
    updateTime string
    Timestamp in ISO 8601 format, always in UTC.
    timeouts GetOrganizationalUnitTimeouts
    create_time str
    Timestamp in ISO 8601 format, always in UTC.
    id str
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name str
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    parent_id str
    The ID of the organization that the unit is created in.
    tenant_id str
    Tenant identifier.
    update_time str
    Timestamp in ISO 8601 format, always in UTC.
    timeouts GetOrganizationalUnitTimeouts
    createTime String
    Timestamp in ISO 8601 format, always in UTC.
    id String
    The ID of this resource. Exactly one of the fields must be specified: id or name.
    name String
    The name of the organizational unit. Exactly one of the fields must be specified: id or name.
    parentId String
    The ID of the organization that the unit is created in.
    tenantId String
    Tenant identifier.
    updateTime String
    Timestamp in ISO 8601 format, always in UTC.
    timeouts Property Map

    Supporting Types

    GetOrganizationalUnitTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    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.48.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate