download_url
, http or https URL, where the extension is currently hosted. This will result in extension being copied to elastic repository.POST
endpoint and then use PUT
to upload the extension file. Leave the download_url
unspecified in this case.curl --location --request POST 'http://127.0.0.1/deployments/extensions' \
--header 'Authorization: ApiKey {{EC_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": "string",
"extension_type": "plugin",
"name": "string",
"download_url": "string",
"description": "string"
}'
{
"description": "string",
"url": "string",
"extension_type": "plugin",
"download_url": "string",
"deployments": [
"string"
],
"version": "string",
"file_metadata": {
"url": "http://example.com",
"last_modified_date": "2019-08-24T14:15:22Z",
"size": 0
},
"id": "string",
"name": "string"
}