Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi
aiven.getOrganization
Explore with Pulumi AI
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:
getOrganization Result
The following output properties are available:
- Create
Time string - Timestamp of the creation of the organization.
- Tenant
Id string - Tenant ID of the organization.
- Update
Time string - Timestamp of the last update of the organization.
- Id string
- ID of the organization.
- Name string
- Name of the organization.
- Create
Time string - Timestamp of the creation of the organization.
- Tenant
Id string - Tenant ID of the organization.
- Update
Time string - Timestamp of the last update of the organization.
- Id string
- ID of the organization.
- Name string
- Name of the organization.
- create
Time String - Timestamp of the creation of the organization.
- tenant
Id String - Tenant ID of the organization.
- update
Time String - Timestamp of the last update of the organization.
- id String
- ID of the organization.
- name String
- Name of the organization.
- create
Time string - Timestamp of the creation of the organization.
- tenant
Id string - Tenant ID of the organization.
- update
Time 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.
- create
Time String - Timestamp of the creation of the organization.
- tenant
Id String - Tenant ID of the organization.
- update
Time 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.