List role names
GET/metalakes/:metalake/roles
List role names
Request
Path Parameters
metalake stringrequired
The name of the metalake
Responses
- 200
- 400
- 404
Returns the list of role name
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NameListResponse
Schema
code int32
Possible values: [0
]
Status code of the response
names string[]
{
"code": 0,
"names": [
"string"
]
}
{
"code": 0,
"names": [
"user1",
"user2"
]
}
Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
code integerrequired
Possible values: >= 1000
and <= 1100
HTTP response code
type stringrequired
Internal type definition of the error
message stringrequired
A human-readable message
stack string[]
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "BadRequestException",
"message": "Malformed request"
}
Not Found - The specified metalake does not exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchMetalakeException
Schema
code integerrequired
Possible values: >= 1000
and <= 1100
HTTP response code
type stringrequired
Internal type definition of the error
message stringrequired
A human-readable message
stack string[]
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "NoSuchMetalakeException",
"message": "Failed to operate metalake(s) [test] operation [LOAD], reason [NoSuchMetalakeException]",
"stack": [
"org.apache.gravitino.exceptions.NoSuchMetalakeException: Metalake test does not exist",
"..."
]
}
Loading...