Class InstanceTemplate
Represents an Instance Template resource. Google Compute Engine has two Instance Template resources: * Global * Regional You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a regional instance template. To create VMs, managed instance groups, and reservations, you can use either global or regional instance templates. For more information, read Instance Templates.
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class InstanceTemplate : IDirectResponseSchema
Properties
CreationTimestamp
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
An optional description of this resource. Provide this property when you create the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
[Output Only] A unique identifier for this instance template. The server defines this identifier.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
Type | Description |
---|---|
ulong? |
Kind
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters
long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be
a dash.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Properties
The instance properties for this instance template.
Declaration
[JsonProperty("properties")]
public virtual InstanceProperties Properties { get; set; }
Property Value
Type | Description |
---|---|
InstanceProperties |
Region
[Output Only] URL of the region where the instance template resides. Only applicable for regional resources.
Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
Type | Description |
---|---|
string |
SelfLink
[Output Only] The URL for this instance template. The server defines this URL.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceInstance
The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
Declaration
[JsonProperty("sourceInstance")]
public virtual string SourceInstance { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceInstanceParams
The source instance params to use to create this instance template.
Declaration
[JsonProperty("sourceInstanceParams")]
public virtual SourceInstanceParams SourceInstanceParams { get; set; }
Property Value
Type | Description |
---|---|
SourceInstanceParams |