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+.
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 Instance Name.
- Instance
Type string Instance Type.
- Key
Pair stringName The Key Name.
- 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
Resolution.
- Status string
Instance Status.
- 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 Instance Name.
- Instance
Type string Instance Type.
- Key
Pair stringName The Key Name.
- 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
Resolution.
- Status string
Instance Status.
- 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 Instance Name.
- instance
Type String Instance Type.
- key
Pair StringName The Key Name.
- 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
Resolution.
- status String
Instance Status.
- 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 Instance Name.
- instance
Type string Instance Type.
- key
Pair stringName The Key Name.
- 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
Resolution.
- status string
Instance Status.
- 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 Instance Name.
- instance_
type str Instance Type.
- key_
pair_ strname The Key Name.
- 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
Resolution.
- status str
Instance Status.
- 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 Instance Name.
- instance
Type String Instance Type.
- key
Pair StringName The Key Name.
- 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
Resolution.
- status String
Instance Status.
- 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.