List role names for metadata object
GET/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/roles
List role names for metadata object
Request
Path Parameters
The name of the metalake
Possible values: [CATALOG
, SCHEMA
, TABLE
, COLUMN
, FILESET
, TOPIC
, ROLE
, METALAKE
]
The type of the metadata object
The full name of the metadata object
Responses
- 200
- 400
- 404
Returns the list of role name for the metadata object
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NameListResponse
Schema
Possible values: [0
]
Status code of the response
{
"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
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"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
- NoSuchMetadataObjectException
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"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",
"..."
]
}
{
"code": 1003,
"type": "NoSuchMetadataObjectException",
"message": "Metadata object does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchMetadataObjectException: Metadata object does not exist",
"..."
]
}