# How to access the X-Pack API on hosted Elastic Cloud?

**URL:** <https://discuss.elastic.co/t/how-to-access-the-x-pack-api-on-hosted-elastic-cloud/129192>\
**Category:** Elasticsearch\
**Created:** [April 23, 2018, 10:23pm UTC](https://discuss.elastic.co/t/how-to-access-the-x-pack-api-on-hosted-elastic-cloud/129192 "2018-04-23T22:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Klebanoff](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@David\_Klebanoff](https://discuss.elastic.co/u/David_Klebanoff)\
**Post date:** [April 23, 2018, 10:23pm UTC](https://discuss.elastic.co/t/how-to-access-the-x-pack-api-on-hosted-elastic-cloud/129192/1 "2018-04-23T22:23:32Z")

</div>

I've attempted to get all roles available via this url:

[https://XXXXXXXXXXX.us-east-1.aws.found.io:9243/\_xpack/security/role](https://XXXXXXXXXXX.us-east-1.aws.found.io:9243/_xpack/security/role)

but I'm receiving a 404 - Not Found. I suspect I may be trying to access the wrong URL, but I'm not sure what the correct URL is. Any assistance would be appreciated.

---

<div class="post-metadata">

**Author:** ![David\_Klebanoff](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@David\_Klebanoff](https://discuss.elastic.co/u/David_Klebanoff)\
**Post date:** [April 23, 2018, 10:29pm UTC](https://discuss.elastic.co/t/how-to-access-the-x-pack-api-on-hosted-elastic-cloud/129192/2 "2018-04-23T22:29:45Z")

</div>

Nevermind, it seemed to be an authentication issue. Not sure why I was receiving a 404 instead of 403, but I'm able to access X-Pack now.

---

<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:** [May 21, 2018, 10:29pm UTC](https://discuss.elastic.co/t/how-to-access-the-x-pack-api-on-hosted-elastic-cloud/129192/3 "2018-05-21T22:29:53Z")

</div>

Closed on May 21, 2018, 10:29pm UTC

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