Ovh

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

getMeIpxeScript

Use this data source to retrieve information about an IPXE Script.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var script = Ovh.GetMeIpxeScript.Invoke(new()
    {
        Name = "myscript",
    });

});
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.LookupMeIpxeScript(ctx, &GetMeIpxeScriptArgs{
			Name: "myscript",
		}, 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 com.pulumi.ovh.inputs.GetMeIpxeScriptArgs;
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 script = OvhFunctions.getMeIpxeScript(GetMeIpxeScriptArgs.builder()
            .name("myscript")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

script = ovh.get_me_ipxe_script(name="myscript")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const script = pulumi.output(ovh.getMeIpxeScript({
    name: "myscript",
}));
variables:
  script:
    Fn::Invoke:
      Function: ovh:getMeIpxeScript
      Arguments:
        name: myscript

Using getMeIpxeScript

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 getMeIpxeScript(args: GetMeIpxeScriptArgs, opts?: InvokeOptions): Promise<GetMeIpxeScriptResult>
function getMeIpxeScriptOutput(args: GetMeIpxeScriptOutputArgs, opts?: InvokeOptions): Output<GetMeIpxeScriptResult>
def get_me_ipxe_script(name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetMeIpxeScriptResult
def get_me_ipxe_script_output(name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetMeIpxeScriptResult]
func LookupMeIpxeScript(ctx *Context, args *LookupMeIpxeScriptArgs, opts ...InvokeOption) (*LookupMeIpxeScriptResult, error)
func LookupMeIpxeScriptOutput(ctx *Context, args *LookupMeIpxeScriptOutputArgs, opts ...InvokeOption) LookupMeIpxeScriptResultOutput

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

public static class GetMeIpxeScript 
{
    public static Task<GetMeIpxeScriptResult> InvokeAsync(GetMeIpxeScriptArgs args, InvokeOptions? opts = null)
    public static Output<GetMeIpxeScriptResult> Invoke(GetMeIpxeScriptInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeIpxeScriptResult> getMeIpxeScript(GetMeIpxeScriptArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getMeIpxeScript:getMeIpxeScript
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the IPXE Script.

Name string

The name of the IPXE Script.

name String

The name of the IPXE Script.

name string

The name of the IPXE Script.

name str

The name of the IPXE Script.

name String

The name of the IPXE Script.

getMeIpxeScript Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string

See Argument Reference above.

Script string

The content of the script.

Id string

The provider-assigned unique ID for this managed resource.

Name string

See Argument Reference above.

Script string

The content of the script.

id String

The provider-assigned unique ID for this managed resource.

name String

See Argument Reference above.

script String

The content of the script.

id string

The provider-assigned unique ID for this managed resource.

name string

See Argument Reference above.

script string

The content of the script.

id str

The provider-assigned unique ID for this managed resource.

name str

See Argument Reference above.

script str

The content of the script.

id String

The provider-assigned unique ID for this managed resource.

name String

See Argument Reference above.

script String

The content of the script.

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.