Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getProject

# Project Data Source

The Project data source provides information about the existing Aiven Project.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var myproject = Output.Create(Aiven.GetProject.InvokeAsync(new Aiven.GetProjectArgs
        {
            Project = "<PROJECT_NAME>",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupProject(ctx, &aiven.LookupProjectArgs{
            Project: "<PROJECT_NAME>",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

myproject = aiven.get_project(project="<PROJECT_NAME>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const myproject = pulumi.output(aiven.getProject({
    project: "<PROJECT_NAME>",
}, { async: true }));

Using getProject

function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
def get_project(account_id: Optional[str] = None, available_credits: Optional[str] = None, billing_address: Optional[str] = None, billing_currency: Optional[str] = None, billing_emails: Optional[Sequence[str]] = None, billing_extra_text: Optional[str] = None, billing_group: Optional[str] = None, ca_cert: Optional[str] = None, card_id: Optional[str] = None, copy_from_project: Optional[str] = None, country: Optional[str] = None, country_code: Optional[str] = None, default_cloud: Optional[str] = None, estimated_balance: Optional[str] = None, payment_method: Optional[str] = None, project: Optional[str] = None, technical_emails: Optional[Sequence[str]] = None, vat_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetProjectResult
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)

Note: This function is named LookupProject in the Go SDK.

public static class GetProject {
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

defines the name of the project. Name must be globally unique (between all Aiven customers) and cannot be changed later without destroying and re-creating the project, including all sub-resources.

AccountId string

is an optional property to link a project to already an existing account by using account ID.

AvailableCredits string
BillingAddress string
BillingCurrency string
BillingEmails List<string>
BillingExtraText string
BillingGroup string
CaCert string

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

CardId string

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

CopyFromProject string

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

Country string
CountryCode string
DefaultCloud string
EstimatedBalance string
PaymentMethod string
TechnicalEmails List<string>
VatId string
Project string

defines the name of the project. Name must be globally unique (between all Aiven customers) and cannot be changed later without destroying and re-creating the project, including all sub-resources.

AccountId string

is an optional property to link a project to already an existing account by using account ID.

AvailableCredits string
BillingAddress string
BillingCurrency string
BillingEmails []string
BillingExtraText string
BillingGroup string
CaCert string

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

CardId string

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

CopyFromProject string

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

Country string
CountryCode string
DefaultCloud string
EstimatedBalance string
PaymentMethod string
TechnicalEmails []string
VatId string
project string

defines the name of the project. Name must be globally unique (between all Aiven customers) and cannot be changed later without destroying and re-creating the project, including all sub-resources.

accountId string

is an optional property to link a project to already an existing account by using account ID.

availableCredits string
billingAddress string
billingCurrency string
billingEmails string[]
billingExtraText string
billingGroup string
caCert string

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

cardId string

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

copyFromProject string

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

country string
countryCode string
defaultCloud string
estimatedBalance string
paymentMethod string
technicalEmails string[]
vatId string
project str

defines the name of the project. Name must be globally unique (between all Aiven customers) and cannot be changed later without destroying and re-creating the project, including all sub-resources.

account_id str

is an optional property to link a project to already an existing account by using account ID.

available_credits str
billing_address str
billing_currency str
billing_emails Sequence[str]
billing_extra_text str
billing_group str
ca_cert str

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

card_id str

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

copy_from_project str

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

country str
country_code str
default_cloud str
estimated_balance str
payment_method str
technical_emails Sequence[str]
vat_id str

getProject Result

The following output properties are available:

AvailableCredits string
CaCert string

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

Country string
EstimatedBalance string
Id string

The provider-assigned unique ID for this managed resource.

PaymentMethod string
Project string
AccountId string

is an optional property to link a project to already an existing account by using account ID.

BillingAddress string
BillingCurrency string
BillingEmails List<string>
BillingExtraText string
BillingGroup string
CardId string

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

CopyFromProject string

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

CountryCode string
DefaultCloud string
TechnicalEmails List<string>
VatId string
AvailableCredits string
CaCert string

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

Country string
EstimatedBalance string
Id string

The provider-assigned unique ID for this managed resource.

PaymentMethod string
Project string
AccountId string

is an optional property to link a project to already an existing account by using account ID.

BillingAddress string
BillingCurrency string
BillingEmails []string
BillingExtraText string
BillingGroup string
CardId string

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

CopyFromProject string

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

CountryCode string
DefaultCloud string
TechnicalEmails []string
VatId string
availableCredits string
caCert string

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

country string
estimatedBalance string
id string

The provider-assigned unique ID for this managed resource.

paymentMethod string
project string
accountId string

is an optional property to link a project to already an existing account by using account ID.

billingAddress string
billingCurrency string
billingEmails string[]
billingExtraText string
billingGroup string
cardId string

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

copyFromProject string

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

countryCode string
defaultCloud string
technicalEmails string[]
vatId string
available_credits str
ca_cert str

is a computed property that can be used to read the CA certificate of the project. This is required for configuring clients that connect to certain services like Kafka. This value cannot be set, only read.

country str
estimated_balance str
id str

The provider-assigned unique ID for this managed resource.

payment_method str
project str
account_id str

is an optional property to link a project to already an existing account by using account ID.

billing_address str
billing_currency str
billing_emails Sequence[str]
billing_extra_text str
billing_group str
card_id str

is either the full card UUID or the last 4 digits of the card. As the full UUID is not shown in the UI it is typically easier to use the last 4 digits to identify the card. This can be omitted if copy_from_project is used to copy billing info from another project.

copy_from_project str

is the name of another project used to copy billing information and some other project attributes like technical contacts from. This is mostly relevant when an existing project has billing type set to invoice and that needs to be copied over to a new project. (Setting billing is otherwise not allowed over the API.) This only has effect when the project is created.

country_code str
default_cloud str
technical_emails Sequence[str]
vat_id str

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.