Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getDedicatedInstallationTemplates

Use this data source to get the list of installation templates available for dedicated servers.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var templates = Ovh.GetDedicatedInstallationTemplates.Invoke();

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.GetDedicatedInstallationTemplates(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
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 templates = OvhFunctions.getDedicatedInstallationTemplates();

    }
}
import pulumi
import pulumi_ovh as ovh

templates = ovh.get_dedicated_installation_templates()
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const templates = pulumi.output(ovh.getDedicatedInstallationTemplates());
variables:
  templates:
    Fn::Invoke:
      Function: ovh:getDedicatedInstallationTemplates
      Arguments: {}

Using getDedicatedInstallationTemplates

function getDedicatedInstallationTemplates(opts?: InvokeOptions): Promise<GetDedicatedInstallationTemplatesResult>
def get_dedicated_installation_templates(opts: Optional[InvokeOptions] = None) -> GetDedicatedInstallationTemplatesResult
func GetDedicatedInstallationTemplates(ctx *Context, opts ...InvokeOption) (*GetDedicatedInstallationTemplatesResult, error)

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

public static class GetDedicatedInstallationTemplates 
{
    public static Task<GetDedicatedInstallationTemplatesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDedicatedInstallationTemplatesResult> getDedicatedInstallationTemplates(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getDedicatedInstallationTemplates:getDedicatedInstallationTemplates
  Arguments:
    # Arguments dictionary

getDedicatedInstallationTemplates Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Results List<string>

The list of installation templates IDs available for dedicated servers.

Id string

The provider-assigned unique ID for this managed resource.

Results []string

The list of installation templates IDs available for dedicated servers.

id String

The provider-assigned unique ID for this managed resource.

results List<String>

The list of installation templates IDs available for dedicated servers.

id string

The provider-assigned unique ID for this managed resource.

results string[]

The list of installation templates IDs available for dedicated servers.

id str

The provider-assigned unique ID for this managed resource.

results Sequence[str]

The list of installation templates IDs available for dedicated servers.

id String

The provider-assigned unique ID for this managed resource.

results List<String>

The list of installation templates IDs available for dedicated servers.

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.