Documentation ¶
Index ¶
- type GetVpsArgs
- type GetVpsOutputArgs
- type GetVpsResult
- type GetVpsResultOutput
- func (o GetVpsResultOutput) Cluster() pulumi.StringOutput
- func (o GetVpsResultOutput) Datacenter() pulumi.StringMapOutput
- func (o GetVpsResultOutput) Displayname() pulumi.StringOutput
- func (GetVpsResultOutput) ElementType() reflect.Type
- func (o GetVpsResultOutput) Id() pulumi.StringOutput
- func (o GetVpsResultOutput) Ips() pulumi.StringArrayOutput
- func (o GetVpsResultOutput) Keymap() pulumi.StringOutput
- func (o GetVpsResultOutput) Memory() pulumi.IntOutput
- func (o GetVpsResultOutput) Model() pulumi.StringMapOutput
- func (o GetVpsResultOutput) Name() pulumi.StringOutput
- func (o GetVpsResultOutput) Netbootmode() pulumi.StringOutput
- func (o GetVpsResultOutput) Offertype() pulumi.StringOutput
- func (o GetVpsResultOutput) ServiceName() pulumi.StringOutput
- func (o GetVpsResultOutput) Slamonitoring() pulumi.BoolOutput
- func (o GetVpsResultOutput) State() pulumi.StringOutput
- func (o GetVpsResultOutput) ToGetVpsResultOutput() GetVpsResultOutput
- func (o GetVpsResultOutput) ToGetVpsResultOutputWithContext(ctx context.Context) GetVpsResultOutput
- func (o GetVpsResultOutput) Type() pulumi.StringOutput
- func (o GetVpsResultOutput) Urn() pulumi.StringOutput
- func (o GetVpsResultOutput) Vcore() pulumi.IntOutput
- func (o GetVpsResultOutput) Zone() pulumi.StringOutput
- type GetVpssResult
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 ¶
func (o GetVpsResultOutput) Cluster() pulumi.StringOutput
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 ¶
func (o GetVpsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetVpsResultOutput) Ips ¶
func (o GetVpsResultOutput) Ips() pulumi.StringArrayOutput
The list of IPs addresses attached to the vps
func (GetVpsResultOutput) Keymap ¶
func (o GetVpsResultOutput) Keymap() pulumi.StringOutput
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 ¶
func (o GetVpsResultOutput) Model() pulumi.StringMapOutput
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 (o GetVpsResultOutput) Name() pulumi.StringOutput
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 ¶
func (o GetVpsResultOutput) State() pulumi.StringOutput
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 ¶
func (o GetVpsResultOutput) Type() pulumi.StringOutput
The type of server
func (GetVpsResultOutput) Urn ¶ added in v0.32.0
func (o GetVpsResultOutput) Urn() pulumi.StringOutput
The URN of the vps
func (GetVpsResultOutput) Vcore ¶
func (o GetVpsResultOutput) Vcore() pulumi.IntOutput
The number of vcore of the vps
func (GetVpsResultOutput) Zone ¶
func (o GetVpsResultOutput) Zone() pulumi.StringOutput
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 }) }
```