Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Get the details of a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/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:
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- service
Name 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.
- service
Name 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
- 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
Project Iam - IAM resource information
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
Project Iam - IAM resource information
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
Project Iam - IAM resource information
- id String
- The provider-assigned unique ID for this managed resource.
- 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
Project Iam - IAM resource information
- id string
- The provider-assigned unique ID for this managed resource.
- 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
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
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
Supporting Types
GetProjectIam
- 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.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
