Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi
aiven.getOrganizationalUnit
Explore with Pulumi AI
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(main.id())
.build());
}
}
variables:
exampleUnit:
fn::invoke:
Function: aiven:getOrganizationalUnit
Arguments:
name: Example organizational unit
parentId: ${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:
- Create
Time string - Time of creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the organizational unit.
- Parent
Id string - The ID of the organization that the unit is created in.
- Tenant
Id string - Tenant ID.
- Update
Time string - Time of last update.
- Create
Time string - Time of creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the organizational unit.
- Parent
Id string - The ID of the organization that the unit is created in.
- Tenant
Id string - Tenant ID.
- Update
Time string - Time of last update.
- create
Time String - Time of creation.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the organizational unit.
- parent
Id String - The ID of the organization that the unit is created in.
- tenant
Id String - Tenant ID.
- update
Time String - Time of last update.
- create
Time string - Time of creation.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the organizational unit.
- parent
Id string - The ID of the organization that the unit is created in.
- tenant
Id string - Tenant ID.
- update
Time 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.
- create
Time String - Time of creation.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the organizational unit.
- parent
Id String - The ID of the organization that the unit is created in.
- tenant
Id String - Tenant ID.
- update
Time 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.