Exoscale

v0.42.0 published on Sunday, Nov 27, 2022 by Pulumiverse

getCompute

!> WARNING: This data source is DEPRECATED and will be removed in the next major version. Please use exoscale.ComputeInstance instead.

Using getCompute

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 getCompute(args: GetComputeArgs, opts?: InvokeOptions): Promise<GetComputeResult>
function getComputeOutput(args: GetComputeOutputArgs, opts?: InvokeOptions): Output<GetComputeResult>
def get_compute(hostname: Optional[str] = None,
                id: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetComputeResult
def get_compute_output(hostname: Optional[pulumi.Input[str]] = None,
                id: Optional[pulumi.Input[str]] = None,
                tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetComputeResult]
func LookupCompute(ctx *Context, args *LookupComputeArgs, opts ...InvokeOption) (*LookupComputeResult, error)
func LookupComputeOutput(ctx *Context, args *LookupComputeOutputArgs, opts ...InvokeOption) LookupComputeResultOutput

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

public static class GetCompute 
{
    public static Task<GetComputeResult> InvokeAsync(GetComputeArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeResult> Invoke(GetComputeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeResult> getCompute(GetComputeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: exoscale:index/getCompute:getCompute
  arguments:
    # arguments dictionary

The following arguments are supported:

Hostname string

The instance hostname to match.

Id string

The compute instance ID to match.

Tags Dictionary<string, string>

The instance tags to match (map of key/value).

Hostname string

The instance hostname to match.

Id string

The compute instance ID to match.

Tags map[string]string

The instance tags to match (map of key/value).

hostname String

The instance hostname to match.

id String

The compute instance ID to match.

tags Map<String,String>

The instance tags to match (map of key/value).

hostname string

The instance hostname to match.

id string

The compute instance ID to match.

tags {[key: string]: string}

The instance tags to match (map of key/value).

hostname str

The instance hostname to match.

id str

The compute instance ID to match.

tags Mapping[str, str]

The instance tags to match (map of key/value).

hostname String

The instance hostname to match.

id String

The compute instance ID to match.

tags Map<String>

The instance tags to match (map of key/value).

getCompute Result

The following output properties are available:

Cpu int

The compute instance number of CPUs.

Created string

The instance creation date.

DiskSize int

The instance disk size (GiB).

Ip6Address string

The instance (main network interface) IPv6 address (if enabled).

IpAddress string

The instance (main network interface) IPv4 address.

Memory int

The instance allocated memory.

PrivateNetworkIpAddresses List<string>

List of compute private IPv4 addresses (in managed private networks only).

Size string

The instance size.

State string

The current instance state.

Template string

The instance template.

Zone string

Exoscale Zone name.

Hostname string
Id string
Tags Dictionary<string, string>
Cpu int

The compute instance number of CPUs.

Created string

The instance creation date.

DiskSize int

The instance disk size (GiB).

Ip6Address string

The instance (main network interface) IPv6 address (if enabled).

IpAddress string

The instance (main network interface) IPv4 address.

Memory int

The instance allocated memory.

PrivateNetworkIpAddresses []string

List of compute private IPv4 addresses (in managed private networks only).

Size string

The instance size.

State string

The current instance state.

Template string

The instance template.

Zone string

Exoscale Zone name.

Hostname string
Id string
Tags map[string]string
cpu Integer

The compute instance number of CPUs.

created String

The instance creation date.

diskSize Integer

The instance disk size (GiB).

ip6Address String

The instance (main network interface) IPv6 address (if enabled).

ipAddress String

The instance (main network interface) IPv4 address.

memory Integer

The instance allocated memory.

privateNetworkIpAddresses List<String>

List of compute private IPv4 addresses (in managed private networks only).

size String

The instance size.

state String

The current instance state.

template String

The instance template.

zone String

Exoscale Zone name.

hostname String
id String
tags Map<String,String>
cpu number

The compute instance number of CPUs.

created string

The instance creation date.

diskSize number

The instance disk size (GiB).

ip6Address string

The instance (main network interface) IPv6 address (if enabled).

ipAddress string

The instance (main network interface) IPv4 address.

memory number

The instance allocated memory.

privateNetworkIpAddresses string[]

List of compute private IPv4 addresses (in managed private networks only).

size string

The instance size.

state string

The current instance state.

template string

The instance template.

zone string

Exoscale Zone name.

hostname string
id string
tags {[key: string]: string}
cpu int

The compute instance number of CPUs.

created str

The instance creation date.

disk_size int

The instance disk size (GiB).

ip6_address str

The instance (main network interface) IPv6 address (if enabled).

ip_address str

The instance (main network interface) IPv4 address.

memory int

The instance allocated memory.

private_network_ip_addresses Sequence[str]

List of compute private IPv4 addresses (in managed private networks only).

size str

The instance size.

state str

The current instance state.

template str

The instance template.

zone str

Exoscale Zone name.

hostname str
id str
tags Mapping[str, str]
cpu Number

The compute instance number of CPUs.

created String

The instance creation date.

diskSize Number

The instance disk size (GiB).

ip6Address String

The instance (main network interface) IPv6 address (if enabled).

ipAddress String

The instance (main network interface) IPv4 address.

memory Number

The instance allocated memory.

privateNetworkIpAddresses List<String>

List of compute private IPv4 addresses (in managed private networks only).

size String

The instance size.

state String

The current instance state.

template String

The instance template.

zone String

Exoscale Zone name.

hostname String
id String
tags Map<String>

Package Details

Repository
https://github.com/pulumiverse/pulumi-exoscale
License
Apache-2.0
Notes

This Pulumi package is based on the exoscale Terraform Provider.