opentelekomcloud 1.36.52 published on Thursday, Nov 6, 2025 by opentelekomcloud
opentelekomcloud.getComputeInstanceV2
Start a Neo task
Explain and create an opentelekomcloud.getComputeInstanceV2 resource
opentelekomcloud 1.36.52 published on Thursday, Nov 6, 2025 by opentelekomcloud
Up-to-date reference of API arguments for ECS instance you can get at documentation portal
Get information on an ECS instance.
Using getComputeInstanceV2
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 getComputeInstanceV2(args: GetComputeInstanceV2Args, opts?: InvokeOptions): Promise<GetComputeInstanceV2Result>
function getComputeInstanceV2Output(args: GetComputeInstanceV2OutputArgs, opts?: InvokeOptions): Output<GetComputeInstanceV2Result>def get_compute_instance_v2(id: Optional[str] = None,
name: Optional[str] = None,
networks: Optional[Sequence[GetComputeInstanceV2Network]] = None,
region: Optional[str] = None,
ssh_private_key_path: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
user_data: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeInstanceV2Result
def get_compute_instance_v2_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
networks: Optional[pulumi.Input[Sequence[pulumi.Input[GetComputeInstanceV2NetworkArgs]]]] = None,
region: Optional[pulumi.Input[str]] = None,
ssh_private_key_path: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_data: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeInstanceV2Result]func LookupComputeInstanceV2(ctx *Context, args *LookupComputeInstanceV2Args, opts ...InvokeOption) (*LookupComputeInstanceV2Result, error)
func LookupComputeInstanceV2Output(ctx *Context, args *LookupComputeInstanceV2OutputArgs, opts ...InvokeOption) LookupComputeInstanceV2ResultOutput> Note: This function is named LookupComputeInstanceV2 in the Go SDK.
public static class GetComputeInstanceV2
{
public static Task<GetComputeInstanceV2Result> InvokeAsync(GetComputeInstanceV2Args args, InvokeOptions? opts = null)
public static Output<GetComputeInstanceV2Result> Invoke(GetComputeInstanceV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeInstanceV2Result> getComputeInstanceV2(GetComputeInstanceV2Args args, InvokeOptions options)
public static Output<GetComputeInstanceV2Result> getComputeInstanceV2(GetComputeInstanceV2Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getComputeInstanceV2:getComputeInstanceV2
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The UUID of the instance
- Name string
- The name of the network
- Networks
List<Get
Compute Instance V2Network> - An array of maps, detailed below.
- Region string
- Ssh
Private stringKey Path - The path to the private key to use for SSH access. Required only if you want to get the password from the windows instance.
- Dictionary<string, string>
- A set of string tags assigned to this server.
- User
Data string - The user data added when the server was created.
- Id string
- The UUID of the instance
- Name string
- The name of the network
- Networks
[]Get
Compute Instance V2Network - An array of maps, detailed below.
- Region string
- Ssh
Private stringKey Path - The path to the private key to use for SSH access. Required only if you want to get the password from the windows instance.
- map[string]string
- A set of string tags assigned to this server.
- User
Data string - The user data added when the server was created.
- id String
- The UUID of the instance
- name String
- The name of the network
- networks
List<Get
Compute Instance V2Network> - An array of maps, detailed below.
- region String
- ssh
Private StringKey Path - The path to the private key to use for SSH access. Required only if you want to get the password from the windows instance.
- Map<String,String>
- A set of string tags assigned to this server.
- user
Data String - The user data added when the server was created.
- id string
- The UUID of the instance
- name string
- The name of the network
- networks
Get
Compute Instance V2Network[] - An array of maps, detailed below.
- region string
- ssh
Private stringKey Path - The path to the private key to use for SSH access. Required only if you want to get the password from the windows instance.
- {[key: string]: string}
- A set of string tags assigned to this server.
- user
Data string - The user data added when the server was created.
- id str
- The UUID of the instance
- name str
- The name of the network
- networks
Sequence[Get
Compute Instance V2Network] - An array of maps, detailed below.
- region str
- ssh_
private_ strkey_ path - The path to the private key to use for SSH access. Required only if you want to get the password from the windows instance.
- Mapping[str, str]
- A set of string tags assigned to this server.
- user_
data str - The user data added when the server was created.
- id String
- The UUID of the instance
- name String
- The name of the network
- networks List<Property Map>
- An array of maps, detailed below.
- region String
- ssh
Private StringKey Path - The path to the private key to use for SSH access. Required only if you want to get the password from the windows instance.
- Map<String>
- A set of string tags assigned to this server.
- user
Data String - The user data added when the server was created.
getComputeInstanceV2 Result
The following output properties are available:
- Access
Ip stringV4 - The first IPv4 address assigned to this server.
- Access
Ip stringV6 - The first IPv6 address assigned to this server.
- Admin
Pass string - Availability
Zone string - The availability zone of this server.
- Description string
- Server description.
- Encrypted
Password string - The encrypted password of the server. This is only available if the server is a Windows server. If privateKey == nil the encrypted password is returned and can be decrypted with: echo '' | base64 -D | openssl rsautl -decrypt -inkey <private_key>
- Flavor
Id string - The flavor ID used to create the server.
- Flavor
Name string - The flavor name used to create the server.
- Id string
- Image
Id string - The image ID used to create the server.
- Image
Name string - The image name used to create the server.
- Key
Pair string - The name of the key pair assigned to this server.
- Metadata Dictionary<string, string>
- A set of key/value pairs made available to the server.
- Name string
- The name of the network
- Password string
- The password of the server. This is only available if the server is a Windows server. If privateKey != nil the password is decrypted with the private key.
- Power
State string - Region string
- Security
Groups List<string> - An array of security group names associated with this server.
- User
Data string - The user data added when the server was created.
- Networks
List<Get
Compute Instance V2Network> - An array of maps, detailed below.
- Ssh
Private stringKey Path - Dictionary<string, string>
- A set of string tags assigned to this server.
- Access
Ip stringV4 - The first IPv4 address assigned to this server.
- Access
Ip stringV6 - The first IPv6 address assigned to this server.
- Admin
Pass string - Availability
Zone string - The availability zone of this server.
- Description string
- Server description.
- Encrypted
Password string - The encrypted password of the server. This is only available if the server is a Windows server. If privateKey == nil the encrypted password is returned and can be decrypted with: echo '' | base64 -D | openssl rsautl -decrypt -inkey <private_key>
- Flavor
Id string - The flavor ID used to create the server.
- Flavor
Name string - The flavor name used to create the server.
- Id string
- Image
Id string - The image ID used to create the server.
- Image
Name string - The image name used to create the server.
- Key
Pair string - The name of the key pair assigned to this server.
- Metadata map[string]string
- A set of key/value pairs made available to the server.
- Name string
- The name of the network
- Password string
- The password of the server. This is only available if the server is a Windows server. If privateKey != nil the password is decrypted with the private key.
- Power
State string - Region string
- Security
Groups []string - An array of security group names associated with this server.
- User
Data string - The user data added when the server was created.
- Networks
[]Get
Compute Instance V2Network - An array of maps, detailed below.
- Ssh
Private stringKey Path - map[string]string
- A set of string tags assigned to this server.
- access
Ip StringV4 - The first IPv4 address assigned to this server.
- access
Ip StringV6 - The first IPv6 address assigned to this server.
- admin
Pass String - availability
Zone String - The availability zone of this server.
- description String
- Server description.
- encrypted
Password String - The encrypted password of the server. This is only available if the server is a Windows server. If privateKey == nil the encrypted password is returned and can be decrypted with: echo '' | base64 -D | openssl rsautl -decrypt -inkey <private_key>
- flavor
Id String - The flavor ID used to create the server.
- flavor
Name String - The flavor name used to create the server.
- id String
- image
Id String - The image ID used to create the server.
- image
Name String - The image name used to create the server.
- key
Pair String - The name of the key pair assigned to this server.
- metadata Map<String,String>
- A set of key/value pairs made available to the server.
- name String
- The name of the network
- password String
- The password of the server. This is only available if the server is a Windows server. If privateKey != nil the password is decrypted with the private key.
- power
State String - region String
- security
Groups List<String> - An array of security group names associated with this server.
- user
Data String - The user data added when the server was created.
- networks
List<Get
Compute Instance V2Network> - An array of maps, detailed below.
- ssh
Private StringKey Path - Map<String,String>
- A set of string tags assigned to this server.
- access
Ip stringV4 - The first IPv4 address assigned to this server.
- access
Ip stringV6 - The first IPv6 address assigned to this server.
- admin
Pass string - availability
Zone string - The availability zone of this server.
- description string
- Server description.
- encrypted
Password string - The encrypted password of the server. This is only available if the server is a Windows server. If privateKey == nil the encrypted password is returned and can be decrypted with: echo '' | base64 -D | openssl rsautl -decrypt -inkey <private_key>
- flavor
Id string - The flavor ID used to create the server.
- flavor
Name string - The flavor name used to create the server.
- id string
- image
Id string - The image ID used to create the server.
- image
Name string - The image name used to create the server.
- key
Pair string - The name of the key pair assigned to this server.
- metadata {[key: string]: string}
- A set of key/value pairs made available to the server.
- name string
- The name of the network
- password string
- The password of the server. This is only available if the server is a Windows server. If privateKey != nil the password is decrypted with the private key.
- power
State string - region string
- security
Groups string[] - An array of security group names associated with this server.
- user
Data string - The user data added when the server was created.
- networks
Get
Compute Instance V2Network[] - An array of maps, detailed below.
- ssh
Private stringKey Path - {[key: string]: string}
- A set of string tags assigned to this server.
- access_
ip_ strv4 - The first IPv4 address assigned to this server.
- access_
ip_ strv6 - The first IPv6 address assigned to this server.
- admin_
pass str - availability_
zone str - The availability zone of this server.
- description str
- Server description.
- encrypted_
password str - The encrypted password of the server. This is only available if the server is a Windows server. If privateKey == nil the encrypted password is returned and can be decrypted with: echo '' | base64 -D | openssl rsautl -decrypt -inkey <private_key>
- flavor_
id str - The flavor ID used to create the server.
- flavor_
name str - The flavor name used to create the server.
- id str
- image_
id str - The image ID used to create the server.
- image_
name str - The image name used to create the server.
- key_
pair str - The name of the key pair assigned to this server.
- metadata Mapping[str, str]
- A set of key/value pairs made available to the server.
- name str
- The name of the network
- password str
- The password of the server. This is only available if the server is a Windows server. If privateKey != nil the password is decrypted with the private key.
- power_
state str - region str
- security_
groups Sequence[str] - An array of security group names associated with this server.
- user_
data str - The user data added when the server was created.
- networks
Sequence[Get
Compute Instance V2Network] - An array of maps, detailed below.
- ssh_
private_ strkey_ path - Mapping[str, str]
- A set of string tags assigned to this server.
- access
Ip StringV4 - The first IPv4 address assigned to this server.
- access
Ip StringV6 - The first IPv6 address assigned to this server.
- admin
Pass String - availability
Zone String - The availability zone of this server.
- description String
- Server description.
- encrypted
Password String - The encrypted password of the server. This is only available if the server is a Windows server. If privateKey == nil the encrypted password is returned and can be decrypted with: echo '' | base64 -D | openssl rsautl -decrypt -inkey <private_key>
- flavor
Id String - The flavor ID used to create the server.
- flavor
Name String - The flavor name used to create the server.
- id String
- image
Id String - The image ID used to create the server.
- image
Name String - The image name used to create the server.
- key
Pair String - The name of the key pair assigned to this server.
- metadata Map<String>
- A set of key/value pairs made available to the server.
- name String
- The name of the network
- password String
- The password of the server. This is only available if the server is a Windows server. If privateKey != nil the password is decrypted with the private key.
- power
State String - region String
- security
Groups List<String> - An array of security group names associated with this server.
- user
Data String - The user data added when the server was created.
- networks List<Property Map>
- An array of maps, detailed below.
- ssh
Private StringKey Path - Map<String>
- A set of string tags assigned to this server.
Supporting Types
GetComputeInstanceV2Network
- fixed_
ip_ strv4 - The IPv4 address assigned to this network port.
- fixed_
ip_ strv6 - The IPv6 address assigned to this network port.
- mac str
- The MAC address assigned to this network interface.
- name str
- The name of the network
- port str
- The port UUID for this network
- uuid str
- The UUID of the network
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
opentelekomcloud 1.36.52 published on Thursday, Nov 6, 2025 by opentelekomcloud
