getInstances

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(filters: Optional[Sequence[GetInstancesFilter]] = None,
                  order: Optional[str] = None,
                  order_by: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_instances_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstancesFilterArgs]]]] = None,
                  order: Optional[pulumi.Input[str]] = None,
                  order_by: 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)
}

The following arguments are supported:

Filters List<GetInstancesFilter>
Order string
The order in which results should be returned. (asc, desc; default asc)
OrderBy string
The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
Filters []GetInstancesFilter
Order string
The order in which results should be returned. (asc, desc; default asc)
OrderBy string
The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
filters GetInstancesFilter[]
order string
The order in which results should be returned. (asc, desc; default asc)
orderBy string
The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
filters Sequence[GetInstancesFilter]
order str
The order in which results should be returned. (asc, desc; default asc)
order_by str
The attribute to order the results by. See the Filterable Fields section for a list of valid fields.

getInstances Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Instances List<GetInstancesInstance>
Filters List<GetInstancesFilter>
Order string
OrderBy string
Id string
The provider-assigned unique ID for this managed resource.
Instances []GetInstancesInstance
Filters []GetInstancesFilter
Order string
OrderBy string
id string
The provider-assigned unique ID for this managed resource.
instances GetInstancesInstance[]
filters GetInstancesFilter[]
order string
orderBy string
id str
The provider-assigned unique ID for this managed resource.
instances Sequence[GetInstancesInstance]
filters Sequence[GetInstancesFilter]
order str
order_by str

Supporting Types

GetInstancesFilter

Name string
The name of the field to filter by. See the Filterable Fields section for a list of filterable fields.
Values List<string>
A list of values for the filter to allow. These values should all be in string form.
MatchBy string
The method to match the field by. (exact, regex, substring; default exact)
Name string
The name of the field to filter by. See the Filterable Fields section for a list of filterable fields.
Values []string
A list of values for the filter to allow. These values should all be in string form.
MatchBy string
The method to match the field by. (exact, regex, substring; default exact)
name string
The name of the field to filter by. See the Filterable Fields section for a list of filterable fields.
values string[]
A list of values for the filter to allow. These values should all be in string form.
matchBy string
The method to match the field by. (exact, regex, substring; default exact)
name str
The name of the field to filter by. See the Filterable Fields section for a list of filterable fields.
values Sequence[str]
A list of values for the filter to allow. These values should all be in string form.
match_by str
The method to match the field by. (exact, regex, substring; default exact)

GetInstancesInstance

GetInstancesInstanceAlerts

cpu number
io number
networkIn number
networkOut number
transferQuota number

GetInstancesInstanceBackup

GetInstancesInstanceBackupSchedule

Day string
Window string
Day string
Window string
day string
window string
day str
window str

GetInstancesInstanceConfig

GetInstancesInstanceConfigDevice

GetInstancesInstanceConfigDeviceSda

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSdb

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSdc

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSdd

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSde

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSdf

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSdg

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigDeviceSdh

diskId number
diskLabel string
volumeId number

GetInstancesInstanceConfigHelper

devtmpfsAutomount boolean
distro boolean
modulesDep boolean
network boolean
updatedbDisabled boolean

GetInstancesInstanceConfigInterface

IpamAddress string
Label string
Purpose string
IpamAddress string
Label string
Purpose string
ipamAddress string
label string
purpose string

GetInstancesInstanceDisk

Filesystem string
Id int
Label string
Size int
Filesystem string
Id int
Label string
Size int
filesystem string
id number
label string
size number
filesystem str
id int
label str
size int

GetInstancesInstanceSpec

Disk int
Memory int
Transfer int
Vcpus int
Disk int
Memory int
Transfer int
Vcpus int
disk number
memory number
transfer number
vcpus number
disk int
memory int
transfer int
vcpus int

Package Details

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