list metadata objects for policy
GET/metalakes/:metalake/policies/:policy/objects
list metadata objects for policy
Request
Path Parameters
The name of the metalake
The name of the policy
Responses
- 200
- 400
- 404
- 5xx
Returns the list of metadata objects associated with specified policy
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- PolicyResponse
Schema
Array [
]
Possible values: [0
]
Status code of the response
metadataObjects
object[]
A list of metadata objects
The name of the metadata object, separated by dots
Possible values: [CATALOG
, SCHEMA
, TABLE
, FILESET
, TOPIC
, MODEL
, COLUMN
]
The type of the metadata object
{
"code": 0,
"metadataObjects": [
{
"fullName": "string",
"type": "CATALOG"
}
]
}
{
"code": 0,
"metadataObjects": [
{
"type": "CATALOG",
"fullName": "my_catalog"
},
{
"type": "SCHEMA",
"fullName": "my_catalog.my_schema"
},
{
"type": "TABLE",
"fullName": "my_catalog.my_schema.my_table"
}
]
}
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 policy does not exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchPolicyException
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": "NoSuchPolicyException",
"message": "Failed to operate policy(s) [my_policy] operation [LOAD] under metalake [my_test_metalake], reason [NoSuchPolicyException]",
"stack": [
"org.apache.gravitino.exceptions.NoSuchPolicyException: Policy my_policy does not exist",
"..."
]
}
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- 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": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}