GetVolume

Using GetVolume

function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
function  get_volume(id=None, location=None, name=None, selector=None, server=None, with_selector=None, with_statuses=None, opts=None)
func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)

Note: This function is named LookupVolume in the Go SDK.

public static class GetVolume {
    public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id int
Location string
Name string
Selector string

Deprecated: Please use the with_selector property instead.

Server string
WithSelector string
WithStatuses List<string>
Id int
Location string
Name string
Selector string

Deprecated: Please use the with_selector property instead.

Server string
WithSelector string
WithStatuses []string
id number
location string
name string
selector string

Deprecated: Please use the with_selector property instead.

server string
withSelector string
withStatuses string[]
id float
location str
name str
selector str

Deprecated: Please use the with_selector property instead.

server str
with_selector str
with_statuses List[str]

GetVolume Result

The following output properties are available:

Labels Dictionary<string, object>
LinuxDevice string
Name string
Size int
Id int
Location string
Selector string

Deprecated: Please use the with_selector property instead.

Server string
WithSelector string
WithStatuses List<string>
Labels map[string]interface{}
LinuxDevice string
Name string
Size int
Id int
Location string
Selector string

Deprecated: Please use the with_selector property instead.

Server string
WithSelector string
WithStatuses []string
labels {[key: string]: any}
linuxDevice string
name string
size number
id number
location string
selector string

Deprecated: Please use the with_selector property instead.

server string
withSelector string
withStatuses string[]
labels Dict[str, Any]
linux_device str
name str
size float
id float
location str
selector str

Deprecated: Please use the with_selector property instead.

server str
with_selector str
with_statuses List[str]

Package Details

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