OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.Cloud.getProjects
Explore with Pulumi AI
Get the details of your public cloud projects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const projects = ovh.Cloud.getProjects({});
import pulumi
import pulumi_ovh as ovh
projects = ovh.Cloud.get_projects()
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloud.GetProjects(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var projects = Ovh.Cloud.GetProjects.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Cloud.CloudFunctions;
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 projects = CloudFunctions.getProjects();
    }
}
variables:
  projects:
    fn::invoke:
      function: ovh:Cloud:getProjects
      arguments: {}
Using getProjects
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 getProjects(opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(opts?: InvokeOptions): Output<GetProjectsResult>def get_projects(opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]func GetProjects(ctx *Context, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, opts ...InvokeOption) GetProjectsResultOutput> Note: This function is named GetProjects in the Go SDK.
public static class GetProjects 
{
    public static Task<GetProjectsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetProjectsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectsResult> getProjects(InvokeOptions options)
public static Output<GetProjectsResult> getProjects(InvokeOptions options)
fn::invoke:
  function: ovh:Cloud/getProjects:getProjects
  arguments:
    # arguments dictionarygetProjects Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Projects
List<Get
Projects Project>  
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Projects
[]Get
Projects Project  
- id String
 - The provider-assigned unique ID for this managed resource.
 - projects
List<Get
Projects Project>  
- id string
 - The provider-assigned unique ID for this managed resource.
 - projects
Get
Projects Project[]  
- id str
 - The provider-assigned unique ID for this managed resource.
 - projects
Sequence[cloud.
Get Projects Project]  
- id String
 - The provider-assigned unique ID for this managed resource.
 - projects List<Property Map>
 
Supporting Types
GetProjectsProject  
- Access string
 - Project access
 - Creation
Date string - Project creation date
 - Description string
 - Description of your project
 - Expiration string
 - Expiration date of your project. After this date, your project will be deleted
 - Iam
Get
Projects Project Iam  - IAM resource information
 - Manual
Quota bool - Manual quota prevent automatic quota upgrade
 - Order
Id double - Project order ID
 - Plan
Code string - Order plan code
 - Project
Id string - Project ID
 - Project
Name string - Project name
 - Service
Name string - ID of the public cloud project
 - Status string
 - Current status
 - Unleash bool
 - Project unleashed
 
- Access string
 - Project access
 - Creation
Date string - Project creation date
 - Description string
 - Description of your project
 - Expiration string
 - Expiration date of your project. After this date, your project will be deleted
 - Iam
Get
Projects Project Iam  - IAM resource information
 - Manual
Quota bool - Manual quota prevent automatic quota upgrade
 - Order
Id float64 - Project order ID
 - Plan
Code string - Order plan code
 - Project
Id string - Project ID
 - Project
Name string - Project name
 - Service
Name string - ID of the public cloud project
 - Status string
 - Current status
 - Unleash bool
 - Project unleashed
 
- access String
 - Project access
 - creation
Date String - Project creation date
 - description String
 - Description of your project
 - expiration String
 - Expiration date of your project. After this date, your project will be deleted
 - iam
Get
Projects Project Iam  - IAM resource information
 - manual
Quota Boolean - Manual quota prevent automatic quota upgrade
 - order
Id Double - Project order ID
 - plan
Code String - Order plan code
 - project
Id String - Project ID
 - project
Name String - Project name
 - service
Name String - ID of the public cloud project
 - status String
 - Current status
 - unleash Boolean
 - Project unleashed
 
- access string
 - Project access
 - creation
Date string - Project creation date
 - description string
 - Description of your project
 - expiration string
 - Expiration date of your project. After this date, your project will be deleted
 - iam
Get
Projects Project Iam  - IAM resource information
 - manual
Quota boolean - Manual quota prevent automatic quota upgrade
 - order
Id number - Project order ID
 - plan
Code string - Order plan code
 - project
Id string - Project ID
 - project
Name string - Project name
 - service
Name string - ID of the public cloud project
 - status string
 - Current status
 - unleash boolean
 - Project unleashed
 
- access str
 - Project access
 - creation_
date str - Project creation date
 - description str
 - Description of your project
 - expiration str
 - Expiration date of your project. After this date, your project will be deleted
 - iam
cloud.
Get Projects Project Iam  - IAM resource information
 - manual_
quota bool - Manual quota prevent automatic quota upgrade
 - order_
id float - Project order ID
 - plan_
code str - Order plan code
 - project_
id str - Project ID
 - project_
name str - Project name
 - service_
name str - ID of the public cloud project
 - status str
 - Current status
 - unleash bool
 - Project unleashed
 
- access String
 - Project access
 - creation
Date String - Project creation date
 - description String
 - Description of your project
 - expiration String
 - Expiration date of your project. After this date, your project will be deleted
 - iam Property Map
 - IAM resource information
 - manual
Quota Boolean - Manual quota prevent automatic quota upgrade
 - order
Id Number - Project order ID
 - plan
Code String - Order plan code
 - project
Id String - Project ID
 - project
Name String - Project name
 - service
Name String - ID of the public cloud project
 - status String
 - Current status
 - unleash Boolean
 - Project unleashed
 
GetProjectsProjectIam   
- Display
Name string - Resource display name
 - Id string
 - Unique identifier of the resource in the IAM
 - Dictionary<string, string>
 - Resource tags. Tags that were internally computed are prefixed with 
ovh: - Urn string
 - URN of the private database, used when writing IAM policies
 
- Display
Name string - Resource display name
 - Id string
 - Unique identifier of the resource in the IAM
 - map[string]string
 - Resource tags. Tags that were internally computed are prefixed with 
ovh: - Urn string
 - URN of the private database, used when writing IAM policies
 
- display
Name String - Resource display name
 - id String
 - Unique identifier of the resource in the IAM
 - Map<String,String>
 - Resource tags. Tags that were internally computed are prefixed with 
ovh: - urn String
 - URN of the private database, used when writing IAM policies
 
- display
Name string - Resource display name
 - id string
 - Unique identifier of the resource in the IAM
 - {[key: string]: string}
 - Resource tags. Tags that were internally computed are prefixed with 
ovh: - urn string
 - URN of the private database, used when writing IAM policies
 
- display_
name str - Resource display name
 - id str
 - Unique identifier of the resource in the IAM
 - Mapping[str, str]
 - Resource tags. Tags that were internally computed are prefixed with 
ovh: - urn str
 - URN of the private database, used when writing IAM policies
 
- display
Name String - Resource display name
 - id String
 - Unique identifier of the resource in the IAM
 - Map<String>
 - Resource tags. Tags that were internally computed are prefixed with 
ovh: - urn String
 - URN of the private database, used when writing IAM policies
 
Package Details
- Repository
 - ovh ovh/pulumi-ovh
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ovhTerraform Provider.