GetImage
Using GetImage
function getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>
def get_image(id: Optional[int] = None, most_recent: Optional[bool] = None, name: Optional[str] = None, selector: Optional[str] = None, with_selector: Optional[str] = None, with_statuses: Optional[Sequence[str]] = None, opts: Optional[InvokeOptions] = None) -> GetImageResult
func GetImage(ctx *Context, args *GetImageArgs, opts ...InvokeOption) (*GetImageResult, error)
public static class GetImage {
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Id int
ID of the Image.
- Most
Recent bool If more than one result is returned, use the most recent Image.
- Name string
Name of the Image.
- Selector string
- With
Selector string - With
Statuses List<string> List only images with the specified status, could contain
creating
oravailable
.
- Id int
ID of the Image.
- Most
Recent bool If more than one result is returned, use the most recent Image.
- Name string
Name of the Image.
- Selector string
- With
Selector string - With
Statuses []string List only images with the specified status, could contain
creating
oravailable
.
- id number
ID of the Image.
- most
Recent boolean If more than one result is returned, use the most recent Image.
- name string
Name of the Image.
- selector string
- with
Selector string - with
Statuses string[] List only images with the specified status, could contain
creating
oravailable
.
- id int
ID of the Image.
- most_
recent bool If more than one result is returned, use the most recent Image.
- name str
Name of the Image.
- selector str
- with_
selector str - with_
statuses Sequence[str] List only images with the specified status, could contain
creating
oravailable
.
GetImage Result
The following output properties are available:
- Created string
(string) Date when the Image was created (in ISO-8601 format).
- Deprecated string
(string) Point in time when the image is considered to be deprecated (in ISO-8601 format).
- Description string
(string) Description of the Image.
- Id int
(int) Unique ID of the Image.
- Labels Dictionary<string, object>
- Name string
(string) Name of the Image, only present when the Image is of type
system
.- Os
Flavor string (string) Flavor of operating system contained in the image, could be
ubuntu
,centos
,debian
,fedora
orunknown
.- Os
Version string (string) Operating system version.
- Rapid
Deploy bool (bool) Indicates that rapid deploy of the image is available.
- Type string
(string) Type of the Image, could be
system
,backup
orsnapshot
.- Most
Recent bool - Selector string
- With
Selector string - With
Statuses List<string>
- Created string
(string) Date when the Image was created (in ISO-8601 format).
- Deprecated string
(string) Point in time when the image is considered to be deprecated (in ISO-8601 format).
- Description string
(string) Description of the Image.
- Id int
(int) Unique ID of the Image.
- Labels map[string]interface{}
- Name string
(string) Name of the Image, only present when the Image is of type
system
.- Os
Flavor string (string) Flavor of operating system contained in the image, could be
ubuntu
,centos
,debian
,fedora
orunknown
.- Os
Version string (string) Operating system version.
- Rapid
Deploy bool (bool) Indicates that rapid deploy of the image is available.
- Type string
(string) Type of the Image, could be
system
,backup
orsnapshot
.- Most
Recent bool - Selector string
- With
Selector string - With
Statuses []string
- created string
(string) Date when the Image was created (in ISO-8601 format).
- deprecated string
(string) Point in time when the image is considered to be deprecated (in ISO-8601 format).
- description string
(string) Description of the Image.
- id number
(int) Unique ID of the Image.
- labels {[key: string]: any}
- name string
(string) Name of the Image, only present when the Image is of type
system
.- os
Flavor string (string) Flavor of operating system contained in the image, could be
ubuntu
,centos
,debian
,fedora
orunknown
.- os
Version string (string) Operating system version.
- rapid
Deploy boolean (bool) Indicates that rapid deploy of the image is available.
- type string
(string) Type of the Image, could be
system
,backup
orsnapshot
.- most
Recent boolean - selector string
- with
Selector string - with
Statuses string[]
- created str
(string) Date when the Image was created (in ISO-8601 format).
- deprecated str
(string) Point in time when the image is considered to be deprecated (in ISO-8601 format).
- description str
(string) Description of the Image.
- id int
(int) Unique ID of the Image.
- labels Mapping[str, Any]
- name str
(string) Name of the Image, only present when the Image is of type
system
.- os_
flavor str (string) Flavor of operating system contained in the image, could be
ubuntu
,centos
,debian
,fedora
orunknown
.- os_
version str (string) Operating system version.
- rapid_
deploy bool (bool) Indicates that rapid deploy of the image is available.
- type str
(string) Type of the Image, could be
system
,backup
orsnapshot
.- most_
recent bool - selector 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.