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.
- Account
Id string is an optional property to link a project to already an existing account by using account ID.
- Available
Credits string - Billing
Address string - Billing
Currency string - Billing
Emails List<string> - Billing
Extra stringText - Billing
Group string - Ca
Cert 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.
- Card
Id 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.- Copy
From stringProject 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
- Country
Code string - Default
Cloud string - Estimated
Balance string - Payment
Method string - Technical
Emails List<string> - Vat
Id 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.
- Account
Id string is an optional property to link a project to already an existing account by using account ID.
- Available
Credits string - Billing
Address string - Billing
Currency string - Billing
Emails []string - Billing
Extra stringText - Billing
Group string - Ca
Cert 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.
- Card
Id 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.- Copy
From stringProject 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
- Country
Code string - Default
Cloud string - Estimated
Balance string - Payment
Method string - Technical
Emails []string - Vat
Id 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.
- account
Id string is an optional property to link a project to already an existing account by using account ID.
- available
Credits string - billing
Address string - billing
Currency string - billing
Emails string[] - billing
Extra stringText - billing
Group string - ca
Cert 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.
- card
Id 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.- copy
From stringProject 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
- country
Code string - default
Cloud string - estimated
Balance string - payment
Method string - technical
Emails string[] - vat
Id 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_ strtext - 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_ strproject 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:
- Available
Credits string - Ca
Cert 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
- Estimated
Balance string - Id string
The provider-assigned unique ID for this managed resource.
- Payment
Method string - Project string
- Account
Id string is an optional property to link a project to already an existing account by using account ID.
- Billing
Address string - Billing
Currency string - Billing
Emails List<string> - Billing
Extra stringText - Billing
Group string - Card
Id 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.- Copy
From stringProject 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 string - Default
Cloud string - Technical
Emails List<string> - Vat
Id string
- Available
Credits string - Ca
Cert 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
- Estimated
Balance string - Id string
The provider-assigned unique ID for this managed resource.
- Payment
Method string - Project string
- Account
Id string is an optional property to link a project to already an existing account by using account ID.
- Billing
Address string - Billing
Currency string - Billing
Emails []string - Billing
Extra stringText - Billing
Group string - Card
Id 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.- Copy
From stringProject 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 string - Default
Cloud string - Technical
Emails []string - Vat
Id string
- available
Credits string - ca
Cert 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
- estimated
Balance string - id string
The provider-assigned unique ID for this managed resource.
- payment
Method string - project string
- account
Id string is an optional property to link a project to already an existing account by using account ID.
- billing
Address string - billing
Currency string - billing
Emails string[] - billing
Extra stringText - billing
Group string - card
Id 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.- copy
From stringProject 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 string - default
Cloud string - technical
Emails string[] - vat
Id 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_ strtext - 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_ strproject 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.