published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
Projects are organizational units that group cloud resources for access control and billing.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudProject = new gcore.CloudProject("example_cloud_project", {
name: "my-project",
description: "Project description",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_project = gcore.CloudProject("example_cloud_project",
name="my-project",
description="Project description")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewCloudProject(ctx, "example_cloud_project", &gcore.CloudProjectArgs{
Name: pulumi.String("my-project"),
Description: pulumi.String("Project description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCloudProject = new Gcore.CloudProject("example_cloud_project", new()
{
Name = "my-project",
Description = "Project description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CloudProject;
import com.pulumi.gcore.CloudProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleCloudProject = new CloudProject("exampleCloudProject", CloudProjectArgs.builder()
.name("my-project")
.description("Project description")
.build());
}
}
resources:
exampleCloudProject:
type: gcore:CloudProject
name: example_cloud_project
properties:
name: my-project
description: Project description
Create CloudProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudProject(name: string, args?: CloudProjectArgs, opts?: CustomResourceOptions);@overload
def CloudProject(resource_name: str,
args: Optional[CloudProjectArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CloudProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewCloudProject(ctx *Context, name string, args *CloudProjectArgs, opts ...ResourceOption) (*CloudProject, error)public CloudProject(string name, CloudProjectArgs? args = null, CustomResourceOptions? opts = null)
public CloudProject(String name, CloudProjectArgs args)
public CloudProject(String name, CloudProjectArgs args, CustomResourceOptions options)
type: gcore:CloudProject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CloudProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CloudProjectArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CloudProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudProjectArgs
- 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 cloudProjectResource = new Gcore.Index.CloudProject("cloudProjectResource", new()
{
Description = "string",
Name = "string",
});
example, err := gcore.NewCloudProject(ctx, "cloudProjectResource", &gcore.CloudProjectArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cloudProjectResource = new CloudProject("cloudProjectResource", CloudProjectArgs.builder()
.description("string")
.name("string")
.build());
cloud_project_resource = gcore.CloudProject("cloudProjectResource",
description="string",
name="string")
const cloudProjectResource = new gcore.CloudProject("cloudProjectResource", {
description: "string",
name: "string",
});
type: gcore:CloudProject
properties:
description: string
name: string
CloudProject 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 CloudProject resource accepts the following input properties:
- Description string
- Description of the project.
- Name string
- Unique project name for a client. Each client always has one "default" project.
- Description string
- Description of the project.
- Name string
- Unique project name for a client. Each client always has one "default" project.
- description String
- Description of the project.
- name String
- Unique project name for a client. Each client always has one "default" project.
- description string
- Description of the project.
- name string
- Unique project name for a client. Each client always has one "default" project.
- description str
- Description of the project.
- name str
- Unique project name for a client. Each client always has one "default" project.
- description String
- Description of the project.
- name String
- Unique project name for a client. Each client always has one "default" project.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudProject resource produces the following output properties:
- Client
Id double - ID associated with the client.
- Cloud
Project doubleId - Project ID, which is automatically generated upon creation.
- Created
At string - Datetime of creation, which is automatically generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Indicates if the project is the default one. Each client always has one default project.
- State string
- The state of the project.
- Client
Id float64 - ID associated with the client.
- Cloud
Project float64Id - Project ID, which is automatically generated upon creation.
- Created
At string - Datetime of creation, which is automatically generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Indicates if the project is the default one. Each client always has one default project.
- State string
- The state of the project.
- client
Id Double - ID associated with the client.
- cloud
Project DoubleId - Project ID, which is automatically generated upon creation.
- created
At String - Datetime of creation, which is automatically generated.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Indicates if the project is the default one. Each client always has one default project.
- state String
- The state of the project.
- client
Id number - ID associated with the client.
- cloud
Project numberId - Project ID, which is automatically generated upon creation.
- created
At string - Datetime of creation, which is automatically generated.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - Indicates if the project is the default one. Each client always has one default project.
- state string
- The state of the project.
- client_
id float - ID associated with the client.
- cloud_
project_ floatid - Project ID, which is automatically generated upon creation.
- created_
at str - Datetime of creation, which is automatically generated.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - Indicates if the project is the default one. Each client always has one default project.
- state str
- The state of the project.
- client
Id Number - ID associated with the client.
- cloud
Project NumberId - Project ID, which is automatically generated upon creation.
- created
At String - Datetime of creation, which is automatically generated.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Indicates if the project is the default one. Each client always has one default project.
- state String
- The state of the project.
Look up Existing CloudProject Resource
Get an existing CloudProject 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?: CloudProjectState, opts?: CustomResourceOptions): CloudProject@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[float] = None,
cloud_project_id: Optional[float] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
state: Optional[str] = None) -> CloudProjectfunc GetCloudProject(ctx *Context, name string, id IDInput, state *CloudProjectState, opts ...ResourceOption) (*CloudProject, error)public static CloudProject Get(string name, Input<string> id, CloudProjectState? state, CustomResourceOptions? opts = null)public static CloudProject get(String name, Output<String> id, CloudProjectState state, CustomResourceOptions options)resources: _: type: gcore:CloudProject get: id: ${id}- 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.
- 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.
- Client
Id double - ID associated with the client.
- Cloud
Project doubleId - Project ID, which is automatically generated upon creation.
- Created
At string - Datetime of creation, which is automatically generated.
- Description string
- Description of the project.
- Is
Default bool - Indicates if the project is the default one. Each client always has one default project.
- Name string
- Unique project name for a client. Each client always has one "default" project.
- State string
- The state of the project.
- Client
Id float64 - ID associated with the client.
- Cloud
Project float64Id - Project ID, which is automatically generated upon creation.
- Created
At string - Datetime of creation, which is automatically generated.
- Description string
- Description of the project.
- Is
Default bool - Indicates if the project is the default one. Each client always has one default project.
- Name string
- Unique project name for a client. Each client always has one "default" project.
- State string
- The state of the project.
- client
Id Double - ID associated with the client.
- cloud
Project DoubleId - Project ID, which is automatically generated upon creation.
- created
At String - Datetime of creation, which is automatically generated.
- description String
- Description of the project.
- is
Default Boolean - Indicates if the project is the default one. Each client always has one default project.
- name String
- Unique project name for a client. Each client always has one "default" project.
- state String
- The state of the project.
- client
Id number - ID associated with the client.
- cloud
Project numberId - Project ID, which is automatically generated upon creation.
- created
At string - Datetime of creation, which is automatically generated.
- description string
- Description of the project.
- is
Default boolean - Indicates if the project is the default one. Each client always has one default project.
- name string
- Unique project name for a client. Each client always has one "default" project.
- state string
- The state of the project.
- client_
id float - ID associated with the client.
- cloud_
project_ floatid - Project ID, which is automatically generated upon creation.
- created_
at str - Datetime of creation, which is automatically generated.
- description str
- Description of the project.
- is_
default bool - Indicates if the project is the default one. Each client always has one default project.
- name str
- Unique project name for a client. Each client always has one "default" project.
- state str
- The state of the project.
- client
Id Number - ID associated with the client.
- cloud
Project NumberId - Project ID, which is automatically generated upon creation.
- created
At String - Datetime of creation, which is automatically generated.
- description String
- Description of the project.
- is
Default Boolean - Indicates if the project is the default one. Each client always has one default project.
- name String
- Unique project name for a client. Each client always has one "default" project.
- state String
- The state of the project.
Import
The pulumi import command can be used, for example:
$ pulumi import gcore:index/cloudProject:CloudProject example '<project_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Monday, Mar 30, 2026 by g-core
