Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.ecp.getInstances
Explore with Pulumi AI
This data source provides the Ecp Instances of the current Alibaba Cloud user.
NOTE: Available in v1.158.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.ecp.getZones({});
const defaultGetInstanceTypes = alicloud.ecp.getInstanceTypes({});
const countSize = _default.then(_default => _default.zones).length;
const zoneId = Promise.all([_default, countSize]).then(([_default, countSize]) => _default.zones[countSize - 1].zoneId);
const instanceTypeCountSize = defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes).length;
const instanceType = Promise.all([defaultGetInstanceTypes, instanceTypeCountSize]).then(([defaultGetInstanceTypes, instanceTypeCountSize]) => defaultGetInstanceTypes.instanceTypes[instanceTypeCountSize - 1].instanceType);
const defaultGetNetworks = alicloud.vpc.getNetworks({
nameRegex: "default-NODELETING",
});
const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
zoneId: zoneId,
}));
const group = new alicloud.ecs.SecurityGroup("group", {
name: name,
vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
});
const defaultKeyPair = new alicloud.ecp.KeyPair("default", {
keyPairName: name,
publicKeyBody: "ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
});
const defaultInstance = new alicloud.ecp.Instance("default", {
instanceName: name,
description: name,
force: true,
keyPairName: defaultKeyPair.keyPairName,
vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
imageId: "android_9_0_0_release_2851157_20211201.vhd",
instanceType: Promise.all([defaultGetInstanceTypes, instanceTypeCountSize]).then(([defaultGetInstanceTypes, instanceTypeCountSize]) => defaultGetInstanceTypes.instanceTypes[instanceTypeCountSize - 1].instanceType),
paymentType: "PayAsYouGo",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ecp.get_zones()
default_get_instance_types = alicloud.ecp.get_instance_types()
count_size = len(default.zones)
zone_id = default.zones[count_size - 1].zone_id
instance_type_count_size = len(default_get_instance_types.instance_types)
instance_type = default_get_instance_types.instance_types[instance_type_count_size - 1].instance_type
default_get_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
zone_id=zone_id)
group = alicloud.ecs.SecurityGroup("group",
name=name,
vpc_id=default_get_networks.ids[0])
default_key_pair = alicloud.ecp.KeyPair("default",
key_pair_name=name,
public_key_body="ssh-rsa AAAAB3Nza12345678qwertyuudsfsg")
default_instance = alicloud.ecp.Instance("default",
instance_name=name,
description=name,
force=True,
key_pair_name=default_key_pair.key_pair_name,
vswitch_id=default_get_switches.ids[0],
image_id="android_9_0_0_release_2851157_20211201.vhd",
instance_type=default_get_instance_types.instance_types[instance_type_count_size - 1].instance_type,
payment_type="PayAsYouGo")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecp"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := ecp.GetZones(ctx, &ecp.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultGetInstanceTypes, err := ecp.GetInstanceTypes(ctx, &ecp.GetInstanceTypesArgs{}, nil)
if err != nil {
return err
}
countSize := len(_default.Zones)
zoneId := _default.Zones[countSize-1].ZoneId
instanceTypeCountSize := len(defaultGetInstanceTypes.InstanceTypes)
_ := defaultGetInstanceTypes.InstanceTypes[instanceTypeCountSize-1].InstanceType
defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("default-NODELETING"),
}, nil)
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef(zoneId),
}, nil)
if err != nil {
return err
}
_, err = ecs.NewSecurityGroup(ctx, "group", &ecs.SecurityGroupArgs{
Name: pulumi.Any(name),
VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
})
if err != nil {
return err
}
defaultKeyPair, err := ecp.NewKeyPair(ctx, "default", &ecp.KeyPairArgs{
KeyPairName: pulumi.Any(name),
PublicKeyBody: pulumi.String("ssh-rsa AAAAB3Nza12345678qwertyuudsfsg"),
})
if err != nil {
return err
}
_, err = ecp.NewInstance(ctx, "default", &ecp.InstanceArgs{
InstanceName: pulumi.Any(name),
Description: pulumi.Any(name),
Force: pulumi.Bool(true),
KeyPairName: defaultKeyPair.KeyPairName,
VswitchId: pulumi.String(defaultGetSwitches.Ids[0]),
ImageId: pulumi.String("android_9_0_0_release_2851157_20211201.vhd"),
InstanceType: pulumi.String(defaultGetInstanceTypes.InstanceTypes[instanceTypeCountSize-1].InstanceType),
PaymentType: pulumi.String("PayAsYouGo"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Ecp.GetZones.Invoke();
var defaultGetInstanceTypes = AliCloud.Ecp.GetInstanceTypes.Invoke();
var countSize = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)).Length;
var zoneId = Output.Tuple(@default, countSize).Apply(values =>
{
var @default = values.Item1;
var countSize = values.Item2;
return @default.Apply(getZonesResult => getZonesResult.Zones)[countSize - 1].ZoneId;
});
var instanceTypeCountSize = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes).Length;
var instanceType = Output.Tuple(defaultGetInstanceTypes, instanceTypeCountSize).Apply(values =>
{
var defaultGetInstanceTypes = values.Item1;
var instanceTypeCountSize = values.Item2;
return defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes)[instanceTypeCountSize - 1].InstanceType;
});
var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "default-NODELETING",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = zoneId,
});
var @group = new AliCloud.Ecs.SecurityGroup("group", new()
{
Name = name,
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
});
var defaultKeyPair = new AliCloud.Ecp.KeyPair("default", new()
{
KeyPairName = name,
PublicKeyBody = "ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
});
var defaultInstance = new AliCloud.Ecp.Instance("default", new()
{
InstanceName = name,
Description = name,
Force = true,
KeyPairName = defaultKeyPair.KeyPairName,
VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
ImageId = "android_9_0_0_release_2851157_20211201.vhd",
InstanceType = Output.Tuple(defaultGetInstanceTypes, instanceTypeCountSize).Apply(values =>
{
var defaultGetInstanceTypes = values.Item1;
var instanceTypeCountSize = values.Item2;
return defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes)[instanceTypeCountSize - 1].InstanceType;
}),
PaymentType = "PayAsYouGo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecp.EcpFunctions;
import com.pulumi.alicloud.ecp.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecp.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecp.KeyPair;
import com.pulumi.alicloud.ecp.KeyPairArgs;
import com.pulumi.alicloud.ecp.Instance;
import com.pulumi.alicloud.ecp.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = EcpFunctions.getZones();
final var defaultGetInstanceTypes = EcpFunctions.getInstanceTypes();
final var countSize = default_.zones().length();
final var zoneId = default_.zones()[countSize - 1].zoneId();
final var instanceTypeCountSize = defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()).length();
final var instanceType = defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes())[instanceTypeCountSize - 1].instanceType();
final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(zoneId)
.build());
var group = new SecurityGroup("group", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
var defaultKeyPair = new KeyPair("defaultKeyPair", KeyPairArgs.builder()
.keyPairName(name)
.publicKeyBody("ssh-rsa AAAAB3Nza12345678qwertyuudsfsg")
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.instanceName(name)
.description(name)
.force("true")
.keyPairName(defaultKeyPair.keyPairName())
.vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.imageId("android_9_0_0_release_2851157_20211201.vhd")
.instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes())[instanceTypeCountSize - 1].instanceType())
.paymentType("PayAsYouGo")
.build());
}
}
Coming soon!
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>
def get_instances(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
image_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
key_pair_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
payment_type: Optional[str] = None,
resolution: Optional[str] = None,
status: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_instances_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
image_id: Optional[pulumi.Input[str]] = None,
instance_name: Optional[pulumi.Input[str]] = None,
instance_type: Optional[pulumi.Input[str]] = None,
key_pair_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
payment_type: Optional[pulumi.Input[str]] = None,
resolution: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]
func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput
> Note: This function is named GetInstances
in the Go SDK.
public static class GetInstances
{
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ecp/getInstances:getInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Enable
Details bool - Ids List<string>
- A list of Ecp Instances IDs.
- Image
Id string - The ID Of The Image.
- Instance
Name string - The name of the instance. It must be 2 to 128 characters in length and must start with an uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
- Instance
Type string - Instance Type.
- Key
Pair stringName - The name of the key pair of the mobile phone instance.
- Name
Regex string - A regex string to filter results by mobile phone name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Payment
Type string - The payment type.Valid values:
PayAsYouGo
,Subscription
- Resolution string
- The selected resolution for the cloud mobile phone instance.
- Status string
- Instance status. Valid values:
Pending
,Running
,Starting
,Stopped
,Stopping
. - Zone
Id string
- Enable
Details bool - Ids []string
- A list of Ecp Instances IDs.
- Image
Id string - The ID Of The Image.
- Instance
Name string - The name of the instance. It must be 2 to 128 characters in length and must start with an uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
- Instance
Type string - Instance Type.
- Key
Pair stringName - The name of the key pair of the mobile phone instance.
- Name
Regex string - A regex string to filter results by mobile phone name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Payment
Type string - The payment type.Valid values:
PayAsYouGo
,Subscription
- Resolution string
- The selected resolution for the cloud mobile phone instance.
- Status string
- Instance status. Valid values:
Pending
,Running
,Starting
,Stopped
,Stopping
. - Zone
Id string
- enable
Details Boolean - ids List<String>
- A list of Ecp Instances IDs.
- image
Id String - The ID Of The Image.
- instance
Name String - The name of the instance. It must be 2 to 128 characters in length and must start with an uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
- instance
Type String - Instance Type.
- key
Pair StringName - The name of the key pair of the mobile phone instance.
- name
Regex String - A regex string to filter results by mobile phone name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - payment
Type String - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution String
- The selected resolution for the cloud mobile phone instance.
- status String
- Instance status. Valid values:
Pending
,Running
,Starting
,Stopped
,Stopping
. - zone
Id String
- enable
Details boolean - ids string[]
- A list of Ecp Instances IDs.
- image
Id string - The ID Of The Image.
- instance
Name string - The name of the instance. It must be 2 to 128 characters in length and must start with an uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
- instance
Type string - Instance Type.
- key
Pair stringName - The name of the key pair of the mobile phone instance.
- name
Regex string - A regex string to filter results by mobile phone name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - payment
Type string - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution string
- The selected resolution for the cloud mobile phone instance.
- status string
- Instance status. Valid values:
Pending
,Running
,Starting
,Stopped
,Stopping
. - zone
Id string
- enable_
details bool - ids Sequence[str]
- A list of Ecp Instances IDs.
- image_
id str - The ID Of The Image.
- instance_
name str - The name of the instance. It must be 2 to 128 characters in length and must start with an uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
- instance_
type str - Instance Type.
- key_
pair_ strname - The name of the key pair of the mobile phone instance.
- name_
regex str - A regex string to filter results by mobile phone name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - payment_
type str - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution str
- The selected resolution for the cloud mobile phone instance.
- status str
- Instance status. Valid values:
Pending
,Running
,Starting
,Stopped
,Stopping
. - zone_
id str
- enable
Details Boolean - ids List<String>
- A list of Ecp Instances IDs.
- image
Id String - The ID Of The Image.
- instance
Name String - The name of the instance. It must be 2 to 128 characters in length and must start with an uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
- instance
Type String - Instance Type.
- key
Pair StringName - The name of the key pair of the mobile phone instance.
- name
Regex String - A regex string to filter results by mobile phone name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - payment
Type String - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution String
- The selected resolution for the cloud mobile phone instance.
- status String
- Instance status. Valid values:
Pending
,Running
,Starting
,Stopped
,Stopping
. - zone
Id String
getInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Instances
List<Pulumi.
Ali Cloud. Ecp. Outputs. Get Instances Instance> - Names List<string>
- Enable
Details bool - Image
Id string - Instance
Name string - Instance
Type string - Key
Pair stringName - Name
Regex string - Output
File string - Payment
Type string - Resolution string
- Status string
- Zone
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]Get
Instances Instance - Names []string
- Enable
Details bool - Image
Id string - Instance
Name string - Instance
Type string - Key
Pair stringName - Name
Regex string - Output
File string - Payment
Type string - Resolution string
- Status string
- Zone
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<Get
Instances Instance> - names List<String>
- enable
Details Boolean - image
Id String - instance
Name String - instance
Type String - key
Pair StringName - name
Regex String - output
File String - payment
Type String - resolution String
- status String
- zone
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
Get
Instances Instance[] - names string[]
- enable
Details boolean - image
Id string - instance
Name string - instance
Type string - key
Pair stringName - name
Regex string - output
File string - payment
Type string - resolution string
- status string
- zone
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[Get
Instances Instance] - names Sequence[str]
- enable_
details bool - image_
id str - instance_
name str - instance_
type str - key_
pair_ strname - name_
regex str - output_
file str - payment_
type str - resolution str
- status str
- zone_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances List<Property Map>
- names List<String>
- enable
Details Boolean - image
Id String - instance
Name String - instance
Type String - key
Pair StringName - name
Regex String - output
File String - payment
Type String - resolution String
- status String
- zone
Id String
Supporting Types
GetInstancesInstance
- Description string
- Instance Description.
- Id string
- The ID of the Instance.
- Image
Id string - The ID Of The Image.
- Instance
Id string - InstanceId.
- Instance
Name string - Instance Name.
- Instance
Type string - Instance Type.
- Key
Pair stringName - The Key Name.
- Payment
Type string - The payment type.Valid values:
PayAsYouGo
,Subscription
- Resolution string
- Resolution.
- Security
Group stringId - Security Group ID.
- Status string
- Instance Status.
- Vnc
Url string - VNC login address.
- Vswitch
Id string - The vswitch id.
- Zone
Id string
- Description string
- Instance Description.
- Id string
- The ID of the Instance.
- Image
Id string - The ID Of The Image.
- Instance
Id string - InstanceId.
- Instance
Name string - Instance Name.
- Instance
Type string - Instance Type.
- Key
Pair stringName - The Key Name.
- Payment
Type string - The payment type.Valid values:
PayAsYouGo
,Subscription
- Resolution string
- Resolution.
- Security
Group stringId - Security Group ID.
- Status string
- Instance Status.
- Vnc
Url string - VNC login address.
- Vswitch
Id string - The vswitch id.
- Zone
Id string
- description String
- Instance Description.
- id String
- The ID of the Instance.
- image
Id String - The ID Of The Image.
- instance
Id String - InstanceId.
- instance
Name String - Instance Name.
- instance
Type String - Instance Type.
- key
Pair StringName - The Key Name.
- payment
Type String - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution String
- Resolution.
- security
Group StringId - Security Group ID.
- status String
- Instance Status.
- vnc
Url String - VNC login address.
- vswitch
Id String - The vswitch id.
- zone
Id String
- description string
- Instance Description.
- id string
- The ID of the Instance.
- image
Id string - The ID Of The Image.
- instance
Id string - InstanceId.
- instance
Name string - Instance Name.
- instance
Type string - Instance Type.
- key
Pair stringName - The Key Name.
- payment
Type string - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution string
- Resolution.
- security
Group stringId - Security Group ID.
- status string
- Instance Status.
- vnc
Url string - VNC login address.
- vswitch
Id string - The vswitch id.
- zone
Id string
- description str
- Instance Description.
- id str
- The ID of the Instance.
- image_
id str - The ID Of The Image.
- instance_
id str - InstanceId.
- instance_
name str - Instance Name.
- instance_
type str - Instance Type.
- key_
pair_ strname - The Key Name.
- payment_
type str - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution str
- Resolution.
- security_
group_ strid - Security Group ID.
- status str
- Instance Status.
- vnc_
url str - VNC login address.
- vswitch_
id str - The vswitch id.
- zone_
id str
- description String
- Instance Description.
- id String
- The ID of the Instance.
- image
Id String - The ID Of The Image.
- instance
Id String - InstanceId.
- instance
Name String - Instance Name.
- instance
Type String - Instance Type.
- key
Pair StringName - The Key Name.
- payment
Type String - The payment type.Valid values:
PayAsYouGo
,Subscription
- resolution String
- Resolution.
- security
Group StringId - Security Group ID.
- status String
- Instance Status.
- vnc
Url String - VNC login address.
- vswitch
Id String - The vswitch id.
- zone
Id String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.