GetImage
Get information about a Google Compute Image. Check that your service account has the compute.imageUser role if you want to share custom images from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
the official documentation and its API.
Using GetImage
function getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>function get_image(family=None, name=None, project=None, opts=None)func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)Note: This function is named
LookupImagein the Go SDK.
public static class GetImage {
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Family string
The family name of the image.
- Name string
or
family- (Required) The name of a specific image or a family. Exactly one ofnameoffamilymust be specified. Ifnameis specified, it will fetch the corresponding image. Iffamilyis specified, it will returns the latest image that is part of an image family and is not deprecated.- Project string
The project in which the resource belongs. If it is not provided, the provider project is used. If you are using a [public base image][pubimg], be sure to specify the correct Image Project.
- Family string
The family name of the image.
- Name string
or
family- (Required) The name of a specific image or a family. Exactly one ofnameoffamilymust be specified. Ifnameis specified, it will fetch the corresponding image. Iffamilyis specified, it will returns the latest image that is part of an image family and is not deprecated.- Project string
The project in which the resource belongs. If it is not provided, the provider project is used. If you are using a [public base image][pubimg], be sure to specify the correct Image Project.
- family string
The family name of the image.
- name string
or
family- (Required) The name of a specific image or a family. Exactly one ofnameoffamilymust be specified. Ifnameis specified, it will fetch the corresponding image. Iffamilyis specified, it will returns the latest image that is part of an image family and is not deprecated.- project string
The project in which the resource belongs. If it is not provided, the provider project is used. If you are using a [public base image][pubimg], be sure to specify the correct Image Project.
- family str
The family name of the image.
- name str
or
family- (Required) The name of a specific image or a family. Exactly one ofnameoffamilymust be specified. Ifnameis specified, it will fetch the corresponding image. Iffamilyis specified, it will returns the latest image that is part of an image family and is not deprecated.- project str
The project in which the resource belongs. If it is not provided, the provider project is used. If you are using a [public base image][pubimg], be sure to specify the correct Image Project.
GetImage Result
The following output properties are available:
- Archive
Size intBytes The size of the image tar.gz archive stored in Google Cloud Storage in bytes.
- Creation
Timestamp string The creation timestamp in RFC3339 text format.
- Description string
An optional description of this image.
- Disk
Size intGb The size of the image when restored onto a persistent disk in gigabytes.
- Family string
The family name of the image.
- Id string
The provider-assigned unique ID for this managed resource.
- Image
Encryption stringKey Sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- Image
Id string The unique identifier for the image.
- Label
Fingerprint string A fingerprint for the labels being applied to this image.
- Labels Dictionary<string, string>
A map of labels applied to this image.
- Licenses List<string>
A list of applicable license URI.
- Name string
The name of the image.
- Project string
- Self
Link string The URI of the image.
- Source
Disk string The URL of the source disk used to create this image.
- Source
Disk stringEncryption Key Sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- Source
Disk stringId The ID value of the disk used to create this image.
- Source
Image stringId The ID value of the image used to create this image.
- Status string
The status of the image. Possible values are FAILED, PENDING, or READY.
- Archive
Size intBytes The size of the image tar.gz archive stored in Google Cloud Storage in bytes.
- Creation
Timestamp string The creation timestamp in RFC3339 text format.
- Description string
An optional description of this image.
- Disk
Size intGb The size of the image when restored onto a persistent disk in gigabytes.
- Family string
The family name of the image.
- Id string
The provider-assigned unique ID for this managed resource.
- Image
Encryption stringKey Sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- Image
Id string The unique identifier for the image.
- Label
Fingerprint string A fingerprint for the labels being applied to this image.
- Labels map[string]string
A map of labels applied to this image.
- Licenses []string
A list of applicable license URI.
- Name string
The name of the image.
- Project string
- Self
Link string The URI of the image.
- Source
Disk string The URL of the source disk used to create this image.
- Source
Disk stringEncryption Key Sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- Source
Disk stringId The ID value of the disk used to create this image.
- Source
Image stringId The ID value of the image used to create this image.
- Status string
The status of the image. Possible values are FAILED, PENDING, or READY.
- archive
Size numberBytes The size of the image tar.gz archive stored in Google Cloud Storage in bytes.
- creation
Timestamp string The creation timestamp in RFC3339 text format.
- description string
An optional description of this image.
- disk
Size numberGb The size of the image when restored onto a persistent disk in gigabytes.
- family string
The family name of the image.
- id string
The provider-assigned unique ID for this managed resource.
- image
Encryption stringKey Sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- image
Id string The unique identifier for the image.
- label
Fingerprint string A fingerprint for the labels being applied to this image.
- labels {[key: string]: string}
A map of labels applied to this image.
- licenses string[]
A list of applicable license URI.
- name string
The name of the image.
- project string
- self
Link string The URI of the image.
- source
Disk string The URL of the source disk used to create this image.
- source
Disk stringEncryption Key Sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- source
Disk stringId The ID value of the disk used to create this image.
- source
Image stringId The ID value of the image used to create this image.
- status string
The status of the image. Possible values are FAILED, PENDING, or READY.
- archive_
size_ floatbytes The size of the image tar.gz archive stored in Google Cloud Storage in bytes.
- creation_
timestamp str The creation timestamp in RFC3339 text format.
- description str
An optional description of this image.
- disk_
size_ floatgb The size of the image when restored onto a persistent disk in gigabytes.
- family str
The family name of the image.
- id str
The provider-assigned unique ID for this managed resource.
- image_
encryption_ strkey_ sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- image_
id str The unique identifier for the image.
- label_
fingerprint str A fingerprint for the labels being applied to this image.
- labels Dict[str, str]
A map of labels applied to this image.
- licenses List[str]
A list of applicable license URI.
- name str
The name of the image.
- project str
- self_
link str The URI of the image.
- source_
disk str The URL of the source disk used to create this image.
- source_
disk_ strencryption_ key_ sha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this image.
- source_
disk_ strid The ID value of the disk used to create this image.
- source_
image_ strid The ID value of the image used to create this image.
- status str
The status of the image. Possible values are FAILED, PENDING, or READY.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.