1. Packages
  2. Packet
  3. API Docs
  4. Project
Packet v3.2.2 published on Thursday, Nov 12, 2020 by Pulumi

packet.Project

Explore with Pulumi AI

Provides a Packet project resource to allow you manage devices in your projects.

Example Usage

using Pulumi;
using Packet = Pulumi.Packet;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new project
        var tfProject1 = new Packet.Project("tfProject1", new Packet.ProjectArgs
        {
            Name = "Terraform Fun",
        });
    }

}
Copy
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 {
		_, err := packet.NewProject(ctx, "tfProject1", &packet.ProjectArgs{
			Name: pulumi.String("Terraform Fun"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as packet from "@pulumi/packet";

// Create a new project
const tfProject1 = new packet.Project("tf_project_1", {
    name: "Terraform Fun",
});
Copy
import pulumi
import pulumi_packet as packet

# Create a new project
tf_project1 = packet.Project("tfProject1", name="Terraform Fun")
Copy

Coming soon!

Example with BGP config

using Pulumi;
using Packet = Pulumi.Packet;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new Project
        var tfProject1 = new Packet.Project("tfProject1", new Packet.ProjectArgs
        {
            BgpConfig = new Packet.Inputs.ProjectBgpConfigArgs
            {
                Asn = 65000,
                DeploymentType = "local",
                Md5 = "C179c28c41a85b",
            },
            Name = "tftest",
        });
    }

}
Copy
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 {
		_, err := packet.NewProject(ctx, "tfProject1", &packet.ProjectArgs{
			BgpConfig: &packet.ProjectBgpConfigArgs{
				Asn:            pulumi.Int(65000),
				DeploymentType: pulumi.String("local"),
				Md5:            pulumi.String("C179c28c41a85b"),
			},
			Name: pulumi.String("tftest"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as packet from "@pulumi/packet";

// Create a new Project
const tfProject1 = new packet.Project("tf_project_1", {
    bgpConfig: {
        asn: 65000,
        deploymentType: "local",
        md5: "C179c28c41a85b",
    },
    name: "tftest",
});
Copy
import pulumi
import pulumi_packet as packet

# Create a new Project
tf_project1 = packet.Project("tfProject1",
    bgp_config=packet.ProjectBgpConfigArgs(
        asn=65000,
        deployment_type="local",
        md5="C179c28c41a85b",
    ),
    name="tftest")
Copy

Coming soon!

Create Project Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
            args: ProjectArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Project(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            backend_transfer: Optional[bool] = None,
            bgp_config: Optional[ProjectBgpConfigArgs] = None,
            organization_id: Optional[str] = None,
            payment_method_id: Optional[str] = None)
func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: packet:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProjectArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var projectResource = new Packet.Project("projectResource", new()
{
    Name = "string",
    BackendTransfer = false,
    BgpConfig = new Packet.Inputs.ProjectBgpConfigArgs
    {
        Asn = 0,
        DeploymentType = "string",
        MaxPrefix = 0,
        Md5 = "string",
        Status = "string",
    },
    OrganizationId = "string",
    PaymentMethodId = "string",
});
Copy
example, err := packet.NewProject(ctx, "projectResource", &packet.ProjectArgs{
	Name:            pulumi.String("string"),
	BackendTransfer: pulumi.Bool(false),
	BgpConfig: &packet.ProjectBgpConfigArgs{
		Asn:            pulumi.Int(0),
		DeploymentType: pulumi.String("string"),
		MaxPrefix:      pulumi.Int(0),
		Md5:            pulumi.String("string"),
		Status:         pulumi.String("string"),
	},
	OrganizationId:  pulumi.String("string"),
	PaymentMethodId: pulumi.String("string"),
})
Copy
var projectResource = new Project("projectResource", ProjectArgs.builder()
    .name("string")
    .backendTransfer(false)
    .bgpConfig(ProjectBgpConfigArgs.builder()
        .asn(0)
        .deploymentType("string")
        .maxPrefix(0)
        .md5("string")
        .status("string")
        .build())
    .organizationId("string")
    .paymentMethodId("string")
    .build());
Copy
project_resource = packet.Project("projectResource",
    name="string",
    backend_transfer=False,
    bgp_config={
        "asn": 0,
        "deployment_type": "string",
        "max_prefix": 0,
        "md5": "string",
        "status": "string",
    },
    organization_id="string",
    payment_method_id="string")
Copy
const projectResource = new packet.Project("projectResource", {
    name: "string",
    backendTransfer: false,
    bgpConfig: {
        asn: 0,
        deploymentType: "string",
        maxPrefix: 0,
        md5: "string",
        status: "string",
    },
    organizationId: "string",
    paymentMethodId: "string",
});
Copy
type: packet:Project
properties:
    backendTransfer: false
    bgpConfig:
        asn: 0
        deploymentType: string
        maxPrefix: 0
        md5: string
        status: string
    name: string
    organizationId: string
    paymentMethodId: string
Copy

Project Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Project resource accepts the following input properties:

Name This property is required. string
The name of the project
BackendTransfer bool
Enable or disable Backend Transfer, default is false
BgpConfig ProjectBgpConfig
Optional BGP settings. Refer to Packet guide for BGP.
OrganizationId string
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
PaymentMethodId string
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
Name This property is required. string
The name of the project
BackendTransfer bool
Enable or disable Backend Transfer, default is false
BgpConfig ProjectBgpConfigArgs
Optional BGP settings. Refer to Packet guide for BGP.
OrganizationId string
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
PaymentMethodId string
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
name This property is required. String
The name of the project
backendTransfer Boolean
Enable or disable Backend Transfer, default is false
bgpConfig ProjectBgpConfig
Optional BGP settings. Refer to Packet guide for BGP.
organizationId String
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
paymentMethodId String
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
name This property is required. string
The name of the project
backendTransfer boolean
Enable or disable Backend Transfer, default is false
bgpConfig ProjectBgpConfig
Optional BGP settings. Refer to Packet guide for BGP.
organizationId string
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
paymentMethodId string
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
name This property is required. str
The name of the project
backend_transfer bool
Enable or disable Backend Transfer, default is false
bgp_config ProjectBgpConfigArgs
Optional BGP settings. Refer to Packet guide for BGP.
organization_id str
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
payment_method_id str
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
name This property is required. String
The name of the project
backendTransfer Boolean
Enable or disable Backend Transfer, default is false
bgpConfig Property Map
Optional BGP settings. Refer to Packet guide for BGP.
organizationId String
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
paymentMethodId String
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).

Outputs

All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

Created string
The timestamp for when the project was created
Id string
The provider-assigned unique ID for this managed resource.
Updated string
The timestamp for the last time the project was updated
Created string
The timestamp for when the project was created
Id string
The provider-assigned unique ID for this managed resource.
Updated string
The timestamp for the last time the project was updated
created String
The timestamp for when the project was created
id String
The provider-assigned unique ID for this managed resource.
updated String
The timestamp for the last time the project was updated
created string
The timestamp for when the project was created
id string
The provider-assigned unique ID for this managed resource.
updated string
The timestamp for the last time the project was updated
created str
The timestamp for when the project was created
id str
The provider-assigned unique ID for this managed resource.
updated str
The timestamp for the last time the project was updated
created String
The timestamp for when the project was created
id String
The provider-assigned unique ID for this managed resource.
updated String
The timestamp for the last time the project was updated

Look up Existing Project Resource

Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend_transfer: Optional[bool] = None,
        bgp_config: Optional[ProjectBgpConfigArgs] = None,
        created: Optional[str] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        payment_method_id: Optional[str] = None,
        updated: Optional[str] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
resources:  _:    type: packet:Project    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BackendTransfer bool
Enable or disable Backend Transfer, default is false
BgpConfig ProjectBgpConfig
Optional BGP settings. Refer to Packet guide for BGP.
Created string
The timestamp for when the project was created
Name string
The name of the project
OrganizationId string
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
PaymentMethodId string
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
Updated string
The timestamp for the last time the project was updated
BackendTransfer bool
Enable or disable Backend Transfer, default is false
BgpConfig ProjectBgpConfigArgs
Optional BGP settings. Refer to Packet guide for BGP.
Created string
The timestamp for when the project was created
Name string
The name of the project
OrganizationId string
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
PaymentMethodId string
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
Updated string
The timestamp for the last time the project was updated
backendTransfer Boolean
Enable or disable Backend Transfer, default is false
bgpConfig ProjectBgpConfig
Optional BGP settings. Refer to Packet guide for BGP.
created String
The timestamp for when the project was created
name String
The name of the project
organizationId String
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
paymentMethodId String
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
updated String
The timestamp for the last time the project was updated
backendTransfer boolean
Enable or disable Backend Transfer, default is false
bgpConfig ProjectBgpConfig
Optional BGP settings. Refer to Packet guide for BGP.
created string
The timestamp for when the project was created
name string
The name of the project
organizationId string
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
paymentMethodId string
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
updated string
The timestamp for the last time the project was updated
backend_transfer bool
Enable or disable Backend Transfer, default is false
bgp_config ProjectBgpConfigArgs
Optional BGP settings. Refer to Packet guide for BGP.
created str
The timestamp for when the project was created
name str
The name of the project
organization_id str
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
payment_method_id str
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
updated str
The timestamp for the last time the project was updated
backendTransfer Boolean
Enable or disable Backend Transfer, default is false
bgpConfig Property Map
Optional BGP settings. Refer to Packet guide for BGP.
created String
The timestamp for when the project was created
name String
The name of the project
organizationId String
The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account.
paymentMethodId String
The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default).
updated String
The timestamp for the last time the project was updated

Supporting Types

ProjectBgpConfig
, ProjectBgpConfigArgs

Asn This property is required. int
Autonomous System Number for local BGP deployment
DeploymentType This property is required. 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
Md5 string
Password for BGP session in plaintext (not a checksum)
Status string
status of BGP configuration in the project
Asn This property is required. int
Autonomous System Number for local BGP deployment
DeploymentType This property is required. 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
Md5 string
Password for BGP session in plaintext (not a checksum)
Status string
status of BGP configuration in the project
asn This property is required. Integer
Autonomous System Number for local BGP deployment
deploymentType This property is required. String
private or public, the private is likely to be usable immediately, the public will need to be review by Packet engineers
maxPrefix Integer
The maximum number of route filters allowed per server
md5 String
Password for BGP session in plaintext (not a checksum)
status String
status of BGP configuration in the project
asn This property is required. number
Autonomous System Number for local BGP deployment
deploymentType This property is required. 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
md5 string
Password for BGP session in plaintext (not a checksum)
status string
status of BGP configuration in the project
asn This property is required. int
Autonomous System Number for local BGP deployment
deployment_type This property is required. 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
md5 str
Password for BGP session in plaintext (not a checksum)
status str
status of BGP configuration in the project
asn This property is required. Number
Autonomous System Number for local BGP deployment
deploymentType This property is required. 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
md5 String
Password for BGP session in plaintext (not a checksum)
status String
status of BGP configuration in the project

Package Details

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