Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
published on Tuesday, Mar 17, 2026 by Pulumi
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
published on Tuesday, Mar 17, 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 dictionaryThe following arguments are supported:
- Id string
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - Name string
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - Timeouts
Get
Organizational Unit Timeouts
- Id string
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - Name string
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - Timeouts
Get
Organizational Unit Timeouts
- id String
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name String
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - timeouts
Get
Organizational Unit Timeouts
- id string
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name string
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - timeouts
Get
Organizational Unit Timeouts
- id str
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name str
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - timeouts
Get
Organizational Unit Timeouts
- id String
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name String
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - timeouts Property Map
getOrganizationalUnit Result
The following output properties are available:
- Create
Time string - Timestamp in ISO 8601 format, always in UTC.
- Id string
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - Name string
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - Parent
Id string - The ID of the organization that the unit is created in.
- Tenant
Id string - Tenant identifier.
- Update
Time string - Timestamp in ISO 8601 format, always in UTC.
- Timeouts
Get
Organizational Unit Timeouts
- Create
Time string - Timestamp in ISO 8601 format, always in UTC.
- Id string
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - Name string
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - Parent
Id string - The ID of the organization that the unit is created in.
- Tenant
Id string - Tenant identifier.
- Update
Time string - Timestamp in ISO 8601 format, always in UTC.
- Timeouts
Get
Organizational Unit Timeouts
- create
Time String - Timestamp in ISO 8601 format, always in UTC.
- id String
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name String
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - parent
Id String - The ID of the organization that the unit is created in.
- tenant
Id String - Tenant identifier.
- update
Time String - Timestamp in ISO 8601 format, always in UTC.
- timeouts
Get
Organizational Unit Timeouts
- create
Time string - Timestamp in ISO 8601 format, always in UTC.
- id string
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name string
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - parent
Id string - The ID of the organization that the unit is created in.
- tenant
Id string - Tenant identifier.
- update
Time string - Timestamp in ISO 8601 format, always in UTC.
- timeouts
Get
Organizational Unit Timeouts
- 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:
idorname. - name str
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - 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
Get
Organizational Unit Timeouts
- create
Time String - Timestamp in ISO 8601 format, always in UTC.
- id String
- The ID of this resource. Exactly one of the fields must be specified:
idorname. - name String
- The name of the organizational unit. Exactly one of the fields must be specified:
idorname. - parent
Id String - The ID of the organization that the unit is created in.
- tenant
Id String - Tenant identifier.
- update
Time 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
aivenTerraform Provider.
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
published on Tuesday, Mar 17, 2026 by Pulumi
