Role API Usage ECE 2.4.3

I'm having trouble using the API examples for ECE when viewing/creating roles found in this link https://www.elastic.co/guide/en/elasticsearch/reference/7.5/security-api-get-role.html

To display all roles this should be all I need to use according to the last example in the link above, but the error below is all I can get to return.

curl -X GET "http://127.0.0.1:9200/_security/role"

{"ok":false,"message":"Unknown deployment."}

I've tried experimenting putting the endpoint in the command in different places with no luck.

ECE 2.4.3
Elasticsearch: 7.5.0

You need to connect to the ECE managed endpoint for your cluster.

That endpoint will have a UUID deployment ID at the beginning, and whatever custom domain you are using for ECE.

You can get that URL from the ECE console.

Then you want something in the form of:

curl -X GET -u elastic "https://abc0101a222a11bb0c22200abcabc111.ece.example.com:9200/_security/role"

That's what I needed thanks.

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