1. Packages
  2. Civo Provider
  3. API Docs
  4. getSize
civo 1.1.5 published on Thursday, Feb 6, 2025 by civo

civo.getSize

Explore with Pulumi AI

civo 1.1.5 published on Thursday, Feb 6, 2025 by civo

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

Using getSize

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 getSize(args: GetSizeArgs, opts?: InvokeOptions): Promise<GetSizeResult>
function getSizeOutput(args: GetSizeOutputArgs, opts?: InvokeOptions): Output<GetSizeResult>
Copy
def get_size(filters: Optional[Sequence[GetSizeFilter]] = None,
             id: Optional[str] = None,
             sorts: Optional[Sequence[GetSizeSort]] = None,
             opts: Optional[InvokeOptions] = None) -> GetSizeResult
def get_size_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSizeFilterArgs]]]] = None,
             id: Optional[pulumi.Input[str]] = None,
             sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetSizeSortArgs]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetSizeResult]
Copy
func GetSize(ctx *Context, args *GetSizeArgs, opts ...InvokeOption) (*GetSizeResult, error)
func GetSizeOutput(ctx *Context, args *GetSizeOutputArgs, opts ...InvokeOption) GetSizeResultOutput
Copy

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

public static class GetSize 
{
    public static Task<GetSizeResult> InvokeAsync(GetSizeArgs args, InvokeOptions? opts = null)
    public static Output<GetSizeResult> Invoke(GetSizeInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSizeResult> getSize(GetSizeArgs args, InvokeOptions options)
public static Output<GetSizeResult> getSize(GetSizeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: civo:index/getSize:getSize
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetSizeFilter>
One or more key/value pairs on which to filter results
Id string
The ID of this resource.
Sorts List<GetSizeSort>
One or more key/direction pairs on which to sort results
Filters []GetSizeFilter
One or more key/value pairs on which to filter results
Id string
The ID of this resource.
Sorts []GetSizeSort
One or more key/direction pairs on which to sort results
filters List<GetSizeFilter>
One or more key/value pairs on which to filter results
id String
The ID of this resource.
sorts List<GetSizeSort>
One or more key/direction pairs on which to sort results
filters GetSizeFilter[]
One or more key/value pairs on which to filter results
id string
The ID of this resource.
sorts GetSizeSort[]
One or more key/direction pairs on which to sort results
filters Sequence[GetSizeFilter]
One or more key/value pairs on which to filter results
id str
The ID of this resource.
sorts Sequence[GetSizeSort]
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
id String
The ID of this resource.
sorts List<Property Map>
One or more key/direction pairs on which to sort results

getSize Result

The following output properties are available:

Id string
The ID of this resource.
Sizes List<GetSizeSize>
Filters List<GetSizeFilter>
One or more key/value pairs on which to filter results
Sorts List<GetSizeSort>
One or more key/direction pairs on which to sort results
Id string
The ID of this resource.
Sizes []GetSizeSize
Filters []GetSizeFilter
One or more key/value pairs on which to filter results
Sorts []GetSizeSort
One or more key/direction pairs on which to sort results
id String
The ID of this resource.
sizes List<GetSizeSize>
filters List<GetSizeFilter>
One or more key/value pairs on which to filter results
sorts List<GetSizeSort>
One or more key/direction pairs on which to sort results
id string
The ID of this resource.
sizes GetSizeSize[]
filters GetSizeFilter[]
One or more key/value pairs on which to filter results
sorts GetSizeSort[]
One or more key/direction pairs on which to sort results
id str
The ID of this resource.
sizes Sequence[GetSizeSize]
filters Sequence[GetSizeFilter]
One or more key/value pairs on which to filter results
sorts Sequence[GetSizeSort]
One or more key/direction pairs on which to sort results
id String
The ID of this 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

GetSizeFilter

Key This property is required. string
Filter sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
Values This property is required. 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 This property is required. string
Filter sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
Values This property is required. []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 This property is required. String
Filter sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
values This property is required. 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 This property is required. string
Filter sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
values This property is required. 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 This property is required. str
Filter sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
values This property is required. 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 This property is required. String
Filter sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
values This property is required. 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.

GetSizeSize

Cpu This property is required. double
Description This property is required. string
Disk This property is required. double
Gpu This property is required. double
GpuType This property is required. string
Name This property is required. string
Ram This property is required. double
Selectable This property is required. bool
Type This property is required. string
Cpu This property is required. float64
Description This property is required. string
Disk This property is required. float64
Gpu This property is required. float64
GpuType This property is required. string
Name This property is required. string
Ram This property is required. float64
Selectable This property is required. bool
Type This property is required. string
cpu This property is required. Double
description This property is required. String
disk This property is required. Double
gpu This property is required. Double
gpuType This property is required. String
name This property is required. String
ram This property is required. Double
selectable This property is required. Boolean
type This property is required. String
cpu This property is required. number
description This property is required. string
disk This property is required. number
gpu This property is required. number
gpuType This property is required. string
name This property is required. string
ram This property is required. number
selectable This property is required. boolean
type This property is required. string
cpu This property is required. float
description This property is required. str
disk This property is required. float
gpu This property is required. float
gpu_type This property is required. str
name This property is required. str
ram This property is required. float
selectable This property is required. bool
type This property is required. str
cpu This property is required. Number
description This property is required. String
disk This property is required. Number
gpu This property is required. Number
gpuType This property is required. String
name This property is required. String
ram This property is required. Number
selectable This property is required. Boolean
type This property is required. String

GetSizeSort

Key This property is required. string
Sort sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
Direction string
The sort direction. This may be either asc or desc.
Key This property is required. string
Sort sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
Direction string
The sort direction. This may be either asc or desc.
key This property is required. String
Sort sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
direction String
The sort direction. This may be either asc or desc.
key This property is required. string
Sort sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
direction string
The sort direction. This may be either asc or desc.
key This property is required. str
Sort sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
direction str
The sort direction. This may be either asc or desc.
key This property is required. String
Sort sizes by this key. This may be one of cpu, description, disk, gpu_type, gpu, name, ram, selectable, type.
direction String
The sort direction. This may be either asc or desc.

Package Details

Repository
Civo civo/terraform-provider-civo
License
Notes
This Pulumi package is based on the civo Terraform Provider.
civo 1.1.5 published on Thursday, Feb 6, 2025 by civo