vps

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetVpsArgs

type GetVpsArgs struct {
	// The serviceName of your dedicated server.
	ServiceName string `pulumi:"serviceName"`
}

A collection of arguments for invoking getVps.

type GetVpsOutputArgs

type GetVpsOutputArgs struct {
	// The serviceName of your dedicated server.
	ServiceName pulumi.StringInput `pulumi:"serviceName"`
}

A collection of arguments for invoking getVps.

func (GetVpsOutputArgs) ElementType

func (GetVpsOutputArgs) ElementType() reflect.Type

type GetVpsResult

type GetVpsResult struct {
	// The OVHcloud cluster the vps is in
	Cluster string `pulumi:"cluster"`
	// The datacenter in which the vps is located
	// * `datacenter.longname` - The fullname of the datacenter (ex: "Strasbourg SBG1")
	// * `datacenter.name` - The short name of the datacenter (ex: "sbg1)
	Datacenter map[string]string `pulumi:"datacenter"`
	// The displayed name in the OVHcloud web admin
	Displayname string `pulumi:"displayname"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of IPs addresses attached to the vps
	Ips []string `pulumi:"ips"`
	// The keymap for the ip kvm, valid values "", "fr", "us"
	Keymap string `pulumi:"keymap"`
	// The amount of memory in MB of the vps.
	Memory int `pulumi:"memory"`
	// A dict describing the type of vps.
	// * `model.name` - The model name (ex: model1)
	// * `model.offer` - The model human description (ex: "VPS 2016 SSD 1")
	// * `model.version` - The model version (ex: "2017v2")
	Model map[string]string `pulumi:"model"`
	Name  string            `pulumi:"name"`
	// The source of the boot kernel
	Netbootmode string `pulumi:"netbootmode"`
	// The type of offer (ssd, cloud, classic)
	Offertype   string `pulumi:"offertype"`
	ServiceName string `pulumi:"serviceName"`
	// A boolean to indicate if OVHcloud SLA monitoring is active.
	Slamonitoring bool `pulumi:"slamonitoring"`
	// The state of the vps
	State string `pulumi:"state"`
	// The type of server
	Type string `pulumi:"type"`
	// The URN of the vps
	Urn string `pulumi:"urn"`
	// The number of vcore of the vps
	Vcore int `pulumi:"vcore"`
	// The OVHcloud zone where the vps is
	Zone string `pulumi:"zone"`
}

A collection of values returned by getVps.

func GetVps

func GetVps(ctx *pulumi.Context, args *GetVpsArgs, opts ...pulumi.InvokeOption) (*GetVpsResult, error)

Use this data source to retrieve information about a vps associated with your OVHcloud Account.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/Vps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Vps.GetVps(ctx, &vps.GetVpsArgs{
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetVpsResultOutput

type GetVpsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVps.

func GetVpsOutput

func GetVpsOutput(ctx *pulumi.Context, args GetVpsOutputArgs, opts ...pulumi.InvokeOption) GetVpsResultOutput

func (GetVpsResultOutput) Cluster

The OVHcloud cluster the vps is in

func (GetVpsResultOutput) Datacenter

func (o GetVpsResultOutput) Datacenter() pulumi.StringMapOutput

The datacenter in which the vps is located * `datacenter.longname` - The fullname of the datacenter (ex: "Strasbourg SBG1") * `datacenter.name` - The short name of the datacenter (ex: "sbg1)

func (GetVpsResultOutput) Displayname

func (o GetVpsResultOutput) Displayname() pulumi.StringOutput

The displayed name in the OVHcloud web admin

func (GetVpsResultOutput) ElementType

func (GetVpsResultOutput) ElementType() reflect.Type

func (GetVpsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetVpsResultOutput) Ips

The list of IPs addresses attached to the vps

func (GetVpsResultOutput) Keymap

The keymap for the ip kvm, valid values "", "fr", "us"

func (GetVpsResultOutput) Memory

func (o GetVpsResultOutput) Memory() pulumi.IntOutput

The amount of memory in MB of the vps.

func (GetVpsResultOutput) Model

A dict describing the type of vps. * `model.name` - The model name (ex: model1) * `model.offer` - The model human description (ex: "VPS 2016 SSD 1") * `model.version` - The model version (ex: "2017v2")

func (GetVpsResultOutput) Name

func (GetVpsResultOutput) Netbootmode

func (o GetVpsResultOutput) Netbootmode() pulumi.StringOutput

The source of the boot kernel

func (GetVpsResultOutput) Offertype

func (o GetVpsResultOutput) Offertype() pulumi.StringOutput

The type of offer (ssd, cloud, classic)

func (GetVpsResultOutput) ServiceName

func (o GetVpsResultOutput) ServiceName() pulumi.StringOutput

func (GetVpsResultOutput) Slamonitoring

func (o GetVpsResultOutput) Slamonitoring() pulumi.BoolOutput

A boolean to indicate if OVHcloud SLA monitoring is active.

func (GetVpsResultOutput) State

The state of the vps

func (GetVpsResultOutput) ToGetVpsResultOutput

func (o GetVpsResultOutput) ToGetVpsResultOutput() GetVpsResultOutput

func (GetVpsResultOutput) ToGetVpsResultOutputWithContext

func (o GetVpsResultOutput) ToGetVpsResultOutputWithContext(ctx context.Context) GetVpsResultOutput

func (GetVpsResultOutput) Type

The type of server

func (GetVpsResultOutput) Urn added in v0.32.0

The URN of the vps

func (GetVpsResultOutput) Vcore

The number of vcore of the vps

func (GetVpsResultOutput) Zone

The OVHcloud zone where the vps is

type GetVpssResult

type GetVpssResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of VPS IDs associated with your OVH Account.
	Results []string `pulumi:"results"`
}

A collection of values returned by getVpss.

func GetVpss

func GetVpss(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetVpssResult, error)

Use this data source to get the list of VPS associated with your OVH Account.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/Vps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Vps.GetVpss(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL