GetVolume
Using GetVolume
function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
def get_volume(id: Optional[int] = None, location: Optional[str] = None, name: Optional[str] = None, selector: Optional[str] = None, server: Optional[str] = None, with_selector: Optional[str] = None, with_statuses: Optional[Sequence[str]] = None, opts: Optional[InvokeOptions] = None) -> GetVolumeResult
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
ID of the volume.
- Location string
- Name string
Name of the volume.
- Selector string
- Server string
- With
Selector string Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- With
Statuses List<string> List only volumes with the specified status, could contain
creating
oravailable
.
- Id int
ID of the volume.
- Location string
- Name string
Name of the volume.
- Selector string
- Server string
- With
Selector string Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- With
Statuses []string List only volumes with the specified status, could contain
creating
oravailable
.
- id number
ID of the volume.
- location string
- name string
Name of the volume.
- selector string
- server string
- with
Selector string Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- with
Statuses string[] List only volumes with the specified status, could contain
creating
oravailable
.
- id int
ID of the volume.
- location str
- name str
Name of the volume.
- selector str
- server str
- with_
selector str Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- with_
statuses Sequence[str] List only volumes with the specified status, could contain
creating
oravailable
.
GetVolume Result
The following output properties are available:
- Id int
Unique ID of the volume.
- Labels Dictionary<string, object>
- Linux
Device string - Name string
Name of the volume.
- Size int
Size of the volume.
- Location string
- Selector string
- Server string
- With
Selector string - With
Statuses List<string>
- Id int
Unique ID of the volume.
- Labels map[string]interface{}
- Linux
Device string - Name string
Name of the volume.
- Size int
Size of the volume.
- Location string
- Selector string
- Server string
- With
Selector string - With
Statuses []string
- id number
Unique ID of the volume.
- labels {[key: string]: any}
- linux
Device string - name string
Name of the volume.
- size number
Size of the volume.
- location string
- selector string
- server string
- with
Selector string - with
Statuses string[]
- id int
Unique ID of the volume.
- labels Mapping[str, Any]
- linux_
device str - name str
Name of the volume.
- size int
Size of the volume.
- location str
- selector str
- server str
- with_
selector str - with_
statuses Sequence[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.