Class InstanceFromTemplate
Manages a VM instance resource within GCE. For more information see
the official documentation
and
API.
This resource is specifically to create a compute instance from a given
source_instance_template. To create an instance without a template, use the
gcp.compute.Instance resource.
Inheritance
System.Object
InstanceFromTemplate
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Pulumi.Gcp.dll
Syntax
public class InstanceFromTemplate : CustomResource
Constructors
View Source
InstanceFromTemplate(String, InstanceFromTemplateArgs, CustomResourceOptions)
Create a InstanceFromTemplate resource with the given unique name, arguments, and options.
Declaration
public InstanceFromTemplate(string name, InstanceFromTemplateArgs args, CustomResourceOptions options = null)
Parameters
| Type |
Name |
Description |
| System.String |
name |
The unique name of the resource
|
| InstanceFromTemplateArgs |
args |
The arguments used to populate this resource's properties
|
| CustomResourceOptions |
options |
A bag of options that control this resource's behavior
|
Properties
View Source
AllowStoppingForUpdate
Declaration
public Output<bool> AllowStoppingForUpdate { get; }
Property Value
| Type |
Description |
| Output<System.Boolean> |
|
View Source
AttachedDisks
Declaration
public Output<ImmutableArray<InstanceFromTemplateAttachedDisk>> AttachedDisks { get; }
Property Value
View Source
BootDisk
Declaration
public Output<InstanceFromTemplateBootDisk> BootDisk { get; }
Property Value
View Source
CanIpForward
Declaration
public Output<bool> CanIpForward { get; }
Property Value
| Type |
Description |
| Output<System.Boolean> |
|
View Source
Declaration
public Output<string> CpuPlatform { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
CurrentStatus
Declaration
public Output<string> CurrentStatus { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
DeletionProtection
Declaration
public Output<bool> DeletionProtection { get; }
Property Value
| Type |
Description |
| Output<System.Boolean> |
|
View Source
Description
Declaration
public Output<string> Description { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
DesiredStatus
Declaration
public Output<string> DesiredStatus { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
EnableDisplay
Declaration
public Output<bool> EnableDisplay { get; }
Property Value
| Type |
Description |
| Output<System.Boolean> |
|
View Source
GuestAccelerators
Declaration
public Output<ImmutableArray<InstanceFromTemplateGuestAccelerator>> GuestAccelerators { get; }
Property Value
View Source
Hostname
Declaration
public Output<string> Hostname { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
InstanceId
Declaration
public Output<string> InstanceId { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
LabelFingerprint
Declaration
public Output<string> LabelFingerprint { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Labels
Declaration
public Output<ImmutableDictionary<string, string>> Labels { get; }
Property Value
| Type |
Description |
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
|
View Source
MachineType
Declaration
public Output<string> MachineType { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Declaration
public Output<ImmutableDictionary<string, string>> Metadata { get; }
Property Value
| Type |
Description |
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
|
View Source
Declaration
public Output<string> MetadataFingerprint { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Declaration
public Output<string> MetadataStartupScript { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Declaration
public Output<string> MinCpuPlatform { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Name
A unique name for the resource, required by GCE.
Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
NetworkInterfaces
Declaration
public Output<ImmutableArray<InstanceFromTemplateNetworkInterface>> NetworkInterfaces { get; }
Property Value
View Source
Project
Declaration
public Output<string> Project { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
ResourcePolicies
Declaration
public Output<string> ResourcePolicies { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Scheduling
Declaration
public Output<InstanceFromTemplateScheduling> Scheduling { get; }
Property Value
View Source
ScratchDisks
Declaration
public Output<ImmutableArray<InstanceFromTemplateScratchDisk>> ScratchDisks { get; }
Property Value
View Source
SelfLink
Declaration
public Output<string> SelfLink { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
ServiceAccount
Declaration
public Output<InstanceFromTemplateServiceAccount> ServiceAccount { get; }
Property Value
View Source
ShieldedInstanceConfig
Declaration
public Output<InstanceFromTemplateShieldedInstanceConfig> ShieldedInstanceConfig { get; }
Property Value
View Source
SourceInstanceTemplate
Name or self link of an instance
template to create the instance based on.
Declaration
public Output<string> SourceInstanceTemplate { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
| Type |
Description |
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
|
View Source
Declaration
public Output<string> TagsFingerprint { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
View Source
Zone
The zone that the machine should be created in. If not
set, the provider zone is used.
Declaration
public Output<string> Zone { get; }
Property Value
| Type |
Description |
| Output<System.String> |
|
Methods
View Source
Get an existing InstanceFromTemplate resource's state with the given name, ID, and optional extra
properties used to qualify the lookup.
Declaration
public static InstanceFromTemplate Get(string name, Input<string> id, InstanceFromTemplateState state = null, CustomResourceOptions options = null)
Parameters
| Type |
Name |
Description |
| System.String |
name |
The unique name of the resulting resource.
|
| Input<System.String> |
id |
The unique provider ID of the resource to lookup.
|
| InstanceFromTemplateState |
state |
Any extra arguments used during the lookup.
|
| CustomResourceOptions |
options |
A bag of options that control this resource's behavior
|
Returns