ovh.Me.IpxeScript
Creates an IPXE Script.
Example Usage
using System.Collections.Generic;
using System.IO;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;
return await Deployment.RunAsync(() =>
{
var script = new Ovh.Me.IpxeScript("script", new()
{
Script = File.ReadAllText($"{path.Module}/boot.ipxe"),
});
});
package main
import (
"fmt"
"os"
"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/Me"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Me.NewIpxeScript(ctx, "script", &Me.IpxeScriptArgs{
Script: readFileOrPanic(fmt.Sprintf("%v/boot.ipxe", path.Module)),
})
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.Me.IpxeScript;
import com.pulumi.ovh.Me.IpxeScriptArgs;
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) {
var script = new IpxeScript("script", IpxeScriptArgs.builder()
.script(Files.readString(Paths.get(String.format("%s/boot.ipxe", path.module()))))
.build());
}
}
import pulumi
import lbrlabs_pulumi_ovh as ovh
script = ovh.me.IpxeScript("script", script=(lambda path: open(path).read())(f"{path['module']}/boot.ipxe"))
import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as ovh from "@lbrlabs/pulumi-ovh";
const script = new ovh.me.IpxeScript("script", {script: fs.readFileSync(`${path.module}/boot.ipxe`)});
resources:
script:
type: ovh:Me:IpxeScript
properties:
script:
fn::readFile: ${path.module}/boot.ipxe
Create IpxeScript Resource
new IpxeScript(name: string, args: IpxeScriptArgs, opts?: CustomResourceOptions);
@overload
def IpxeScript(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
script: Optional[str] = None)
@overload
def IpxeScript(resource_name: str,
args: IpxeScriptArgs,
opts: Optional[ResourceOptions] = None)
func NewIpxeScript(ctx *Context, name string, args IpxeScriptArgs, opts ...ResourceOption) (*IpxeScript, error)
public IpxeScript(string name, IpxeScriptArgs args, CustomResourceOptions? opts = null)
public IpxeScript(String name, IpxeScriptArgs args)
public IpxeScript(String name, IpxeScriptArgs args, CustomResourceOptions options)
type: ovh:Me:IpxeScript
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpxeScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IpxeScriptArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IpxeScriptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpxeScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpxeScriptArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IpxeScript Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IpxeScript resource accepts the following input properties:
- Script string
The content of the script.
- Description string
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- Name string
The name of the IPXE Script.
- Script string
The content of the script.
- Description string
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- Name string
The name of the IPXE Script.
- script String
The content of the script.
- description String
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name String
The name of the IPXE Script.
- script string
The content of the script.
- description string
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name string
The name of the IPXE Script.
- script str
The content of the script.
- description str
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name str
The name of the IPXE Script.
- script String
The content of the script.
- description String
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name String
The name of the IPXE Script.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpxeScript resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing IpxeScript Resource
Get an existing IpxeScript resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IpxeScriptState, opts?: CustomResourceOptions): IpxeScript
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
script: Optional[str] = None) -> IpxeScript
func GetIpxeScript(ctx *Context, name string, id IDInput, state *IpxeScriptState, opts ...ResourceOption) (*IpxeScript, error)
public static IpxeScript Get(string name, Input<string> id, IpxeScriptState? state, CustomResourceOptions? opts = null)
public static IpxeScript get(String name, Output<String> id, IpxeScriptState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- Name string
The name of the IPXE Script.
- Script string
The content of the script.
- Description string
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- Name string
The name of the IPXE Script.
- Script string
The content of the script.
- description String
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name String
The name of the IPXE Script.
- script String
The content of the script.
- description string
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name string
The name of the IPXE Script.
- script string
The content of the script.
- description str
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name str
The name of the IPXE Script.
- script str
The content of the script.
- description String
For documentation purpose only. This attribute is not passed to the OVHcloud API as it cannot be retrieved back. Instead a fake description ('$name auto description') is passed at creation time.
- name String
The name of the IPXE Script.
- script String
The content of the script.
Package Details
- Repository
- ovh lbrlabs/pulumi-ovh
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
ovh
Terraform Provider.