OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.Cloud.getProject
Explore with Pulumi AI
Get the details of a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const project = ovh.Cloud.getProject({
    serviceName: "XXX",
});
import pulumi
import pulumi_ovh as ovh
project = ovh.Cloud.get_project(service_name="XXX")
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.GetProject(ctx, &cloud.GetProjectArgs{
			ServiceName: "XXX",
		}, 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 project = Ovh.Cloud.GetProject.Invoke(new()
    {
        ServiceName = "XXX",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Cloud.CloudFunctions;
import com.pulumi.ovh.Cloud.inputs.GetProjectArgs;
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 project = CloudFunctions.getProject(GetProjectArgs.builder()
            .serviceName("XXX")
            .build());
    }
}
variables:
  project:
    fn::invoke:
      function: ovh:Cloud:getProject
      arguments:
        serviceName: XXX
Using getProject
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 getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>def get_project(service_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(service_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]func GetProject(ctx *Context, args *GetProjectArgs, opts ...InvokeOption) (*GetProjectResult, error)
func GetProjectOutput(ctx *Context, args *GetProjectOutputArgs, opts ...InvokeOption) GetProjectResultOutput> Note: This function is named GetProject in the Go SDK.
public static class GetProject 
{
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
public static Output<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:Cloud/getProject:getProject
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ServiceName string
- The ID of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- ServiceName string
- The ID of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- serviceName String
- The ID of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- serviceName string
- The ID of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service_name str
- The ID of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- serviceName String
- The ID of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getProject Result
The following output properties are available:
- Access string
- Project access
- CreationDate 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
GetProject Iam 
- IAM resource information
- Id string
- The provider-assigned unique ID for this managed resource.
- ManualQuota bool
- Manual quota prevent automatic quota upgrade
- OrderId double
- Project order ID
- PlanCode string
- Order plan code
- ProjectId string
- Project ID
- ProjectName string
- Project name
- ServiceName string
- ID of the public cloud project
- Status string
- Current status
- Unleash bool
- Project unleashed
- Access string
- Project access
- CreationDate 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
GetProject Iam 
- IAM resource information
- Id string
- The provider-assigned unique ID for this managed resource.
- ManualQuota bool
- Manual quota prevent automatic quota upgrade
- OrderId float64
- Project order ID
- PlanCode string
- Order plan code
- ProjectId string
- Project ID
- ProjectName string
- Project name
- ServiceName string
- ID of the public cloud project
- Status string
- Current status
- Unleash bool
- Project unleashed
- access String
- Project access
- creationDate 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
GetProject Iam 
- IAM resource information
- id String
- The provider-assigned unique ID for this managed resource.
- manualQuota Boolean
- Manual quota prevent automatic quota upgrade
- orderId Double
- Project order ID
- planCode String
- Order plan code
- projectId String
- Project ID
- projectName String
- Project name
- serviceName String
- ID of the public cloud project
- status String
- Current status
- unleash Boolean
- Project unleashed
- access string
- Project access
- creationDate 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
GetProject Iam 
- IAM resource information
- id string
- The provider-assigned unique ID for this managed resource.
- manualQuota boolean
- Manual quota prevent automatic quota upgrade
- orderId number
- Project order ID
- planCode string
- Order plan code
- projectId string
- Project ID
- projectName string
- Project name
- serviceName 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 Project Iam 
- IAM resource information
- id str
- The provider-assigned unique ID for this managed resource.
- 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
- creationDate 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
- id String
- The provider-assigned unique ID for this managed resource.
- manualQuota Boolean
- Manual quota prevent automatic quota upgrade
- orderId Number
- Project order ID
- planCode String
- Order plan code
- projectId String
- Project ID
- projectName String
- Project name
- serviceName String
- ID of the public cloud project
- status String
- Current status
- unleash Boolean
- Project unleashed
Supporting Types
GetProjectIam  
- DisplayName 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
- DisplayName 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
- displayName 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
- displayName 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
- displayName 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.