Upload stack pack

edit

Adds a new or updates an existing Elastic Stack pack and its template. Besides multipart/form-data requests, the endpoint supports application/zip and application/octet-stream requests with a binary body. Maximum size of the payload is 1Mb. If the archive contains a stack configuration that is already available through the API, then the existing configuration and its template will be overwritten.

Request

edit

POST /api/v1/stack/versions

Form Parameters

edit
Name Type Required Description

file

file

Y

Zip file that contains one or multiple stack configurations

Responses

edit
200

(StackVersionArchiveProcessingResult) The Stack Pack was processed successfully

400

(BasicFailedReply) Bad archive or some unexpected error occurred

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request example

edit
curl -XPOST {{hostname}}/api/v1/stack/versions \
-u $CLOUD_USER:$CLOUD_KEY