Civo

Pulumi Official
Package maintained by Pulumi
v2.2.4 published on Friday, Jul 29, 2022 by Pulumi

getDiskImage

Get information on an disk image for use in other resources (e.g. creating a instance) with the ability to filter the results.

Using getDiskImage

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 getDiskImage(args: GetDiskImageArgs, opts?: InvokeOptions): Promise<GetDiskImageResult>
function getDiskImageOutput(args: GetDiskImageOutputArgs, opts?: InvokeOptions): Output<GetDiskImageResult>
def get_disk_image(filters: Optional[Sequence[GetDiskImageFilter]] = None,
                   region: Optional[str] = None,
                   sorts: Optional[Sequence[GetDiskImageSort]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDiskImageResult
def get_disk_image_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDiskImageFilterArgs]]]] = None,
                   region: Optional[pulumi.Input[str]] = None,
                   sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetDiskImageSortArgs]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetDiskImageResult]
func GetDiskImage(ctx *Context, args *GetDiskImageArgs, opts ...InvokeOption) (*GetDiskImageResult, error)
func GetDiskImageOutput(ctx *Context, args *GetDiskImageOutputArgs, opts ...InvokeOption) GetDiskImageResultOutput

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

public static class GetDiskImage 
{
    public static Task<GetDiskImageResult> InvokeAsync(GetDiskImageArgs args, InvokeOptions? opts = null)
    public static Output<GetDiskImageResult> Invoke(GetDiskImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiskImageResult> getDiskImage(GetDiskImageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: civo:index/getDiskImage:getDiskImage
  Arguments:
    # Arguments dictionary

The following arguments are supported:

getDiskImage Result

The following output properties are available:

Diskimages List<GetDiskImageDiskimage>
Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetDiskImageFilter>
Region string
Sorts List<GetDiskImageSort>
Diskimages []GetDiskImageDiskimage
Id string

The provider-assigned unique ID for this managed resource.

Filters []GetDiskImageFilter
Region string
Sorts []GetDiskImageSort
diskimages List<GetDiskImageDiskimage>
id String

The provider-assigned unique ID for this managed resource.

filters List<GetDiskImageFilter>
region String
sorts List<GetDiskImageSort>
diskimages GetDiskImageDiskimage[]
id string

The provider-assigned unique ID for this managed resource.

filters GetDiskImageFilter[]
region string
sorts GetDiskImageSort[]
diskimages List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>
region String
sorts List<Property Map>

Supporting Types

GetDiskImageDiskimage

Id string
Label string
Name string
Version string
Id string
Label string
Name string
Version string
id String
label String
name String
version String
id string
label string
name string
version string
id str
label str
name str
version str
id String
label String
name String
version String

GetDiskImageFilter

Key string
Values List<string>
All bool
MatchBy string
Key string
Values []string
All bool
MatchBy string
key String
values List<String>
all Boolean
matchBy String
key string
values string[]
all boolean
matchBy string
key str
values Sequence[str]
all bool
match_by str
key String
values List<String>
all Boolean
matchBy String

GetDiskImageSort

Key string
Direction string
Key string
Direction string
key String
direction String
key string
direction string
key str
direction str
key String
direction String

Package Details

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

This Pulumi package is based on the civo Terraform Provider.