1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getRancherPlan
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.CloudProject.getRancherPlan

Explore with Pulumi AI

OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

Use this datasource to retrieve information about the Managed Rancher plans available in the given public cloud project.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const plans = ovh.CloudProject.getRancherPlan({
    projectId: "XXXXXX",
});
Copy
import pulumi
import pulumi_ovh as ovh

plans = ovh.CloudProject.get_rancher_plan(project_id="XXXXXX")
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.GetRancherPlan(ctx, &cloudproject.GetRancherPlanArgs{
			ProjectId: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var plans = Ovh.CloudProject.GetRancherPlan.Invoke(new()
    {
        ProjectId = "XXXXXX",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetRancherPlanArgs;
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 plans = CloudProjectFunctions.getRancherPlan(GetRancherPlanArgs.builder()
            .projectId("XXXXXX")
            .build());

    }
}
Copy
variables:
  plans:
    fn::invoke:
      function: ovh:CloudProject:getRancherPlan
      arguments:
        projectId: XXXXXX
Copy

Using getRancherPlan

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 getRancherPlan(args: GetRancherPlanArgs, opts?: InvokeOptions): Promise<GetRancherPlanResult>
function getRancherPlanOutput(args: GetRancherPlanOutputArgs, opts?: InvokeOptions): Output<GetRancherPlanResult>
Copy
def get_rancher_plan(project_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRancherPlanResult
def get_rancher_plan_output(project_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetRancherPlanResult]
Copy
func GetRancherPlan(ctx *Context, args *GetRancherPlanArgs, opts ...InvokeOption) (*GetRancherPlanResult, error)
func GetRancherPlanOutput(ctx *Context, args *GetRancherPlanOutputArgs, opts ...InvokeOption) GetRancherPlanResultOutput
Copy

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

public static class GetRancherPlan 
{
    public static Task<GetRancherPlanResult> InvokeAsync(GetRancherPlanArgs args, InvokeOptions? opts = null)
    public static Output<GetRancherPlanResult> Invoke(GetRancherPlanInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRancherPlanResult> getRancherPlan(GetRancherPlanArgs args, InvokeOptions options)
public static Output<GetRancherPlanResult> getRancherPlan(GetRancherPlanArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:CloudProject/getRancherPlan:getRancherPlan
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectId This property is required. string
Project ID
ProjectId This property is required. string
Project ID
projectId This property is required. String
Project ID
projectId This property is required. string
Project ID
project_id This property is required. str
Project ID
projectId This property is required. String
Project ID

getRancherPlan Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Plans List<GetRancherPlanPlan>
ProjectId string
Project ID
Id string
The provider-assigned unique ID for this managed resource.
Plans []GetRancherPlanPlan
ProjectId string
Project ID
id String
The provider-assigned unique ID for this managed resource.
plans List<GetRancherPlanPlan>
projectId String
Project ID
id string
The provider-assigned unique ID for this managed resource.
plans GetRancherPlanPlan[]
projectId string
Project ID
id str
The provider-assigned unique ID for this managed resource.
plans Sequence[cloudproject.GetRancherPlanPlan]
project_id str
Project ID
id String
The provider-assigned unique ID for this managed resource.
plans List<Property Map>
projectId String
Project ID

Supporting Types

GetRancherPlanPlan

Cause This property is required. string
Cause for an unavailability
Message This property is required. string
Human-readable description of the unavailability cause
Name This property is required. string
Name of the plan
Status This property is required. string
Status of the plan
Cause This property is required. string
Cause for an unavailability
Message This property is required. string
Human-readable description of the unavailability cause
Name This property is required. string
Name of the plan
Status This property is required. string
Status of the plan
cause This property is required. String
Cause for an unavailability
message This property is required. String
Human-readable description of the unavailability cause
name This property is required. String
Name of the plan
status This property is required. String
Status of the plan
cause This property is required. string
Cause for an unavailability
message This property is required. string
Human-readable description of the unavailability cause
name This property is required. string
Name of the plan
status This property is required. string
Status of the plan
cause This property is required. str
Cause for an unavailability
message This property is required. str
Human-readable description of the unavailability cause
name This property is required. str
Name of the plan
status This property is required. str
Status of the plan
cause This property is required. String
Cause for an unavailability
message This property is required. String
Human-readable description of the unavailability cause
name This property is required. String
Name of the plan
status This property is required. String
Status of the plan

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud