set catalog in-use
PATCH/metalakes/:metalake/catalogs/:catalog
Set a specific catalog in-use or not in-use
Request
Path Parameters
metalake stringrequired
The name of the metalake
catalog stringrequired
The name of the catalog
- application/json
Body
inUse booleanrequired
The in-use status of the catalog to set
Responses
- 200
- 404
- 500
Represents a response for a base operation
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
code int32required
Possible values: [0
]
Status code of the response
{
"code": 0
}
{
"code": 0
}
Not Found - The 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": "NoSuchCatalogException",
"message": "Failed to operate catalog(s) [test] operation [LOAD] under metalake [my_test_metalake], reason [NoSuchCatalogException]",
"stack": [
"org.apache.gravitino.exceptions.NoSuchCatalogException: Catalog my_test_metalake.test does not exist",
"..."
]
}
Internal server error. It is possible that the server encountered a storage issue.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
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"
]
}
Loading...