Infrastructure/Collects
POSTInfrastructureSince 1.0SynchronousAuth Required
UploadTemplate
Upload a new custom template to the marketplace.
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredHuman-readable name for the new template
Example: My Custom Log Template
descriptionStringRequiredDetailed description of what this template collects
Example: Collects application logs from /var/log/myapp/
categoryStringRequiredCategory for organizing the template in the marketplace
Example: application
configObjectRequiredConfiguration data as key-value pairs
Example: (nested object)
variablesLinkedHashMapRequiredTemplate variables for parameter substitution
Example: (nested object)
Responses
Endpoint
POST/api/v1/collects/templates
/api/v1/collects/templates
Request Example
curl -X POST '{host}/api/v1/collects/templates' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"My Custom Log Template","description":"Collects application logs from /var/log/myapp/","category":"application","config":"(nested object)","variables":"(nested object)"}'
Response Example
200{
"id": "tmpl-nginx-001",
"name": "Nginx Access Log Collector",
"description": "Collects Nginx access logs and parses common log format",
"category": "web",
"author": "zstack",
"downloads": 120,
"rating": 4.5,
"config": null
}Change History
This API has no change history records yet.
