1. Packages
  2. OVH
  3. API Docs
  4. Cloud
  5. getProjects
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Cloud.getProjects

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Cloud/getProjects:getProjects
      arguments:
        # arguments dictionary

    getProjects Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Projects List<GetProjectsProject>
    Id string
    The provider-assigned unique ID for this managed resource.
    Projects []GetProjectsProject
    id String
    The provider-assigned unique ID for this managed resource.
    projects List<GetProjectsProject>
    id string
    The provider-assigned unique ID for this managed resource.
    projects GetProjectsProject[]
    id str
    The provider-assigned unique ID for this managed resource.
    projects Sequence[cloud.GetProjectsProject]
    id String
    The provider-assigned unique ID for this managed resource.
    projects List<Property Map>

    Supporting Types

    GetProjectsProject

    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 GetProjectsProjectIam
    IAM resource information
    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 GetProjectsProjectIam
    IAM resource information
    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 GetProjectsProjectIam
    IAM resource information
    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 GetProjectsProjectIam
    IAM resource information
    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.GetProjectsProjectIam
    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
    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
    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

    GetProjectsProjectIam

    DisplayName string
    Resource display name
    Id string
    Unique identifier of the resource in the IAM
    Tags 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
    Tags 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
    tags 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
    tags {[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
    tags 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
    tags 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 ovh Terraform Provider.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud