Get owner
GET/metalakes/:metalake/owners/:metadataObjectType/:metadataObjectFullName
Returns the owner of a metadata object, with the owner's name and whether it is a user or a group. When the object has no owner, the response has no owner field.
Sign in with a bearer token or a local user's password; see Authentication.
Request
Path Parameters
The name of the metalake
Possible values: [METALAKE, CATALOG, SCHEMA, FILESET, TABLE, VIEW, TOPIC, COLUMN, ROLE, MODEL, TAG, POLICY, JOB, JOB_TEMPLATE, FUNCTION]
The type of the metadata object. The owner endpoints accept every metadata object type. Gravitino records an owner automatically when it creates any of these objects except a column, so a column has an owner only after one is set explicitly. The server matches the value case-insensitively.
The full name of the metadata object
Responses
- 200
- 404
- 5xx
The owner's name and whether it is a user or a group. The owner field is absent when the object has no owner.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- OwnerResponse
Schema
Possible values: [0]
Status code of the response
owner
object
The name of the owner
Possible values: [user, group]
The type of the owner. Responses return the value in lowercase; requests accept any case.
{
"code": 0,
"owner": {
"name": "string",
"type": "user"
}
}
{
"code": 0,
"owner": {
"name": "user1",
"type": "user"
}
}
The metalake or the metadata object does not exist.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchMetadataObjectException
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1003,
"type": "NoSuchMetadataObjectException",
"message": "Metadata object does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchUserException: Metadata object does not exist",
"..."
]
}
The server hit an internal error that the client usually cannot fix by changing the request.
- 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
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}