OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud
ovh.CloudProject.getRancherVersion
Start a Neo task
Explain and create an ovh.CloudProject.getRancherVersion resource
Use this datasource to retrieve information about the Managed Rancher available versions in the given public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const versions = ovh.CloudProject.getRancherVersion({
projectId: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
versions = ovh.CloudProject.get_rancher_version(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.GetRancherVersion(ctx, &cloudproject.GetRancherVersionArgs{
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 versions = Ovh.CloudProject.GetRancherVersion.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.GetRancherVersionArgs;
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 versions = CloudProjectFunctions.getRancherVersion(GetRancherVersionArgs.builder()
.projectId("XXXXXX")
.build());
}
}
variables:
versions:
fn::invoke:
function: ovh:CloudProject:getRancherVersion
arguments:
projectId: XXXXXX
Using getRancherVersion
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 getRancherVersion(args: GetRancherVersionArgs, opts?: InvokeOptions): Promise<GetRancherVersionResult>
function getRancherVersionOutput(args: GetRancherVersionOutputArgs, opts?: InvokeOptions): Output<GetRancherVersionResult>def get_rancher_version(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRancherVersionResult
def get_rancher_version_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRancherVersionResult]func GetRancherVersion(ctx *Context, args *GetRancherVersionArgs, opts ...InvokeOption) (*GetRancherVersionResult, error)
func GetRancherVersionOutput(ctx *Context, args *GetRancherVersionOutputArgs, opts ...InvokeOption) GetRancherVersionResultOutput> Note: This function is named GetRancherVersion in the Go SDK.
public static class GetRancherVersion
{
public static Task<GetRancherVersionResult> InvokeAsync(GetRancherVersionArgs args, InvokeOptions? opts = null)
public static Output<GetRancherVersionResult> Invoke(GetRancherVersionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRancherVersionResult> getRancherVersion(GetRancherVersionArgs args, InvokeOptions options)
public static Output<GetRancherVersionResult> getRancherVersion(GetRancherVersionArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getRancherVersion:getRancherVersion
arguments:
# arguments dictionaryThe 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
getRancherVersion Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Project ID
- Versions
List<Get
Rancher Version Version>
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Project ID
- Versions
[]Get
Rancher Version Version
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Project ID
- versions
List<Get
Rancher Version Version>
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Project ID
- versions
Get
Rancher Version Version[]
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Project ID
- versions
Sequence[Get
Rancher Version Version]
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Project ID
- versions List<Property Map>
Supporting Types
GetRancherVersionVersion
- Cause string
- Cause for an unavailability
- Changelog
Url string - Changelog URL of the version
- Message string
- Human-readable description of the unavailability cause
- Name string
- Name of the version
- Status string
- Status of the version
- Cause string
- Cause for an unavailability
- Changelog
Url string - Changelog URL of the version
- Message string
- Human-readable description of the unavailability cause
- Name string
- Name of the version
- Status string
- Status of the version
- cause String
- Cause for an unavailability
- changelog
Url String - Changelog URL of the version
- message String
- Human-readable description of the unavailability cause
- name String
- Name of the version
- status String
- Status of the version
- cause string
- Cause for an unavailability
- changelog
Url string - Changelog URL of the version
- message string
- Human-readable description of the unavailability cause
- name string
- Name of the version
- status string
- Status of the version
- cause str
- Cause for an unavailability
- changelog_
url str - Changelog URL of the version
- message str
- Human-readable description of the unavailability cause
- name str
- Name of the version
- status str
- Status of the version
- cause String
- Cause for an unavailability
- changelog
Url String - Changelog URL of the version
- message String
- Human-readable description of the unavailability cause
- name String
- Name of the version
- status String
- Status of the version
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
