OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud
ovh.Me.getInstallationTemplates
Explore with Pulumi AI
Use this data source to get the list of custom installation templates available for dedicated servers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const templates = ovh.Me.getInstallationTemplates({});
import pulumi
import pulumi_ovh as ovh
templates = ovh.Me.get_installation_templates()
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Me.GetInstallationTemplates(ctx, nil, 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 templates = Ovh.Me.GetInstallationTemplates.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Me.MeFunctions;
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 = MeFunctions.getInstallationTemplates();
}
}
variables:
templates:
fn::invoke:
Function: ovh:Me:getInstallationTemplates
Arguments: {}
Using getInstallationTemplates
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 getInstallationTemplates(opts?: InvokeOptions): Promise<GetInstallationTemplatesResult>
function getInstallationTemplatesOutput(opts?: InvokeOptions): Output<GetInstallationTemplatesResult>
def get_installation_templates(opts: Optional[InvokeOptions] = None) -> GetInstallationTemplatesResult
def get_installation_templates_output(opts: Optional[InvokeOptions] = None) -> Output[GetInstallationTemplatesResult]
func GetInstallationTemplates(ctx *Context, opts ...InvokeOption) (*GetInstallationTemplatesResult, error)
func GetInstallationTemplatesOutput(ctx *Context, opts ...InvokeOption) GetInstallationTemplatesResultOutput
> Note: This function is named GetInstallationTemplates
in the Go SDK.
public static class GetInstallationTemplates
{
public static Task<GetInstallationTemplatesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetInstallationTemplatesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstallationTemplatesResult> getInstallationTemplates(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:Me/getInstallationTemplates:getInstallationTemplates
arguments:
# arguments dictionary
getInstallationTemplates Result
The following output properties are available:
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.