Get roles for an Observability project
Retrieve the custom roles defined for an Observability project.
Path parameters
-
The ID of the project
Format should match the following pattern:
^[a-z0-9]{32}$
.
GET
/api/v1/serverless/projects/observability/{id}/roles
curl \
-X GET https://api.elastic-cloud.com/api/v1/serverless/projects/observability/{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"
}
]
}