Skip to main content
Infrastructure/Collects

ListTemplates

List all available collect configuration templates from the marketplace.

GET/api/v1/collects/templates

Operation ID

ListTemplates

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

Query Parameters

  • category
    String

    Filter templates by category; empty returns all categories Filter templates by category; empty returns all categories

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • items
    List

    Collection of result items

    Example: (nested array)

    • id
      String

      Unique identifier of the template

      Example: tmpl-nginx-001

    • name
      String

      Human-readable name of the template

      Example: Nginx Access Log Collector

    • description
      String

      Description of what this template collects and how it works

      Example: Collects Nginx access logs and parses common log format

    • category
      String

      Category grouping for the template (e.g. web, database, os)

      Example: web

    • author
      String

      Author or organization that created this template

      Example: zstack

    • downloads
      Integer

      Number of times this template has been downloaded

      Example: 120

    • rating
      Long

      Average user rating of this template on a scale of 1 to 5

      Example: 4.5

    • config
      Object

      Configuration data as key-value pairs

      Example: (nested object)

    • variables
      LinkedHashMap

      Template variables for parameter substitution

      Example: (nested object)

    • createDate
      String

      Create date

      Example: 2026-01-15T08:00:00Z

  • total
    Integer

    Total number of matching templates

    Example: 15

  • limit
    Integer

    Maximum number of templates returned per page

    Example: 20

  • offset
    Integer

    Number of templates skipped from the start

    Example: 20