# Premium X-Pack license without API

**URL:** https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464
**Category:** Elasticsearch
**Created:** [January 23, 2019, 5:42pm UTC](https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464 "2019-01-23T17:42:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![theringisbupkis](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@theringisbupkis](https://discuss.elastic.co/u/theringisbupkis)
#### Post date: [January 23, 2019, 5:42pm UTC](https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464/1 "2019-01-23T17:42:39Z")

</div>

**Background**  
Im on ES v6.3.2  
I have platinum license, and I know how to upgrade to it via licensing API

**Pertaining to question**  
From the docs at [elastic.co](http://elastic.co) ([docs](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/license-settings.html)):

> You can configure this licensing setting in the `elasticsearch.yml` file ...
> 
> `xpack.license.self_generated.type`
> 
> Set to `basic` (default) to enable basic X-Pack features.

**Question**  
I want to set the license to the platinum license that I have upon starting up Elasticsearch. Can I add something in Elasticsearch.yml file to do this ("xpack.license: @license.json" or something)?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 24, 2019, 1:06am UTC](https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464/2 "2019-01-24T01:06:10Z")

</div>

If you have a Platinum license you can always contact support for any questions you have 🙂

Have you tried the steps in here [https://www.elastic.co/guide/en/elasticsearch/reference/6.5/update-license.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/update-license.html)? What problems are you having with them?

---

<div class="post-metadata">

### Author: ![theringisbupkis](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@theringisbupkis](https://discuss.elastic.co/u/theringisbupkis)
#### Post date: [January 24, 2019, 12:12pm UTC](https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464/3 "2019-01-24T12:12:51Z")

</div>

Well these steps upgrade the license using the license API. And I wanted to configure license settings before starting up Elasticsearch service for the purpose of automated ES cluster creation. Yes, I can use the API. I just thought that there might/should be some way to include the license as a setting before starting the Elastic service.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 24, 2019, 10:07pm UTC](https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464/4 "2019-01-24T22:07:31Z")

</div>

There's not sorry.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 21, 2019, 10:07pm UTC](https://discuss.elastic.co/t/premium-x-pack-license-without-api/165464/5 "2019-02-21T22:07:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
