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

getProject

Use this datasource to retrieve attributes of the Project API resource.

Example Usage

using Pulumi;
using Packet = Pulumi.Packet;

class MyStack : Stack
{
    public MyStack()
    {
        var tfProject1 = Output.Create(Packet.GetProject.InvokeAsync(new Packet.GetProjectArgs
        {
            Name = "Terraform Fun",
        }));
        this.UsersOfTerraformFun = tfProject1.Apply(tfProject1 => tfProject1.UserIds);
    }

    [Output("usersOfTerraformFun")]
    public Output<string> UsersOfTerraformFun { get; set; }
}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "Terraform Fun"
        tfProject1, err := packet.LookupProject(ctx, &packet.LookupProjectArgs{
            Name: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("usersOfTerraformFun", tfProject1.UserIds)
        return nil
    })
}
import pulumi
import pulumi_packet as packet

tf_project1 = packet.get_project(name="Terraform Fun")
pulumi.export("usersOfTerraformFun", tf_project1.user_ids)
import * as pulumi from "@pulumi/pulumi";
import * as packet from "@pulumi/packet";

const tfProject1 = packet.getProject({
    name: "Terraform Fun",
});
export const usersOfTerraformFun = tfProject1.then(tfProject1 => tfProject1.userIds);

Using getProject

function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
def get_project(name: Optional[str] = None, project_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:

Name string

The name which is used to look up the project

ProjectId string

The UUID by which to look up the project

Name string

The name which is used to look up the project

ProjectId string

The UUID by which to look up the project

name string

The name which is used to look up the project

projectId string

The UUID by which to look up the project

name str

The name which is used to look up the project

project_id str

The UUID by which to look up the project

getProject Result

The following output properties are available:

BackendTransfer bool

Whether Backend Transfer is enabled for this project

BgpConfig GetProjectBgpConfig

Optional BGP settings. Refer to Packet guide for BGP.

Created string

The timestamp for when the project was created

Id string

The provider-assigned unique ID for this managed resource.

Name string
OrganizationId string

The UUID of this project’s parent organization

PaymentMethodId string

The UUID of payment method for this project

ProjectId string
Updated string

The timestamp for the last time the project was updated

UserIds List<string>

List of UUIDs of user accounts which beling to this project

BackendTransfer bool

Whether Backend Transfer is enabled for this project

BgpConfig GetProjectBgpConfig

Optional BGP settings. Refer to Packet guide for BGP.

Created string

The timestamp for when the project was created

Id string

The provider-assigned unique ID for this managed resource.

Name string
OrganizationId string

The UUID of this project’s parent organization

PaymentMethodId string

The UUID of payment method for this project

ProjectId string
Updated string

The timestamp for the last time the project was updated

UserIds []string

List of UUIDs of user accounts which beling to this project

backendTransfer boolean

Whether Backend Transfer is enabled for this project

bgpConfig GetProjectBgpConfig

Optional BGP settings. Refer to Packet guide for BGP.

created string

The timestamp for when the project was created

id string

The provider-assigned unique ID for this managed resource.

name string
organizationId string

The UUID of this project’s parent organization

paymentMethodId string

The UUID of payment method for this project

projectId string
updated string

The timestamp for the last time the project was updated

userIds string[]

List of UUIDs of user accounts which beling to this project

backend_transfer bool

Whether Backend Transfer is enabled for this project

bgp_config GetProjectBgpConfig

Optional BGP settings. Refer to Packet guide for BGP.

created str

The timestamp for when the project was created

id str

The provider-assigned unique ID for this managed resource.

name str
organization_id str

The UUID of this project’s parent organization

payment_method_id str

The UUID of payment method for this project

project_id str
updated str

The timestamp for the last time the project was updated

user_ids Sequence[str]

List of UUIDs of user accounts which beling to this project

Supporting Types

GetProjectBgpConfig

Asn int

Autonomous System Numer for local BGP deployment

DeploymentType string

private or public, the private is likely to be usable immediately, the public will need to be review by Packet engineers

MaxPrefix int

The maximum number of route filters allowed per server

Status string

status of BGP configuration in the project

Md5 string

Password for BGP session in plaintext (not a checksum)

Asn int

Autonomous System Numer for local BGP deployment

DeploymentType string

private or public, the private is likely to be usable immediately, the public will need to be review by Packet engineers

MaxPrefix int

The maximum number of route filters allowed per server

Status string

status of BGP configuration in the project

Md5 string

Password for BGP session in plaintext (not a checksum)

asn number

Autonomous System Numer for local BGP deployment

deploymentType string

private or public, the private is likely to be usable immediately, the public will need to be review by Packet engineers

maxPrefix number

The maximum number of route filters allowed per server

status string

status of BGP configuration in the project

md5 string

Password for BGP session in plaintext (not a checksum)

asn int

Autonomous System Numer for local BGP deployment

deployment_type str

private or public, the private is likely to be usable immediately, the public will need to be review by Packet engineers

max_prefix int

The maximum number of route filters allowed per server

status str

status of BGP configuration in the project

md5 str

Password for BGP session in plaintext (not a checksum)

Package Details

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