Show / Hide Table of Contents

Class Template

The properties that define a template. A template is a pre-built Terraform configuration that provisions a set of resources used in a common scenario.

Inheritance
object
Template
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ResourcemanagerService.Models
Assembly: OCI.DotNetSDK.Resourcemanager.dll
Syntax
public class Template

Properties

CategoryId

Declaration
[JsonProperty(PropertyName = "categoryId")]
public string CategoryId { get; set; }
Property Value
Type Description
string

Unique identifier for the category where the template is located. Possible values are 0 (Quick Starts), 1 (Service), 2 (Architecture), and 3 (Private).

CompartmentId

Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment containing this template.

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations": {"CostCenter": "42"}}

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

Brief description of the template.

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

Human-readable name of the template.

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

Unique identifier (OCID) for the template.

Remarks

Required

IsFreeTier

Declaration
[JsonProperty(PropertyName = "isFreeTier")]
public bool? IsFreeTier { get; set; }
Property Value
Type Description
bool?

whether the template will work for free tier tenancy.

LifecycleState

Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Template.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
Template.LifecycleStateEnum?

The current lifecycle state of the template.

LongDescription

Declaration
[JsonProperty(PropertyName = "longDescription")]
public string LongDescription { get; set; }
Property Value
Type Description
string

Detailed description of the template. This description is displayed in the Console page listing templates when the template is expanded. Avoid entering confidential information.

TemplateConfigSource

Declaration
[JsonProperty(PropertyName = "templateConfigSource")]
public TemplateConfigSource TemplateConfigSource { get; set; }
Property Value
Type Description
TemplateConfigSource

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time at which the template was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z

In this article
Back to top