OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.CloudProject.getRancherPlan
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_ovh as ovh
plans = ovh.CloudProject.get_rancher_plan(project_id="XXXXXX")
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
})
}
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",
});
});
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());
}
}
variables:
plans:
fn::invoke:
function: ovh:CloudProject:getRancherPlan
arguments:
projectId: XXXXXX
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>
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]
func GetRancherPlan(ctx *Context, args *GetRancherPlanArgs, opts ...InvokeOption) (*GetRancherPlanResult, error)
func GetRancherPlanOutput(ctx *Context, args *GetRancherPlanOutputArgs, opts ...InvokeOption) GetRancherPlanResultOutput
> 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)
}
public static CompletableFuture<GetRancherPlanResult> getRancherPlan(GetRancherPlanArgs args, InvokeOptions options)
public static Output<GetRancherPlanResult> getRancherPlan(GetRancherPlanArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getRancherPlan:getRancherPlan
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string - Project ID
- Project
Id string - Project ID
- project
Id String - Project ID
- project
Id string - Project ID
- project_
id str - Project ID
- project
Id String - Project ID
getRancherPlan Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Plans
List<Get
Rancher Plan Plan> - Project
Id string - Project ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Plans
[]Get
Rancher Plan Plan - Project
Id string - Project ID
- id String
- The provider-assigned unique ID for this managed resource.
- plans
List<Get
Rancher Plan Plan> - project
Id String - Project ID
- id string
- The provider-assigned unique ID for this managed resource.
- plans
Get
Rancher Plan Plan[] - project
Id string - Project ID
- id str
- The provider-assigned unique ID for this managed resource.
- plans
Sequence[cloudproject.
Get Rancher Plan Plan] - project_
id str - Project ID
- id String
- The provider-assigned unique ID for this managed resource.
- plans List<Property Map>
- project
Id String - Project ID
Supporting Types
GetRancherPlanPlan
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.