getInstancesSize

Retrieves information about the instance sizes that Civo supports, with the ability to filter the results.

Using getInstancesSize

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 getInstancesSize(args: GetInstancesSizeArgs, opts?: InvokeOptions): Promise<GetInstancesSizeResult>
function getInstancesSizeOutput(args: GetInstancesSizeOutputArgs, opts?: InvokeOptions): Output<GetInstancesSizeResult>
def get_instances_size(filters: Optional[Sequence[GetInstancesSizeFilter]] = None,
                       sorts: Optional[Sequence[GetInstancesSizeSort]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetInstancesSizeResult
def get_instances_size_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstancesSizeFilterArgs]]]] = None,
                       sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstancesSizeSortArgs]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetInstancesSizeResult]
func GetInstancesSize(ctx *Context, args *GetInstancesSizeArgs, opts ...InvokeOption) (*GetInstancesSizeResult, error)
func GetInstancesSizeOutput(ctx *Context, args *GetInstancesSizeOutputArgs, opts ...InvokeOption) GetInstancesSizeResultOutput

> Note: This function is named GetInstancesSize in the Go SDK.

public static class GetInstancesSize 
{
    public static Task<GetInstancesSizeResult> InvokeAsync(GetInstancesSizeArgs args, InvokeOptions? opts = null)
    public static Output<GetInstancesSizeResult> Invoke(GetInstancesSizeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancesSizeResult> getInstancesSize(GetInstancesSizeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: civo:index/getInstancesSize:getInstancesSize
  arguments:
    # arguments dictionary

The following arguments are supported:

Filters List<GetInstancesSizeFilter>

One or more key/value pairs on which to filter results

Sorts List<GetInstancesSizeSort>

One or more key/direction pairs on which to sort results

Filters []GetInstancesSizeFilter

One or more key/value pairs on which to filter results

Sorts []GetInstancesSizeSort

One or more key/direction pairs on which to sort results

filters List<GetInstancesSizeFilter>

One or more key/value pairs on which to filter results

sorts List<GetInstancesSizeSort>

One or more key/direction pairs on which to sort results

filters GetInstancesSizeFilter[]

One or more key/value pairs on which to filter results

sorts GetInstancesSizeSort[]

One or more key/direction pairs on which to sort results

filters Sequence[GetInstancesSizeFilter]

One or more key/value pairs on which to filter results

sorts Sequence[GetInstancesSizeSort]

One or more key/direction pairs on which to sort results

filters List<Property Map>

One or more key/value pairs on which to filter results

sorts List<Property Map>

One or more key/direction pairs on which to sort results

getInstancesSize Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Sizes List<GetInstancesSizeSize>
Filters List<GetInstancesSizeFilter>

One or more key/value pairs on which to filter results

Sorts List<GetInstancesSizeSort>

One or more key/direction pairs on which to sort results

Id string

The provider-assigned unique ID for this managed resource.

Sizes []GetInstancesSizeSize
Filters []GetInstancesSizeFilter

One or more key/value pairs on which to filter results

Sorts []GetInstancesSizeSort

One or more key/direction pairs on which to sort results

id String

The provider-assigned unique ID for this managed resource.

sizes List<GetInstancesSizeSize>
filters List<GetInstancesSizeFilter>

One or more key/value pairs on which to filter results

sorts List<GetInstancesSizeSort>

One or more key/direction pairs on which to sort results

id string

The provider-assigned unique ID for this managed resource.

sizes GetInstancesSizeSize[]
filters GetInstancesSizeFilter[]

One or more key/value pairs on which to filter results

sorts GetInstancesSizeSort[]

One or more key/direction pairs on which to sort results

id str

The provider-assigned unique ID for this managed resource.

sizes Sequence[GetInstancesSizeSize]
filters Sequence[GetInstancesSizeFilter]

One or more key/value pairs on which to filter results

sorts Sequence[GetInstancesSizeSort]

One or more key/direction pairs on which to sort results

id String

The provider-assigned unique ID for this managed resource.

sizes List<Property Map>
filters List<Property Map>

One or more key/value pairs on which to filter results

sorts List<Property Map>

One or more key/direction pairs on which to sort results

Supporting Types

GetInstancesSizeFilter

Key string

Filter sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

Values List<string>

Only retrieves sizes which keys has value that matches one of the values provided here

All bool

Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.

MatchBy string

One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

Key string

Filter sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

Values []string

Only retrieves sizes which keys has value that matches one of the values provided here

All bool

Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.

MatchBy string

One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

key String

Filter sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

values List<String>

Only retrieves sizes which keys has value that matches one of the values provided here

all Boolean

Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.

matchBy String

One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

key string

Filter sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

values string[]

Only retrieves sizes which keys has value that matches one of the values provided here

all boolean

Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.

matchBy string

One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

key str

Filter sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

values Sequence[str]

Only retrieves sizes which keys has value that matches one of the values provided here

all bool

Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.

match_by str

One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

key String

Filter sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

values List<String>

Only retrieves sizes which keys has value that matches one of the values provided here

all Boolean

Set to true to require that a field match all of the values instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of the values are present in the list or set.

matchBy String

One of exact (default), re, or substring. For string-typed fields, specify re to match by using the values as regular expressions, or specify substring to match by treating the values as substrings to find within the string field.

GetInstancesSizeSize

Cpu int
Description string
Disk int
Name string
Ram int
Selectable bool
Type string
Cpu int
Description string
Disk int
Name string
Ram int
Selectable bool
Type string
cpu Integer
description String
disk Integer
name String
ram Integer
selectable Boolean
type String
cpu number
description string
disk number
name string
ram number
selectable boolean
type string
cpu int
description str
disk int
name str
ram int
selectable bool
type str
cpu Number
description String
disk Number
name String
ram Number
selectable Boolean
type String

GetInstancesSizeSort

Key string

Sort sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

Direction string

The sort direction. This may be either asc or desc.

Key string

Sort sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

Direction string

The sort direction. This may be either asc or desc.

key String

Sort sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

direction String

The sort direction. This may be either asc or desc.

key string

Sort sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

direction string

The sort direction. This may be either asc or desc.

key str

Sort sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

direction str

The sort direction. This may be either asc or desc.

key String

Sort sizes by this key. This may be one of cpu, description, disk, name, ram, selectable, type.

direction String

The sort direction. This may be either asc or desc.

Package Details

Repository
https://github.com/pulumi/pulumi-civo
License
Apache-2.0
Notes

This Pulumi package is based on the civo Terraform Provider.