This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getImage.go
48 lines (43 loc) · 1.73 KB
/
getImage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20200601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupImage(ctx *pulumi.Context, args *LookupImageArgs, opts ...pulumi.InvokeOption) (*LookupImageResult, error) {
var rv LookupImageResult
err := ctx.Invoke("azure-nextgen:compute/v20200601:getImage", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupImageArgs struct {
// The expand expression to apply on the operation.
Expand *string `pulumi:"expand"`
// The name of the image.
ImageName string `pulumi:"imageName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
type LookupImageResult struct {
// Gets the HyperVGenerationType of the VirtualMachine created from the image
HyperVGeneration *string `pulumi:"hyperVGeneration"`
// Resource Id
Id string `pulumi:"id"`
// Resource location
Location string `pulumi:"location"`
// Resource name
Name string `pulumi:"name"`
// The provisioning state.
ProvisioningState string `pulumi:"provisioningState"`
// The source virtual machine from which Image is created.
SourceVirtualMachine *SubResourceResponse `pulumi:"sourceVirtualMachine"`
// Specifies the storage settings for the virtual machine disks.
StorageProfile *ImageStorageProfileResponse `pulumi:"storageProfile"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// Resource type
Type string `pulumi:"type"`
}