exoscale logo
Exoscale v0.48.0, May 19 23

exoscale.getComputeInstance

Explore with Pulumi AI

Using getComputeInstance

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 getComputeInstance(args: GetComputeInstanceArgs, opts?: InvokeOptions): Promise<GetComputeInstanceResult>
function getComputeInstanceOutput(args: GetComputeInstanceOutputArgs, opts?: InvokeOptions): Output<GetComputeInstanceResult>
def get_compute_instance(anti_affinity_group_ids: Optional[Sequence[str]] = None,
                         id: Optional[str] = None,
                         labels: Optional[Mapping[str, str]] = None,
                         name: Optional[str] = None,
                         zone: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetComputeInstanceResult
def get_compute_instance_output(anti_affinity_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         zone: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetComputeInstanceResult]
func LookupComputeInstance(ctx *Context, args *LookupComputeInstanceArgs, opts ...InvokeOption) (*LookupComputeInstanceResult, error)
func LookupComputeInstanceOutput(ctx *Context, args *LookupComputeInstanceOutputArgs, opts ...InvokeOption) LookupComputeInstanceResultOutput

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

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

The following arguments are supported:

Zone string

The Exoscale Zone name.

AntiAffinityGroupIds List<string>

The list of attached exoscaleantiaffinity_group (IDs).

Id string

The compute instance ID to match (conflicts with name).

Labels Dictionary<string, string>

A map of key/value labels.

Name string

The instance name to match (conflicts with id).

Zone string

The Exoscale Zone name.

AntiAffinityGroupIds []string

The list of attached exoscaleantiaffinity_group (IDs).

Id string

The compute instance ID to match (conflicts with name).

Labels map[string]string

A map of key/value labels.

Name string

The instance name to match (conflicts with id).

zone String

The Exoscale Zone name.

antiAffinityGroupIds List<String>

The list of attached exoscaleantiaffinity_group (IDs).

id String

The compute instance ID to match (conflicts with name).

labels Map<String,String>

A map of key/value labels.

name String

The instance name to match (conflicts with id).

zone string

The Exoscale Zone name.

antiAffinityGroupIds string[]

The list of attached exoscaleantiaffinity_group (IDs).

id string

The compute instance ID to match (conflicts with name).

labels {[key: string]: string}

A map of key/value labels.

name string

The instance name to match (conflicts with id).

zone str

The Exoscale Zone name.

anti_affinity_group_ids Sequence[str]

The list of attached exoscaleantiaffinity_group (IDs).

id str

The compute instance ID to match (conflicts with name).

labels Mapping[str, str]

A map of key/value labels.

name str

The instance name to match (conflicts with id).

zone String

The Exoscale Zone name.

antiAffinityGroupIds List<String>

The list of attached exoscaleantiaffinity_group (IDs).

id String

The compute instance ID to match (conflicts with name).

labels Map<String>

A map of key/value labels.

name String

The instance name to match (conflicts with id).

getComputeInstance Result

The following output properties are available:

CreatedAt string

The compute instance creation date.

DeployTargetId string

A deploy target ID.

DiskSize int

The instance disk size (GiB).

ElasticIpIds List<string>

The list of attached exoscaleelasticip (IDs).

Ipv6 bool

Whether IPv6 is enabled on the instance.

Ipv6Address string

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

ManagerId string

The instance manager ID, if any.

ManagerType string

The instance manager type (instance pool, SKS node pool, etc.), if any.

PrivateNetworkIds List<string>

The list of attached exoscaleprivatenetwork (IDs).

PublicIpAddress string

The instance (main network interface) IPv4 address.

ReverseDns string

Domain name for reverse DNS record.

SecurityGroupIds List<string>

The list of attached exoscalesecuritygroup (IDs).

SshKey string

The exoscalesshkey (name) authorized on the instance.

State string

The instance state.

TemplateId string

The instance exoscalecomputetemplate ID.

Type string

The instance type.

UserData string

The instance cloud-init configuration.

Zone string

The Exoscale Zone name.

AntiAffinityGroupIds List<string>

The list of attached exoscaleantiaffinity_group (IDs).

Id string

The compute instance ID to match (conflicts with name).

Labels Dictionary<string, string>

A map of key/value labels.

Name string

The instance name to match (conflicts with id).

CreatedAt string

The compute instance creation date.

DeployTargetId string

A deploy target ID.

DiskSize int

The instance disk size (GiB).

ElasticIpIds []string

The list of attached exoscaleelasticip (IDs).

Ipv6 bool

Whether IPv6 is enabled on the instance.

Ipv6Address string

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

ManagerId string

The instance manager ID, if any.

ManagerType string

The instance manager type (instance pool, SKS node pool, etc.), if any.

PrivateNetworkIds []string

The list of attached exoscaleprivatenetwork (IDs).

PublicIpAddress string

The instance (main network interface) IPv4 address.

ReverseDns string

Domain name for reverse DNS record.

SecurityGroupIds []string

The list of attached exoscalesecuritygroup (IDs).

SshKey string

The exoscalesshkey (name) authorized on the instance.

State string

The instance state.

TemplateId string

The instance exoscalecomputetemplate ID.

Type string

The instance type.

UserData string

The instance cloud-init configuration.

Zone string

The Exoscale Zone name.

AntiAffinityGroupIds []string

The list of attached exoscaleantiaffinity_group (IDs).

Id string

The compute instance ID to match (conflicts with name).

Labels map[string]string

A map of key/value labels.

Name string

The instance name to match (conflicts with id).

createdAt String

The compute instance creation date.

deployTargetId String

A deploy target ID.

diskSize Integer

The instance disk size (GiB).

elasticIpIds List<String>

The list of attached exoscaleelasticip (IDs).

ipv6 Boolean

Whether IPv6 is enabled on the instance.

ipv6Address String

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

managerId String

The instance manager ID, if any.

managerType String

The instance manager type (instance pool, SKS node pool, etc.), if any.

privateNetworkIds List<String>

The list of attached exoscaleprivatenetwork (IDs).

publicIpAddress String

The instance (main network interface) IPv4 address.

reverseDns String

Domain name for reverse DNS record.

securityGroupIds List<String>

The list of attached exoscalesecuritygroup (IDs).

sshKey String

The exoscalesshkey (name) authorized on the instance.

state String

The instance state.

templateId String

The instance exoscalecomputetemplate ID.

type String

The instance type.

userData String

The instance cloud-init configuration.

zone String

The Exoscale Zone name.

antiAffinityGroupIds List<String>

The list of attached exoscaleantiaffinity_group (IDs).

id String

The compute instance ID to match (conflicts with name).

labels Map<String,String>

A map of key/value labels.

name String

The instance name to match (conflicts with id).

createdAt string

The compute instance creation date.

deployTargetId string

A deploy target ID.

diskSize number

The instance disk size (GiB).

elasticIpIds string[]

The list of attached exoscaleelasticip (IDs).

ipv6 boolean

Whether IPv6 is enabled on the instance.

ipv6Address string

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

managerId string

The instance manager ID, if any.

managerType string

The instance manager type (instance pool, SKS node pool, etc.), if any.

privateNetworkIds string[]

The list of attached exoscaleprivatenetwork (IDs).

publicIpAddress string

The instance (main network interface) IPv4 address.

reverseDns string

Domain name for reverse DNS record.

securityGroupIds string[]

The list of attached exoscalesecuritygroup (IDs).

sshKey string

The exoscalesshkey (name) authorized on the instance.

state string

The instance state.

templateId string

The instance exoscalecomputetemplate ID.

type string

The instance type.

userData string

The instance cloud-init configuration.

zone string

The Exoscale Zone name.

antiAffinityGroupIds string[]

The list of attached exoscaleantiaffinity_group (IDs).

id string

The compute instance ID to match (conflicts with name).

labels {[key: string]: string}

A map of key/value labels.

name string

The instance name to match (conflicts with id).

created_at str

The compute instance creation date.

deploy_target_id str

A deploy target ID.

disk_size int

The instance disk size (GiB).

elastic_ip_ids Sequence[str]

The list of attached exoscaleelasticip (IDs).

ipv6 bool

Whether IPv6 is enabled on the instance.

ipv6_address str

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

manager_id str

The instance manager ID, if any.

manager_type str

The instance manager type (instance pool, SKS node pool, etc.), if any.

private_network_ids Sequence[str]

The list of attached exoscaleprivatenetwork (IDs).

public_ip_address str

The instance (main network interface) IPv4 address.

reverse_dns str

Domain name for reverse DNS record.

security_group_ids Sequence[str]

The list of attached exoscalesecuritygroup (IDs).

ssh_key str

The exoscalesshkey (name) authorized on the instance.

state str

The instance state.

template_id str

The instance exoscalecomputetemplate ID.

type str

The instance type.

user_data str

The instance cloud-init configuration.

zone str

The Exoscale Zone name.

anti_affinity_group_ids Sequence[str]

The list of attached exoscaleantiaffinity_group (IDs).

id str

The compute instance ID to match (conflicts with name).

labels Mapping[str, str]

A map of key/value labels.

name str

The instance name to match (conflicts with id).

createdAt String

The compute instance creation date.

deployTargetId String

A deploy target ID.

diskSize Number

The instance disk size (GiB).

elasticIpIds List<String>

The list of attached exoscaleelasticip (IDs).

ipv6 Boolean

Whether IPv6 is enabled on the instance.

ipv6Address String

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

managerId String

The instance manager ID, if any.

managerType String

The instance manager type (instance pool, SKS node pool, etc.), if any.

privateNetworkIds List<String>

The list of attached exoscaleprivatenetwork (IDs).

publicIpAddress String

The instance (main network interface) IPv4 address.

reverseDns String

Domain name for reverse DNS record.

securityGroupIds List<String>

The list of attached exoscalesecuritygroup (IDs).

sshKey String

The exoscalesshkey (name) authorized on the instance.

state String

The instance state.

templateId String

The instance exoscalecomputetemplate ID.

type String

The instance type.

userData String

The instance cloud-init configuration.

zone String

The Exoscale Zone name.

antiAffinityGroupIds List<String>

The list of attached exoscaleantiaffinity_group (IDs).

id String

The compute instance ID to match (conflicts with name).

labels Map<String>

A map of key/value labels.

name String

The instance name to match (conflicts with id).

Package Details

Repository
exoscale pulumiverse/pulumi-exoscale
License
Apache-2.0
Notes

This Pulumi package is based on the exoscale Terraform Provider.