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:
- API documentation
- How-to Guides
Create a MachineImage Resource
new MachineImage(name: string, args: MachineImageArgs, opts?: CustomResourceOptions);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)public MachineImage(string name, MachineImageArgs args, CustomResourceOptions? opts = null)- 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:
- Source
Instance 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 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 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:
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): MachineImagestatic 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.
- Self
Link string The URI of the created resource.
- Source
Instance 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.
- Self
Link string The URI of the created resource.
- Source
Instance 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.
- self
Link string The URI of the created resource.
- source
Instance 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-betaTerraform Provider.