Upload stack pack
Creates or updates an Elastic Stack pack and template.
The endpoint supports multipart/form-data
requests, as well as application/zip
and application/octet-stream
requests with a binary body. The maximum size of the payload is 1Mb.
When the archive contains an Elastic Stack configuration that is available through the API, the configuration and template are overwritten.
POST
/stack/versions
curl \
-X POST https://{{hostname}}/api/v1/stack/versions
Response examples (200)
{
"stacks": [
{
"version": "string",
"template": {
"template_version": "string",
"hashes": [
{
"path": "string",
"hash": "string"
}
]
},
"elasticsearch": {
"docker_image": "string",
"plugins": [
"string"
],
"default_plugins": [
"string"
],
"blacklist": [
"string"
],
"node_types": [
{
"node_type": "string",
"name": "string",
"description": "string",
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"mandatory": true
}
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
]
},
"kibana": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
]
},
"apm": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
]
},
"appsearch": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"node_types": [
{
"node_type": "string",
"name": "string",
"description": "string",
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"mandatory": true
}
]
},
"enterprise_search": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"node_types": [
{
"node_type": "string",
"name": "string",
"description": "string",
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"mandatory": true
}
]
},
"metadata": {
"notes": "string",
"pre_release": true,
"min_platform_version": "string",
"min_wire_compatibility_version": "string",
"min_index_compatibility_version": "string",
"schema_version": 42
},
"deleted": true,
"upgradable_to": [
"string"
],
"min_upgradable_from": "6.7.0",
"whitelisted": true,
"accessible": true
}
],
"errors": [
{
"stack_version": "string",
"errors": {
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
}
]
}
Response examples (400)
# Headers
x-cloud-error-codes: stackpack.bad_archive
# Payload
{
"stacks": [
{
"version": "string",
"template": {
"template_version": "string",
"hashes": [
{
"path": "string",
"hash": "string"
}
]
},
"elasticsearch": {
"docker_image": "string",
"plugins": [
"string"
],
"default_plugins": [
"string"
],
"blacklist": [
"string"
],
"node_types": [
{
"node_type": "string",
"name": "string",
"description": "string",
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"mandatory": true
}
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
]
},
"kibana": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
]
},
"apm": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
]
},
"appsearch": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"node_types": [
{
"node_type": "string",
"name": "string",
"description": "string",
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"mandatory": true
}
]
},
"enterprise_search": {
"version": "string",
"docker_image": "string",
"blacklist": [
"string"
],
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"node_types": [
{
"node_type": "string",
"name": "string",
"description": "string",
"settings": {},
"capacity_constraints": {
"min": 42,
"max": 42
},
"compatible_node_types": [
"string"
],
"mandatory": true
}
]
},
"metadata": {
"notes": "string",
"pre_release": true,
"min_platform_version": "string",
"min_wire_compatibility_version": "string",
"min_index_compatibility_version": "string",
"schema_version": 42
},
"deleted": true,
"upgradable_to": [
"string"
],
"min_upgradable_from": "6.7.0",
"whitelisted": true,
"accessible": true
}
],
"errors": [
{
"stack_version": "string",
"errors": {
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
}
]
}