Project
Provides a DigitalOcean Project resource.
Projects allow you to organize your resources into groups that fit the way you work. You can group resources (like Droplets, Spaces, Load Balancers, domains, and Floating IPs) in ways that align with the applications you host on DigitalOcean.
The following resource types can be associated with a project:
- Database Clusters
- Domains
- Droplets
- Floating IP
- Load Balancers
- Spaces Bucket
- Volume
Note: A managed project cannot be set as a default project.
Example Usage
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var playground = new DigitalOcean.Project("playground", new DigitalOcean.ProjectArgs
{
Description = "A project to represent development resources.",
Environment = "Development",
Purpose = "Web Application",
});
}
}
Coming soon!
import pulumi
import pulumi_digitalocean as digitalocean
playground = digitalocean.Project("playground",
description="A project to represent development resources.",
environment="Development",
purpose="Web Application")import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const playground = new digitalocean.Project("playground", {
description: "A project to represent development resources.",
environment: "Development",
purpose: "Web Application",
});Create a Project Resource
new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);def Project(resource_name, opts=None, description=None, environment=None, name=None, purpose=None, resources=None, __props__=None);func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Project Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Project resource accepts the following input properties:
- Description string
the description of the project
- Environment string
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- Name string
The name of the Project
- Purpose string
the purpose of the project, (Default: “Web Application”)
- Resources List<string>
a list of uniform resource names (URNs) for the resources associated with the project
- Description string
the description of the project
- Environment string
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- Name string
The name of the Project
- Purpose string
the purpose of the project, (Default: “Web Application”)
- Resources []string
a list of uniform resource names (URNs) for the resources associated with the project
- description string
the description of the project
- environment string
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- name string
The name of the Project
- purpose string
the purpose of the project, (Default: “Web Application”)
- resources string[]
a list of uniform resource names (URNs) for the resources associated with the project
- description str
the description of the project
- environment str
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- name str
The name of the Project
- purpose str
the purpose of the project, (Default: “Web Application”)
- resources List[str]
a list of uniform resource names (URNs) for the resources associated with the project
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- Created
At string the date and time when the project was created, (ISO8601)
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Owner
Id int the id of the project owner.
- Owner
Uuid string the unique universal identifier of the project owner.
- Updated
At string the date and time when the project was last updated, (ISO8601)
- Created
At string the date and time when the project was created, (ISO8601)
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Owner
Id int the id of the project owner.
- Owner
Uuid string the unique universal identifier of the project owner.
- Updated
At string the date and time when the project was last updated, (ISO8601)
- created
At string the date and time when the project was created, (ISO8601)
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - owner
Id number the id of the project owner.
- owner
Uuid string the unique universal identifier of the project owner.
- updated
At string the date and time when the project was last updated, (ISO8601)
- created_
at str the date and time when the project was created, (ISO8601)
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - owner_
id float the id of the project owner.
- owner_
uuid str the unique universal identifier of the project owner.
- updated_
at str the date and time when the project was last updated, (ISO8601)
Look up an 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): Projectstatic get(resource_name, id, opts=None, created_at=None, description=None, environment=None, is_default=None, name=None, owner_id=None, owner_uuid=None, purpose=None, resources=None, updated_at=None, __props__=None);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)- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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:
- Created
At string the date and time when the project was created, (ISO8601)
- Description string
the description of the project
- Environment string
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- Is
Default bool - Name string
The name of the Project
- Owner
Id int the id of the project owner.
- Owner
Uuid string the unique universal identifier of the project owner.
- Purpose string
the purpose of the project, (Default: “Web Application”)
- Resources List<string>
a list of uniform resource names (URNs) for the resources associated with the project
- Updated
At string the date and time when the project was last updated, (ISO8601)
- Created
At string the date and time when the project was created, (ISO8601)
- Description string
the description of the project
- Environment string
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- Is
Default bool - Name string
The name of the Project
- Owner
Id int the id of the project owner.
- Owner
Uuid string the unique universal identifier of the project owner.
- Purpose string
the purpose of the project, (Default: “Web Application”)
- Resources []string
a list of uniform resource names (URNs) for the resources associated with the project
- Updated
At string the date and time when the project was last updated, (ISO8601)
- created
At string the date and time when the project was created, (ISO8601)
- description string
the description of the project
- environment string
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- is
Default boolean - name string
The name of the Project
- owner
Id number the id of the project owner.
- owner
Uuid string the unique universal identifier of the project owner.
- purpose string
the purpose of the project, (Default: “Web Application”)
- resources string[]
a list of uniform resource names (URNs) for the resources associated with the project
- updated
At string the date and time when the project was last updated, (ISO8601)
- created_
at str the date and time when the project was created, (ISO8601)
- description str
the description of the project
- environment str
the environment of the project’s resources. The possible values are:
Development,Staging,Production)- is_
default bool - name str
The name of the Project
- owner_
id float the id of the project owner.
- owner_
uuid str the unique universal identifier of the project owner.
- purpose str
the purpose of the project, (Default: “Web Application”)
- resources List[str]
a list of uniform resource names (URNs) for the resources associated with the project
- updated_
at str the date and time when the project was last updated, (ISO8601)
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.