Skip to content

TemplatesProps

Properties for defining a Templates.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-oos-templates

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkoos/datasource"
&datasource.TemplatesProps {
    Category: interface{},
    CreatedBy: interface{},
    CreatedDateAfter: interface{},
    CreatedDateBefore: interface{},
    HasTrigger: interface{},
    IsExample: interface{},
    IsFavorite: interface{},
    RefreshOptions: interface{},
    ResourceGroupId: interface{},
    ShareType: interface{},
    SortField: interface{},
    SortOrder: interface{},
    Tags: *map[string]interface{},
    TemplateFormat: interface{},
    TemplateName: interface{},
    TemplateType: interface{},
}

Properties

Name Type Description
Category interface{} Property category: The type of the template.
CreatedBy interface{} Property createdBy: The creator of the template.
CreatedDateAfter interface{} Property createdDateAfter: Specifies to query the template that is created at or later than the specified time.The value must be in the YYYY-MM-DDThh:mm:ssZ format.
CreatedDateBefore interface{} Property createdDateBefore: Specifies to query the template that is created at or before the specified time.The value must be in the YYYY-MM-DDThh:mm::ssZ format.
HasTrigger interface{} Property hasTrigger: Specifies whether to query the template that is configured with a trigger.
IsExample interface{} Property isExample: Specifies whether the template is an example template.
IsFavorite interface{} Property isFavorite: Specifies whether the template is added to favorites.
RefreshOptions interface{} Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group.
ShareType interface{} Property shareType: The share type of the template.
SortField interface{} Property sortField: The field that is used to sort the templates to be queried.
SortOrder interface{} Property sortOrder: The order in which you want to sort the results.
Tags *map[string]interface{} Property tags: The tag keys and values.
TemplateFormat interface{} Property templateFormat: The format of the template.
TemplateName interface{} Property templateName: The name of the template.
TemplateType interface{} Property templateType: The type of the template.

CategoryOptional

Category interface{}
  • Type: interface{}

Property category: The type of the template.

Valid values include TimerTrigger, EventTrigger, AlarmTrigger, and Other.


CreatedByOptional

CreatedBy interface{}
  • Type: interface{}

Property createdBy: The creator of the template.


CreatedDateAfterOptional

CreatedDateAfter interface{}
  • Type: interface{}

Property createdDateAfter: Specifies to query the template that is created at or later than the specified time.The value must be in the YYYY-MM-DDThh:mm:ssZ format.


CreatedDateBeforeOptional

CreatedDateBefore interface{}
  • Type: interface{}

Property createdDateBefore: Specifies to query the template that is created at or before the specified time.The value must be in the YYYY-MM-DDThh:mm::ssZ format.


HasTriggerOptional

HasTrigger interface{}
  • Type: interface{}

Property hasTrigger: Specifies whether to query the template that is configured with a trigger.


IsExampleOptional

IsExample interface{}
  • Type: interface{}

Property isExample: Specifies whether the template is an example template.


IsFavoriteOptional

IsFavorite interface{}
  • Type: interface{}

Property isFavorite: Specifies whether the template is added to favorites.


RefreshOptionsOptional

RefreshOptions interface{}
  • Type: interface{}

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group.


ShareTypeOptional

ShareType interface{}
  • Type: interface{}

Property shareType: The share type of the template.

Valid values: Public Private


SortFieldOptional

SortField interface{}
  • Type: interface{}

Property sortField: The field that is used to sort the templates to be queried.

Valid values: TotalExecutionCount (default): The system sorts the returned templates based on the total number of times that the templates are used. Popularity: The system sorts the returned templates based on the popularity of the templates. TemplateName: The system sorts the returned templates based on the names of the templates. CreatedDate: The system sorts the returned templates based on the points in time when the templates are created. UpdatedDate: The system sorts the returned templates based on the points in time when the templates are updated.


SortOrderOptional

SortOrder interface{}
  • Type: interface{}

Property sortOrder: The order in which you want to sort the results.

Valid values: Ascending: ascending order. Descending: descending order. This is the default value.


TagsOptional

Tags *map[string]interface{}
  • Type: *map[string]interface{}

Property tags: The tag keys and values.

The number of key-value pairs ranges from 1 to 20. Example: {"k1":"k2","k2":"v2"}


TemplateFormatOptional

TemplateFormat interface{}
  • Type: interface{}

Property templateFormat: The format of the template.

Valid values: JSON YAML


TemplateNameOptional

TemplateName interface{}
  • Type: interface{}

Property templateName: The name of the template.


TemplateTypeOptional

TemplateType interface{}
  • Type: interface{}

Property templateType: The type of the template.

Valid values: Automation: the template for automated tasks. State: the template for configuration inventories. Package: the template for software packages.


Protocols