1. Packages
  2. Aiven Provider
  3. API Docs
  4. getOrganizationProject
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.getOrganizationProject

Explore with Pulumi AI

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,
});
Copy
import pulumi
import pulumi_aiven as aiven

example = aiven.get_organization_project(project_id=foo["projectId"],
    organization_id=foo["organizationId"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aiven:getOrganizationProject
      arguments:
        projectId: ${foo.projectId}
        organizationId: ${foo.organizationId}
Copy

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>
Copy
def get_organization_project(organization_id: Optional[str] = None,
                             project_id: Optional[str] = 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,
                             opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationProjectResult]
Copy
func LookupOrganizationProject(ctx *Context, args *LookupOrganizationProjectArgs, opts ...InvokeOption) (*LookupOrganizationProjectResult, error)
func LookupOrganizationProjectOutput(ctx *Context, args *LookupOrganizationProjectOutputArgs, opts ...InvokeOption) LookupOrganizationProjectResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOrganizationProjectResult> getOrganizationProject(GetOrganizationProjectArgs args, InvokeOptions options)
public static Output<GetOrganizationProjectResult> getOrganizationProject(GetOrganizationProjectArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aiven:index/getOrganizationProject:getOrganizationProject
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrganizationId This property is required. string
ID of an organization. Changing this property forces recreation of the resource.
ProjectId This property is required. string
Unique identifier for the project that also serves as the project name.
OrganizationId This property is required. string
ID of an organization. Changing this property forces recreation of the resource.
ProjectId This property is required. string
Unique identifier for the project that also serves as the project name.
organizationId This property is required. String
ID of an organization. Changing this property forces recreation of the resource.
projectId This property is required. String
Unique identifier for the project that also serves as the project name.
organizationId This property is required. string
ID of an organization. Changing this property forces recreation of the resource.
projectId This property is required. string
Unique identifier for the project that also serves as the project name.
organization_id This property is required. str
ID of an organization. Changing this property forces recreation of the resource.
project_id This property is required. str
Unique identifier for the project that also serves as the project name.
organizationId This property is required. String
ID of an organization. Changing this property forces recreation of the resource.
projectId This property is required. String
Unique identifier for the project that also serves as the project name.

getOrganizationProject Result

The following output properties are available:

BillingGroupId string
Billing group ID to assign to the project.
CaCert string
The CA certificate for the project. This is required for configuring clients that connect to certain services like Kafka.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ID of an organization. Changing this property forces recreation of the resource.
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
Unique identifier for the project that also serves as the project name.
Tags List<GetOrganizationProjectTag>
Tags are key-value pairs that allow you to categorize projects.
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.
BillingGroupId string
Billing group ID to assign to the project.
CaCert string
The CA certificate for the project. This is required for configuring clients that connect to certain services like Kafka.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ID of an organization. Changing this property forces recreation of the resource.
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
Unique identifier for the project that also serves as the project name.
Tags []GetOrganizationProjectTag
Tags are key-value pairs that allow you to categorize projects.
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.
billingGroupId String
Billing group ID to assign to the project.
caCert String
The CA certificate for the project. This is required for configuring clients that connect to certain services like Kafka.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
ID of an organization. Changing this property forces recreation of the resource.
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
Unique identifier for the project that also serves as the project name.
tags List<GetOrganizationProjectTag>
Tags are key-value pairs that allow you to categorize projects.
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.
billingGroupId string
Billing group ID to assign to the project.
caCert string
The CA certificate for the project. This is required for configuring clients that connect to certain services like Kafka.
id string
The provider-assigned unique ID for this managed resource.
organizationId string
ID of an organization. Changing this property forces recreation of the resource.
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
Unique identifier for the project that also serves as the project name.
tags GetOrganizationProjectTag[]
Tags are key-value pairs that allow you to categorize projects.
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.
billing_group_id str
Billing group ID to assign to the project.
ca_cert str
The CA certificate for the project. This is required for configuring clients that connect to certain services like Kafka.
id str
The provider-assigned unique ID for this managed resource.
organization_id str
ID of an organization. Changing this property forces recreation of the resource.
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
Unique identifier for the project that also serves as the project name.
tags Sequence[GetOrganizationProjectTag]
Tags are key-value pairs that allow you to categorize projects.
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.
billingGroupId String
Billing group ID to assign to the project.
caCert String
The CA certificate for the project. This is required for configuring clients that connect to certain services like Kafka.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
ID of an organization. Changing this property forces recreation of the resource.
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
Unique identifier for the project that also serves as the project name.
tags List<Property Map>
Tags are key-value pairs that allow you to categorize projects.
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.

Supporting Types

GetOrganizationProjectTag

Key This property is required. string
Project tag key.
Value This property is required. string
Project tag value.
Key This property is required. string
Project tag key.
Value This property is required. string
Project tag value.
key This property is required. String
Project tag key.
value This property is required. String
Project tag value.
key This property is required. string
Project tag key.
value This property is required. string
Project tag value.
key This property is required. str
Project tag key.
value This property is required. str
Project tag value.
key This property is required. String
Project tag key.
value This property is required. String
Project tag value.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.