Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

DedicatedServerInterface

Attach a Dedicated Server Network Interface to a VRack.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var vdsi = new Ovh.Vrack.DedicatedServerInterface("vdsi", new()
    {
        InterfaceId = "67890",
        ServiceName = "12345",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Vrack.NewDedicatedServerInterface(ctx, "vdsi", &Vrack.DedicatedServerInterfaceArgs{
			InterfaceId: pulumi.String("67890"),
			ServiceName: pulumi.String("12345"),
		})
		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.Vrack.DedicatedServerInterface;
import com.pulumi.ovh.Vrack.DedicatedServerInterfaceArgs;
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 vdsi = new DedicatedServerInterface("vdsi", DedicatedServerInterfaceArgs.builder()        
            .interfaceId("67890")
            .serviceName("12345")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

vdsi = ovh.vrack.DedicatedServerInterface("vdsi",
    interface_id="67890",
    service_name="12345")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const vdsi = new ovh.Vrack.DedicatedServerInterface("vdsi", {
    interfaceId: "67890",
    serviceName: "12345",
});
resources:
  vdsi:
    type: ovh:Vrack:DedicatedServerInterface
    properties:
      interfaceId: '67890'
      serviceName: '12345'

Create DedicatedServerInterface Resource

new DedicatedServerInterface(name: string, args: DedicatedServerInterfaceArgs, opts?: CustomResourceOptions);
@overload
def DedicatedServerInterface(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             interface_id: Optional[str] = None,
                             service_name: Optional[str] = None)
@overload
def DedicatedServerInterface(resource_name: str,
                             args: DedicatedServerInterfaceArgs,
                             opts: Optional[ResourceOptions] = None)
func NewDedicatedServerInterface(ctx *Context, name string, args DedicatedServerInterfaceArgs, opts ...ResourceOption) (*DedicatedServerInterface, error)
public DedicatedServerInterface(string name, DedicatedServerInterfaceArgs args, CustomResourceOptions? opts = null)
public DedicatedServerInterface(String name, DedicatedServerInterfaceArgs args)
public DedicatedServerInterface(String name, DedicatedServerInterfaceArgs args, CustomResourceOptions options)
type: ovh:Vrack:DedicatedServerInterface
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DedicatedServerInterfaceArgs
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 DedicatedServerInterfaceArgs
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 DedicatedServerInterfaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DedicatedServerInterfaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DedicatedServerInterfaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DedicatedServerInterface 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 DedicatedServerInterface resource accepts the following input properties:

InterfaceId string

The id of dedicated server network interface.

ServiceName string

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

InterfaceId string

The id of dedicated server network interface.

ServiceName string

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interfaceId String

The id of dedicated server network interface.

serviceName String

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interfaceId string

The id of dedicated server network interface.

serviceName string

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interface_id str

The id of dedicated server network interface.

service_name str

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interfaceId String

The id of dedicated server network interface.

serviceName String

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the DedicatedServerInterface 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 DedicatedServerInterface Resource

Get an existing DedicatedServerInterface 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?: DedicatedServerInterfaceState, opts?: CustomResourceOptions): DedicatedServerInterface
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        interface_id: Optional[str] = None,
        service_name: Optional[str] = None) -> DedicatedServerInterface
func GetDedicatedServerInterface(ctx *Context, name string, id IDInput, state *DedicatedServerInterfaceState, opts ...ResourceOption) (*DedicatedServerInterface, error)
public static DedicatedServerInterface Get(string name, Input<string> id, DedicatedServerInterfaceState? state, CustomResourceOptions? opts = null)
public static DedicatedServerInterface get(String name, Output<String> id, DedicatedServerInterfaceState 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.
The following state arguments are supported:
InterfaceId string

The id of dedicated server network interface.

ServiceName string

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

InterfaceId string

The id of dedicated server network interface.

ServiceName string

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interfaceId String

The id of dedicated server network interface.

serviceName String

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interfaceId string

The id of dedicated server network interface.

serviceName string

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interface_id str

The id of dedicated server network interface.

service_name str

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

interfaceId String

The id of dedicated server network interface.

serviceName String

The id of the vrack. If omitted, the OVH_VRACK_SERVICE environment variable is used.

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.