Upload stack packedit
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.
Requestedit
POST /api/v1/stack/versions
Form Parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
Y |
Zip file that contains one or multiple stack configurations |
Responsesedit
-
200
-
(
StackVersionArchiveProcessingResult
) The Elastic Stack pack successfully processed. -
400
-
(
BasicFailedReply
) There is an error in the file. Choose a different file, then try again.
To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.
Request exampleedit
curl -XPOST {{hostname}}/api/v1/stack/versions \ -u $CLOUD_USER:$CLOUD_KEY