1. Packages
  2. Aiven
  3. API Docs
  4. getOrganizationalUnit
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.getOrganizationalUnit

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

    Gets information about an organizational unit.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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")
                .parentId(aiven_organization.main().id())
                .build());
    
        }
    }
    
    variables:
      exampleUnit:
        fn::invoke:
          Function: aiven:getOrganizationalUnit
          Arguments:
            name: Example organizational unit
            parentId: ${aiven_organization.main.id}
    

    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(name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetOrganizationalUnitResult
    def get_organizational_unit_output(name: Optional[pulumi.Input[str]] = 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aiven:index/getOrganizationalUnit:getOrganizationalUnit
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the organizational unit.
    Name string
    The name of the organizational unit.
    name String
    The name of the organizational unit.
    name string
    The name of the organizational unit.
    name str
    The name of the organizational unit.
    name String
    The name of the organizational unit.

    getOrganizationalUnit Result

    The following output properties are available:

    CreateTime string
    Time of creation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the organizational unit.
    ParentId string
    The ID of the organization that the unit is created in.
    TenantId string
    Tenant ID.
    UpdateTime string
    Time of last update.
    CreateTime string
    Time of creation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the organizational unit.
    ParentId string
    The ID of the organization that the unit is created in.
    TenantId string
    Tenant ID.
    UpdateTime string
    Time of last update.
    createTime String
    Time of creation.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the organizational unit.
    parentId String
    The ID of the organization that the unit is created in.
    tenantId String
    Tenant ID.
    updateTime String
    Time of last update.
    createTime string
    Time of creation.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the organizational unit.
    parentId string
    The ID of the organization that the unit is created in.
    tenantId string
    Tenant ID.
    updateTime string
    Time of last update.
    create_time str
    Time of creation.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the organizational unit.
    parent_id str
    The ID of the organization that the unit is created in.
    tenant_id str
    Tenant ID.
    update_time str
    Time of last update.
    createTime String
    Time of creation.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the organizational unit.
    parentId String
    The ID of the organization that the unit is created in.
    tenantId String
    Tenant ID.
    updateTime String
    Time of last update.

    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.13.0 published on Monday, Mar 25, 2024 by Pulumi