curl --request GET \
--url https://use.hoop.dev/api/plugins/runbooks/templates{
"commit": "03c25fd64c74712c71798250d256d4b859dd5853",
"commit_author": "John Wick <[email protected]>",
"commit_message": "runbook update",
"items": [
{
"connections": [
"pgdemo",
"bash"
],
"error": "<string>",
"metadata": {},
"name": "ops/update-user.runbook.sh"
}
]
}List all Runbooks
curl --request GET \
--url https://use.hoop.dev/api/plugins/runbooks/templates{
"commit": "03c25fd64c74712c71798250d256d4b859dd5853",
"commit_author": "John Wick <[email protected]>",
"commit_message": "runbook update",
"items": [
{
"connections": [
"pgdemo",
"bash"
],
"error": "<string>",
"metadata": {},
"name": "ops/update-user.runbook.sh"
}
]
}OK
The commit sha
"03c25fd64c74712c71798250d256d4b859dd5853"
The commit author
"John Wick <[email protected]>"
The commit message
"runbook update"
Show child attributes
The connections that could be used for this runbook
["pgdemo", "bash"]The error description if it failed to render
Metadata contains the attributes parsed from a template. Payload Example:
{
"customer_id" : {
"description": "the id of the customer",
"required": true,
"type": "text",
"default": "Default value to use"
},
"country": {
"description": "the country code US; BR, etc",
"required": false,
"type": "select",
"options": ["US", "BR"]
}
}By default it will have the attributes description="", required=false and type="text".
Show child attributes
File path relative to repository root containing runbook file in the following format: /path/to/file.runbook.<ext>
"ops/update-user.runbook.sh"
Was this page helpful?