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

ovh.Vps.getVpss

Explore with Pulumi AI

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

Use this data source to get the list of VPS associated with your OVH Account.

Example Usage

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

const servers = ovh.Vps.getVpss({});
Copy
import pulumi
import pulumi_ovh as ovh

servers = ovh.Vps.get_vpss()
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vps.GetVpss(ctx, map[string]interface{}{}, 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 servers = Ovh.Vps.GetVpss.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Vps.VpsFunctions;
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 servers = VpsFunctions.getVpss(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);

    }
}
Copy
variables:
  servers:
    fn::invoke:
      function: ovh:Vps:getVpss
      arguments: {}
Copy

Using getVpss

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 getVpss(opts?: InvokeOptions): Promise<GetVpssResult>
function getVpssOutput(opts?: InvokeOptions): Output<GetVpssResult>
Copy
def get_vpss(opts: Optional[InvokeOptions] = None) -> GetVpssResult
def get_vpss_output(opts: Optional[InvokeOptions] = None) -> Output[GetVpssResult]
Copy
func GetVpss(ctx *Context, opts ...InvokeOption) (*GetVpssResult, error)
func GetVpssOutput(ctx *Context, opts ...InvokeOption) GetVpssResultOutput
Copy

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

public static class GetVpss 
{
    public static Task<GetVpssResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetVpssResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpssResult> getVpss(InvokeOptions options)
public static Output<GetVpssResult> getVpss(InvokeOptions options)
Copy
fn::invoke:
  function: ovh:Vps/getVpss:getVpss
  arguments:
    # arguments dictionary
Copy

getVpss Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Results List<string>
The list of VPS IDs associated with your OVH Account.
Id string
The provider-assigned unique ID for this managed resource.
Results []string
The list of VPS IDs associated with your OVH Account.
id String
The provider-assigned unique ID for this managed resource.
results List<String>
The list of VPS IDs associated with your OVH Account.
id string
The provider-assigned unique ID for this managed resource.
results string[]
The list of VPS IDs associated with your OVH Account.
id str
The provider-assigned unique ID for this managed resource.
results Sequence[str]
The list of VPS IDs associated with your OVH Account.
id String
The provider-assigned unique ID for this managed resource.
results List<String>
The list of VPS IDs associated with your OVH Account.

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