balogan
(Brett Logan)
December 27, 2019, 9:08pm
1
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.
{"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
TimV
(Tim Vernum)
December 29, 2019, 11:49pm
2
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"
balogan
(Brett Logan)
December 30, 2019, 8:22pm
3
That's what I needed thanks.
system
(system)
Closed
January 27, 2020, 8:31pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.