1. Packages
  2. Gcore Provider
  3. API Docs
  4. getCloudProject
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
gcore logo
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 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 = gcore.getCloudProject({
        projectId: 4,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cloud_project = gcore.get_cloud_project(project_id=4)
    
    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.LookupCloudProject(ctx, &gcore.LookupCloudProjectArgs{
    			ProjectId: pulumi.Float64Ref(4),
    		}, nil)
    		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 = Gcore.GetCloudProject.Invoke(new()
        {
            ProjectId = 4,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetCloudProjectArgs;
    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) {
            final var exampleCloudProject = GcoreFunctions.getCloudProject(GetCloudProjectArgs.builder()
                .projectId(4)
                .build());
    
        }
    }
    
    variables:
      exampleCloudProject:
        fn::invoke:
          function: gcore:getCloudProject
          arguments:
            projectId: 4
    

    Using getCloudProject

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCloudProject(args: GetCloudProjectArgs, opts?: InvokeOptions): Promise<GetCloudProjectResult>
    function getCloudProjectOutput(args: GetCloudProjectOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectResult>
    def get_cloud_project(find_one_by: Optional[GetCloudProjectFindOneBy] = None,
                          project_id: Optional[float] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCloudProjectResult
    def get_cloud_project_output(find_one_by: Optional[pulumi.Input[GetCloudProjectFindOneByArgs]] = None,
                          project_id: Optional[pulumi.Input[float]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectResult]
    func LookupCloudProject(ctx *Context, args *LookupCloudProjectArgs, opts ...InvokeOption) (*LookupCloudProjectResult, error)
    func LookupCloudProjectOutput(ctx *Context, args *LookupCloudProjectOutputArgs, opts ...InvokeOption) LookupCloudProjectResultOutput

    > Note: This function is named LookupCloudProject in the Go SDK.

    public static class GetCloudProject 
    {
        public static Task<GetCloudProjectResult> InvokeAsync(GetCloudProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudProjectResult> Invoke(GetCloudProjectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudProjectResult> getCloudProject(GetCloudProjectArgs args, InvokeOptions options)
    public static Output<GetCloudProjectResult> getCloudProject(GetCloudProjectArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCloudProject:getCloudProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getCloudProject Result

    The following output properties are available:

    ClientId double
    ID associated with the client.
    CreatedAt string
    Datetime of creation, which is automatically generated.
    DeletedAt string
    Datetime of deletion, which is automatically generated if the project is deleted.
    Description string
    Description of the project.
    Id double
    Project ID
    IsDefault bool
    Indicates if the project is the default one. Each client always has one default project.
    Name string
    Unique project name for a client.
    State string
    The state of the project.
    FindOneBy GetCloudProjectFindOneBy
    ProjectId double
    Project ID
    ClientId float64
    ID associated with the client.
    CreatedAt string
    Datetime of creation, which is automatically generated.
    DeletedAt string
    Datetime of deletion, which is automatically generated if the project is deleted.
    Description string
    Description of the project.
    Id float64
    Project ID
    IsDefault bool
    Indicates if the project is the default one. Each client always has one default project.
    Name string
    Unique project name for a client.
    State string
    The state of the project.
    FindOneBy GetCloudProjectFindOneBy
    ProjectId float64
    Project ID
    clientId Double
    ID associated with the client.
    createdAt String
    Datetime of creation, which is automatically generated.
    deletedAt String
    Datetime of deletion, which is automatically generated if the project is deleted.
    description String
    Description of the project.
    id Double
    Project ID
    isDefault Boolean
    Indicates if the project is the default one. Each client always has one default project.
    name String
    Unique project name for a client.
    state String
    The state of the project.
    findOneBy GetCloudProjectFindOneBy
    projectId Double
    Project ID
    clientId number
    ID associated with the client.
    createdAt string
    Datetime of creation, which is automatically generated.
    deletedAt string
    Datetime of deletion, which is automatically generated if the project is deleted.
    description string
    Description of the project.
    id number
    Project ID
    isDefault boolean
    Indicates if the project is the default one. Each client always has one default project.
    name string
    Unique project name for a client.
    state string
    The state of the project.
    findOneBy GetCloudProjectFindOneBy
    projectId number
    Project ID
    client_id float
    ID associated with the client.
    created_at str
    Datetime of creation, which is automatically generated.
    deleted_at str
    Datetime of deletion, which is automatically generated if the project is deleted.
    description str
    Description of the project.
    id float
    Project ID
    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.
    state str
    The state of the project.
    find_one_by GetCloudProjectFindOneBy
    project_id float
    Project ID
    clientId Number
    ID associated with the client.
    createdAt String
    Datetime of creation, which is automatically generated.
    deletedAt String
    Datetime of deletion, which is automatically generated if the project is deleted.
    description String
    Description of the project.
    id Number
    Project ID
    isDefault Boolean
    Indicates if the project is the default one. Each client always has one default project.
    name String
    Unique project name for a client.
    state String
    The state of the project.
    findOneBy Property Map
    projectId Number
    Project ID

    Supporting Types

    GetCloudProjectFindOneBy

    IncludeDeleted bool
    Whether to include deleted projects in the response.
    OrderBy string
    Order by field and direction. Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
    ClientId double
    Client ID filter for administrators.
    Name string
    Name to filter the results by.
    IncludeDeleted bool
    Whether to include deleted projects in the response.
    OrderBy string
    Order by field and direction. Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
    ClientId float64
    Client ID filter for administrators.
    Name string
    Name to filter the results by.
    includeDeleted Boolean
    Whether to include deleted projects in the response.
    orderBy String
    Order by field and direction. Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
    clientId Double
    Client ID filter for administrators.
    name String
    Name to filter the results by.
    includeDeleted boolean
    Whether to include deleted projects in the response.
    orderBy string
    Order by field and direction. Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
    clientId number
    Client ID filter for administrators.
    name string
    Name to filter the results by.
    include_deleted bool
    Whether to include deleted projects in the response.
    order_by str
    Order by field and direction. Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
    client_id float
    Client ID filter for administrators.
    name str
    Name to filter the results by.
    includeDeleted Boolean
    Whether to include deleted projects in the response.
    orderBy String
    Order by field and direction. Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc".
    clientId Number
    Client ID filter for administrators.
    name String
    Name to filter the results by.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    Viewing docs for gcore 2.0.0-alpha.2
    published on Tuesday, Mar 24, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.