MachineImage

Represents a MachineImage resource. Machine images store all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance.

To get more information about MachineImage, see:

Create a MachineImage Resource

def MachineImage(resource_name, opts=None, description=None, name=None, project=None, source_instance=None, __props__=None);
func NewMachineImage(ctx *Context, name string, args MachineImageArgs, opts ...ResourceOption) (*MachineImage, error)
name string
The unique name of the resource.
args MachineImageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args MachineImageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MachineImageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

MachineImage Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The MachineImage resource accepts the following input properties:

SourceInstance string

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

Description string

A text description of the resource.

Name string

Name of the resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

SourceInstance string

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

Description string

A text description of the resource.

Name string

Name of the resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

sourceInstance string

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

description string

A text description of the resource.

name string

Name of the resource.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source_instance str

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

description str

A text description of the resource.

name str

Name of the resource.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the MachineImage resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SelfLink string

The URI of the created resource.

Id string
The provider-assigned unique ID for this managed resource.
SelfLink string

The URI of the created resource.

id string
The provider-assigned unique ID for this managed resource.
selfLink string

The URI of the created resource.

id str
The provider-assigned unique ID for this managed resource.
self_link str

The URI of the created resource.

Look up an Existing MachineImage Resource

Get an existing MachineImage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: MachineImageState, opts?: CustomResourceOptions): MachineImage
static get(resource_name, id, opts=None, description=None, name=None, project=None, self_link=None, source_instance=None, __props__=None);
func GetMachineImage(ctx *Context, name string, id IDInput, state *MachineImageState, opts ...ResourceOption) (*MachineImage, error)
public static MachineImage Get(string name, Input<string> id, MachineImageState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Description string

A text description of the resource.

Name string

Name of the resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

SelfLink string

The URI of the created resource.

SourceInstance string

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

Description string

A text description of the resource.

Name string

Name of the resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

SelfLink string

The URI of the created resource.

SourceInstance string

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

description string

A text description of the resource.

name string

Name of the resource.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

selfLink string

The URI of the created resource.

sourceInstance string

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

description str

A text description of the resource.

name str

Name of the resource.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

self_link str

The URI of the created resource.

source_instance str

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource.

Package Details

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