Project
Allows creation and management of a Google Cloud Platform project.
Projects created with this resource must be associated with an Organization. See the Organization documentation for more details.
The service account used to run this provider when creating a gcp.organizations.Project
resource must have roles/resourcemanager.projectCreator. See the
Access Control for Organizations Using IAM
doc for more information.
Create a Project Resource
new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);def Project(resource_name, opts=None, auto_create_network=None, billing_account=None, folder_id=None, labels=None, name=None, org_id=None, project_id=None, skip_delete=None, __props__=None);func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)public Project(string name, ProjectArgs args, 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:
- Project
Id string The project ID. Changing this forces a new project to be created.
- Auto
Create boolNetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- Billing
Account string The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- Folder
Id string The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- Labels Dictionary<string, string>
A set of key/value label pairs to assign to the project.
- Name string
The display name of the project.
- Org
Id string The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- Skip
Delete bool If true, the resource can be deleted without deleting the Project via the Google API.
- Project
Id string The project ID. Changing this forces a new project to be created.
- Auto
Create boolNetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- Billing
Account string The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- Folder
Id string The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- Labels map[string]string
A set of key/value label pairs to assign to the project.
- Name string
The display name of the project.
- Org
Id string The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- Skip
Delete bool If true, the resource can be deleted without deleting the Project via the Google API.
- project
Id string The project ID. Changing this forces a new project to be created.
- auto
Create booleanNetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- billing
Account string The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- folder
Id string The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- labels {[key: string]: string}
A set of key/value label pairs to assign to the project.
- name string
The display name of the project.
- org
Id string The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- skip
Delete boolean If true, the resource can be deleted without deleting the Project via the Google API.
- project_
id str The project ID. Changing this forces a new project to be created.
- auto_
create_ boolnetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- billing_
account str The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- folder_
id str The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- labels Dict[str, str]
A set of key/value label pairs to assign to the project.
- name str
The display name of the project.
- org_
id str The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- skip_
delete bool If true, the resource can be deleted without deleting the Project via the Google API.
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
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, auto_create_network=None, billing_account=None, folder_id=None, labels=None, name=None, number=None, org_id=None, project_id=None, skip_delete=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:
- Auto
Create boolNetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- Billing
Account string The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- Folder
Id string The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- Labels Dictionary<string, string>
A set of key/value label pairs to assign to the project.
- Name string
The display name of the project.
- Number string
The numeric identifier of the project.
- Org
Id string The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- Project
Id string The project ID. Changing this forces a new project to be created.
- Skip
Delete bool If true, the resource can be deleted without deleting the Project via the Google API.
- Auto
Create boolNetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- Billing
Account string The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- Folder
Id string The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- Labels map[string]string
A set of key/value label pairs to assign to the project.
- Name string
The display name of the project.
- Number string
The numeric identifier of the project.
- Org
Id string The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- Project
Id string The project ID. Changing this forces a new project to be created.
- Skip
Delete bool If true, the resource can be deleted without deleting the Project via the Google API.
- auto
Create booleanNetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- billing
Account string The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- folder
Id string The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- labels {[key: string]: string}
A set of key/value label pairs to assign to the project.
- name string
The display name of the project.
- number string
The numeric identifier of the project.
- org
Id string The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- project
Id string The project ID. Changing this forces a new project to be created.
- skip
Delete boolean If true, the resource can be deleted without deleting the Project via the Google API.
- auto_
create_ boolnetwork Create the ‘default’ network automatically. Default
true. If set tofalse, the default network will be deleted. Note that, for quota purposes, you will still need to have 1 network slot available to create the project successfully, even if you setauto_create_networktofalse, since the network will exist momentarily.- billing_
account str The alphanumeric ID of the billing account this project belongs to. The user or service account performing this operation with the provider must have Billing Account Administrator privileges (
roles/billing.admin) in the organization. See Google Cloud Billing API Access Control for more details.- folder_
id str The numeric ID of the folder this project should be created under. Only one of
org_idorfolder_idmay be specified. If thefolder_idis specified, then the project is created under the specified folder. Changing this forces the project to be migrated to the newly specified folder.- labels Dict[str, str]
A set of key/value label pairs to assign to the project.
- name str
The display name of the project.
- number str
The numeric identifier of the project.
- org_
id str The numeric ID of the organization this project belongs to. Changing this forces a new project to be created. Only one of
org_idorfolder_idmay be specified. If theorg_idis specified then the project is created at the top level. Changing this forces the project to be migrated to the newly specified organization.- project_
id str The project ID. Changing this forces a new project to be created.
- skip_
delete bool If true, the resource can be deleted without deleting the Project via the Google API.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.