1. Registry
  2. Packages
  3. HTML/CSS to Image
  4. API Docs
  5. getTemplateVersions
Viewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
html-css-to-image logo HTML/CSS to Image
Viewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage

    List versions of an existing template, newest first, up to limit (default 1000). Requires templates:read. The provider follows API pagination automatically and preserves exact integer version identifiers.

    Example Usage

    data "htmlcsstoimage_template_versions" "card" {
      id    = "t-YOUR_TEMPLATE_ID"
      limit = 10
    }
    
    output "available_versions" {
      value = data.htmlcsstoimage_template_versions.card.versions[*].version
    }
    

    Using getTemplateVersions

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTemplateVersions(args: GetTemplateVersionsArgs, opts?: InvokeOptions): Promise<GetTemplateVersionsResult>
    function getTemplateVersionsOutput(args: GetTemplateVersionsOutputArgs, opts?: InvokeOutputOptions): Output<GetTemplateVersionsResult>
    def get_template_versions(id: Optional[str] = None,
                              limit: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetTemplateVersionsResult
    def get_template_versions_output(id: pulumi.Input[Optional[str]] = None,
                              limit: pulumi.Input[Optional[int]] = None,
                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetTemplateVersionsResult]
    func GetTemplateVersions(ctx *Context, args *GetTemplateVersionsArgs, opts ...InvokeOption) (*GetTemplateVersionsResult, error)
    func GetTemplateVersionsOutput(ctx *Context, args *GetTemplateVersionsOutputArgs, opts ...InvokeOption) GetTemplateVersionsResultOutput

    > Note: This function is named GetTemplateVersions in the Go SDK.

    public static class GetTemplateVersions 
    {
        public static Task<GetTemplateVersionsResult> InvokeAsync(GetTemplateVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetTemplateVersionsResult> Invoke(GetTemplateVersionsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTemplateVersionsResult> Invoke(GetTemplateVersionsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTemplateVersionsResult> getTemplateVersions(GetTemplateVersionsArgs args, InvokeOptions options)
    public static Output<GetTemplateVersionsResult> getTemplateVersions(GetTemplateVersionsArgs args, InvokeOptions options)
    public static Output<GetTemplateVersionsResult> getTemplateVersions(GetTemplateVersionsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: html-css-to-image:getTemplateVersions
      arguments:
        # arguments dictionary
    data "html-css-to-image_get_template_versions" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Limit int
    Id string
    Limit int
    id string
    limit number
    id String
    limit Integer
    id string
    limit number
    id str
    limit int
    id String
    limit Number

    getTemplateVersions Result

    The following output properties are available:

    Supporting Types

    GetTemplateVersionsVersion

    CreatedAt string
    Creation timestamp returned by the API.
    Description string
    Template description for this version.
    Name string
    Template display name for this version.
    TemplateType string
    Template type returned by the API.
    UpdatedAt string
    Update timestamp returned by the API.
    Version string
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.
    CreatedAt string
    Creation timestamp returned by the API.
    Description string
    Template description for this version.
    Name string
    Template display name for this version.
    TemplateType string
    Template type returned by the API.
    UpdatedAt string
    Update timestamp returned by the API.
    Version string
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.
    created_at string
    Creation timestamp returned by the API.
    description string
    Template description for this version.
    name string
    Template display name for this version.
    template_type string
    Template type returned by the API.
    updated_at string
    Update timestamp returned by the API.
    version string
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.
    createdAt String
    Creation timestamp returned by the API.
    description String
    Template description for this version.
    name String
    Template display name for this version.
    templateType String
    Template type returned by the API.
    updatedAt String
    Update timestamp returned by the API.
    version String
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.
    createdAt string
    Creation timestamp returned by the API.
    description string
    Template description for this version.
    name string
    Template display name for this version.
    templateType string
    Template type returned by the API.
    updatedAt string
    Update timestamp returned by the API.
    version string
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.
    created_at str
    Creation timestamp returned by the API.
    description str
    Template description for this version.
    name str
    Template display name for this version.
    template_type str
    Template type returned by the API.
    updated_at str
    Update timestamp returned by the API.
    version str
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.
    createdAt String
    Creation timestamp returned by the API.
    description String
    Template description for this version.
    name String
    Template display name for this version.
    templateType String
    Template type returned by the API.
    updatedAt String
    Update timestamp returned by the API.
    version String
    Exact template version identifier. Represented as a decimal string to preserve int64 precision.

    Package Details

    Repository
    html-css-to-image htmlcsstoimage/pulumi-html-css-to-image
    License
    MIT
    Notes
    This Pulumi package is based on the html-css-to-image Terraform Provider.
    html-css-to-image logo HTML/CSS to Image
    Viewing docs for HTML/CSS to Image v0.2.0
    published on Tuesday, Sep 29, 2026 by htmlcsstoimage

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial