1. Packages
  2. Aiven Provider
  3. API Docs
  4. getOrganizationProject
Aiven v6.39.0 published on Tuesday, Jun 3, 2025 by Pulumi

aiven.getOrganizationProject

Explore with Pulumi AI

aiven logo
Aiven v6.39.0 published on Tuesday, Jun 3, 2025 by Pulumi

    Gets information about an Aiven project.

    This resource is in the beta stage and may change without notice. Set the PROVIDER_AIVEN_ENABLE_BETA environment variable to use the resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const example = aiven.getOrganizationProject({
        projectId: foo.projectId,
        organizationId: foo.organizationId,
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example = aiven.get_organization_project(project_id=foo["projectId"],
        organization_id=foo["organizationId"])
    
    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.LookupOrganizationProject(ctx, &aiven.LookupOrganizationProjectArgs{
    			ProjectId:      foo.ProjectId,
    			OrganizationId: foo.OrganizationId,
    		}, 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 example = Aiven.GetOrganizationProject.Invoke(new()
        {
            ProjectId = foo.ProjectId,
            OrganizationId = foo.OrganizationId,
        });
    
    });
    
    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.GetOrganizationProjectArgs;
    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 example = AivenFunctions.getOrganizationProject(GetOrganizationProjectArgs.builder()
                .projectId(foo.projectId())
                .organizationId(foo.organizationId())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aiven:getOrganizationProject
          arguments:
            projectId: ${foo.projectId}
            organizationId: ${foo.organizationId}
    

    Using getOrganizationProject

    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 getOrganizationProject(args: GetOrganizationProjectArgs, opts?: InvokeOptions): Promise<GetOrganizationProjectResult>
    function getOrganizationProjectOutput(args: GetOrganizationProjectOutputArgs, opts?: InvokeOptions): Output<GetOrganizationProjectResult>
    def get_organization_project(organization_id: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 tags: Optional[Sequence[GetOrganizationProjectTag]] = None,
                                 timeouts: Optional[GetOrganizationProjectTimeouts] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetOrganizationProjectResult
    def get_organization_project_output(organization_id: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetOrganizationProjectTagArgs]]]] = None,
                                 timeouts: Optional[pulumi.Input[GetOrganizationProjectTimeoutsArgs]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationProjectResult]
    func LookupOrganizationProject(ctx *Context, args *LookupOrganizationProjectArgs, opts ...InvokeOption) (*LookupOrganizationProjectResult, error)
    func LookupOrganizationProjectOutput(ctx *Context, args *LookupOrganizationProjectOutputArgs, opts ...InvokeOption) LookupOrganizationProjectResultOutput

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

    public static class GetOrganizationProject 
    {
        public static Task<GetOrganizationProjectResult> InvokeAsync(GetOrganizationProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationProjectResult> Invoke(GetOrganizationProjectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationProjectResult> getOrganizationProject(GetOrganizationProjectArgs args, InvokeOptions options)
    public static Output<GetOrganizationProjectResult> getOrganizationProject(GetOrganizationProjectArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getOrganizationProject:getOrganizationProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationId string
    ID of an organization.
    ProjectId string
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    Tags List<GetOrganizationProjectTag>
    Tags are key-value pairs that allow you to categorize projects.
    Timeouts GetOrganizationProjectTimeouts
    OrganizationId string
    ID of an organization.
    ProjectId string
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    Tags []GetOrganizationProjectTag
    Tags are key-value pairs that allow you to categorize projects.
    Timeouts GetOrganizationProjectTimeouts
    organizationId String
    ID of an organization.
    projectId String
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    tags List<GetOrganizationProjectTag>
    Tags are key-value pairs that allow you to categorize projects.
    timeouts GetOrganizationProjectTimeouts
    organizationId string
    ID of an organization.
    projectId string
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    tags GetOrganizationProjectTag[]
    Tags are key-value pairs that allow you to categorize projects.
    timeouts GetOrganizationProjectTimeouts
    organization_id str
    ID of an organization.
    project_id str
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    tags Sequence[GetOrganizationProjectTag]
    Tags are key-value pairs that allow you to categorize projects.
    timeouts GetOrganizationProjectTimeouts
    organizationId String
    ID of an organization.
    projectId String
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    tags List<Property Map>
    Tags are key-value pairs that allow you to categorize projects.
    timeouts Property Map

    getOrganizationProject Result

    The following output properties are available:

    BasePort int
    Valid port number (1-65535) to use as a base for service port allocation.
    BillingGroupId string
    Billing group ID to assign to the project. It's required when moving projects between organizations.
    CaCert string
    PEM encoded certificate.
    Id string
    Resource ID, a composite of organization_id and project_id IDs.
    OrganizationId string
    ID of an organization.
    ParentId string
    Link a project to an organization or organizational unit by using its ID. To set up proper dependencies please refer to this variable as a reference.
    ProjectId string
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    TechnicalEmails List<string>
    The email addresses for project contacts, who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
    Tags List<GetOrganizationProjectTag>
    Tags are key-value pairs that allow you to categorize projects.
    Timeouts GetOrganizationProjectTimeouts
    BasePort int
    Valid port number (1-65535) to use as a base for service port allocation.
    BillingGroupId string
    Billing group ID to assign to the project. It's required when moving projects between organizations.
    CaCert string
    PEM encoded certificate.
    Id string
    Resource ID, a composite of organization_id and project_id IDs.
    OrganizationId string
    ID of an organization.
    ParentId string
    Link a project to an organization or organizational unit by using its ID. To set up proper dependencies please refer to this variable as a reference.
    ProjectId string
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    TechnicalEmails []string
    The email addresses for project contacts, who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
    Tags []GetOrganizationProjectTag
    Tags are key-value pairs that allow you to categorize projects.
    Timeouts GetOrganizationProjectTimeouts
    basePort Integer
    Valid port number (1-65535) to use as a base for service port allocation.
    billingGroupId String
    Billing group ID to assign to the project. It's required when moving projects between organizations.
    caCert String
    PEM encoded certificate.
    id String
    Resource ID, a composite of organization_id and project_id IDs.
    organizationId String
    ID of an organization.
    parentId String
    Link a project to an organization or organizational unit by using its ID. To set up proper dependencies please refer to this variable as a reference.
    projectId String
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    technicalEmails List<String>
    The email addresses for project contacts, who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
    tags List<GetOrganizationProjectTag>
    Tags are key-value pairs that allow you to categorize projects.
    timeouts GetOrganizationProjectTimeouts
    basePort number
    Valid port number (1-65535) to use as a base for service port allocation.
    billingGroupId string
    Billing group ID to assign to the project. It's required when moving projects between organizations.
    caCert string
    PEM encoded certificate.
    id string
    Resource ID, a composite of organization_id and project_id IDs.
    organizationId string
    ID of an organization.
    parentId string
    Link a project to an organization or organizational unit by using its ID. To set up proper dependencies please refer to this variable as a reference.
    projectId string
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    technicalEmails string[]
    The email addresses for project contacts, who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
    tags GetOrganizationProjectTag[]
    Tags are key-value pairs that allow you to categorize projects.
    timeouts GetOrganizationProjectTimeouts
    base_port int
    Valid port number (1-65535) to use as a base for service port allocation.
    billing_group_id str
    Billing group ID to assign to the project. It's required when moving projects between organizations.
    ca_cert str
    PEM encoded certificate.
    id str
    Resource ID, a composite of organization_id and project_id IDs.
    organization_id str
    ID of an organization.
    parent_id str
    Link a project to an organization or organizational unit by using its ID. To set up proper dependencies please refer to this variable as a reference.
    project_id str
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    technical_emails Sequence[str]
    The email addresses for project contacts, who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
    tags Sequence[GetOrganizationProjectTag]
    Tags are key-value pairs that allow you to categorize projects.
    timeouts GetOrganizationProjectTimeouts
    basePort Number
    Valid port number (1-65535) to use as a base for service port allocation.
    billingGroupId String
    Billing group ID to assign to the project. It's required when moving projects between organizations.
    caCert String
    PEM encoded certificate.
    id String
    Resource ID, a composite of organization_id and project_id IDs.
    organizationId String
    ID of an organization.
    parentId String
    Link a project to an organization or organizational unit by using its ID. To set up proper dependencies please refer to this variable as a reference.
    projectId String
    The name of the project. Names must be globally unique among all Aiven customers. Names must begin with a letter (a-z), and consist of letters, numbers, and dashes. It's recommended to use a random string or your organization name as a prefix or suffix. Changing this property forces recreation of the resource.
    technicalEmails List<String>
    The email addresses for project contacts, who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
    tags List<Property Map>
    Tags are key-value pairs that allow you to categorize projects.
    timeouts Property Map

    Supporting Types

    GetOrganizationProjectTag

    Key string
    Project tag key.
    Value string
    Project tag value.
    Key string
    Project tag key.
    Value string
    Project tag value.
    key String
    Project tag key.
    value String
    Project tag value.
    key string
    Project tag key.
    value string
    Project tag value.
    key str
    Project tag key.
    value str
    Project tag value.
    key String
    Project tag key.
    value String
    Project tag value.

    GetOrganizationProjectTimeouts

    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.39.0 published on Tuesday, Jun 3, 2025 by Pulumi