getInstance

Using getInstance

function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
def get_instance(hostname: Optional[str] = None,
                 id: Optional[str] = None,
                 region: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetInstanceResult
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)

Note: This function is named LookupInstance in the Go SDK.

public static class GetInstance {
    public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Hostname string
The hostname of the Instance.
Id string
The ID of the Instance
Region string
The region of an existing Instance.
Hostname string
The hostname of the Instance.
Id string
The ID of the Instance
Region string
The region of an existing Instance.
hostname string
The hostname of the Instance.
id string
The ID of the Instance
region string
The region of an existing Instance.
hostname str
The hostname of the Instance.
id str
The ID of the Instance
region str
The region of an existing Instance.

getInstance Result

The following output properties are available:

CpuCores int
Total cpu of the inatance.
CreatedAt string
The date of creation of the instance
DiskGb int
The size of the disk.
FirewallId string
The ID of the firewall used.
InitialPassword string
Instance initial password
InitialUser string
The name of the initial user created on the server.
NetworkId string
This will be the ID of the network.
Notes string
The notes of the instance.
PrivateIp string
The private ip.
PseudoIp string
Is the ip that is used to route the public ip from the internet to the instance using NAT
PublicIp string
The public ip.
RamMb int
Total ram of the instance.
ReverseDns string
A fully qualified domain name.
Script string
the contents of a script uploaded
Size string
The name of the size.
SshkeyId string
The ID SSH.
Status string
The status of the instance
Tags List<string>
An optional list of tags
Template string
The ID for the template to used to build the instance.
Hostname string
The Instance hostname.
Id string
The ID of the Instance.
Region string
The region of the instance
CpuCores int
Total cpu of the inatance.
CreatedAt string
The date of creation of the instance
DiskGb int
The size of the disk.
FirewallId string
The ID of the firewall used.
InitialPassword string
Instance initial password
InitialUser string
The name of the initial user created on the server.
NetworkId string
This will be the ID of the network.
Notes string
The notes of the instance.
PrivateIp string
The private ip.
PseudoIp string
Is the ip that is used to route the public ip from the internet to the instance using NAT
PublicIp string
The public ip.
RamMb int
Total ram of the instance.
ReverseDns string
A fully qualified domain name.
Script string
the contents of a script uploaded
Size string
The name of the size.
SshkeyId string
The ID SSH.
Status string
The status of the instance
Tags []string
An optional list of tags
Template string
The ID for the template to used to build the instance.
Hostname string
The Instance hostname.
Id string
The ID of the Instance.
Region string
The region of the instance
cpuCores number
Total cpu of the inatance.
createdAt string
The date of creation of the instance
diskGb number
The size of the disk.
firewallId string
The ID of the firewall used.
initialPassword string
Instance initial password
initialUser string
The name of the initial user created on the server.
networkId string
This will be the ID of the network.
notes string
The notes of the instance.
privateIp string
The private ip.
pseudoIp string
Is the ip that is used to route the public ip from the internet to the instance using NAT
publicIp string
The public ip.
ramMb number
Total ram of the instance.
reverseDns string
A fully qualified domain name.
script string
the contents of a script uploaded
size string
The name of the size.
sshkeyId string
The ID SSH.
status string
The status of the instance
tags string[]
An optional list of tags
template string
The ID for the template to used to build the instance.
hostname string
The Instance hostname.
id string
The ID of the Instance.
region string
The region of the instance
cpu_cores int
Total cpu of the inatance.
created_at str
The date of creation of the instance
disk_gb int
The size of the disk.
firewall_id str
The ID of the firewall used.
initial_password str
Instance initial password
initial_user str
The name of the initial user created on the server.
network_id str
This will be the ID of the network.
notes str
The notes of the instance.
private_ip str
The private ip.
pseudo_ip str
Is the ip that is used to route the public ip from the internet to the instance using NAT
public_ip str
The public ip.
ram_mb int
Total ram of the instance.
reverse_dns str
A fully qualified domain name.
script str
the contents of a script uploaded
size str
The name of the size.
sshkey_id str
The ID SSH.
status str
The status of the instance
tags Sequence[str]
An optional list of tags
template str
The ID for the template to used to build the instance.
hostname str
The Instance hostname.
id str
The ID of the Instance.
region str
The region of the instance

Package Details

Repository
https://github.com/pulumi/pulumi-civo
License
Apache-2.0
Notes
This Pulumi package is based on the civo Terraform Provider.