Show / Hide Table of Contents

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
Resource
CustomResource
InstanceFromTemplate
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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()
Namespace: Pulumi.Gcp.Compute
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
Type Description
Output<System.Collections.Immutable.ImmutableArray<InstanceFromTemplateAttachedDisk>>
View Source

BootDisk

Declaration
public Output<InstanceFromTemplateBootDisk> BootDisk { get; }
Property Value
Type Description
Output<InstanceFromTemplateBootDisk>
View Source

CanIpForward

Declaration
public Output<bool> CanIpForward { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

CpuPlatform

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
Type Description
Output<System.Collections.Immutable.ImmutableArray<InstanceFromTemplateGuestAccelerator>>
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

Metadata

Declaration
public Output<ImmutableDictionary<string, string>> Metadata { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

MetadataFingerprint

Declaration
public Output<string> MetadataFingerprint { get; }
Property Value
Type Description
Output<System.String>
View Source

MetadataStartupScript

Declaration
public Output<string> MetadataStartupScript { get; }
Property Value
Type Description
Output<System.String>
View Source

MinCpuPlatform

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
Type Description
Output<System.Collections.Immutable.ImmutableArray<InstanceFromTemplateNetworkInterface>>
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
Type Description
Output<InstanceFromTemplateScheduling>
View Source

ScratchDisks

Declaration
public Output<ImmutableArray<InstanceFromTemplateScratchDisk>> ScratchDisks { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<InstanceFromTemplateScratchDisk>>
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
Type Description
Output<InstanceFromTemplateServiceAccount>
View Source

ShieldedInstanceConfig

Declaration
public Output<InstanceFromTemplateShieldedInstanceConfig> ShieldedInstanceConfig { get; }
Property Value
Type Description
Output<InstanceFromTemplateShieldedInstanceConfig>
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

Tags

Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

TagsFingerprint

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(String, Input<String>, InstanceFromTemplateState, CustomResourceOptions)

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
Type Description
InstanceFromTemplate
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.