Get roles for an Elasticsearch project
Retrieve the custom roles defined for an Elasticsearch project.
Path parameters
-
The ID of the project
Format should match the following pattern:
^[a-z0-9]{32}$
.
GET
/api/v1/serverless/projects/elasticsearch/{id}/roles
curl \
-X GET https://api.elastic-cloud.com/api/v1/serverless/projects/elasticsearch/{id}/roles
Response examples (200)
# Headers
ETag: string
# Payload
{
"additionalProperty1": {
"roles": [
{
"name": "string",
"description": "string"
}
]
},
"additionalProperty2": {
"roles": [
{
"name": "string",
"description": "string"
}
]
}
}
Response examples (404)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}