set metalake in-use
PATCH/metalakes/:name
Set a specified metalake in-use or not in-use
Request
Path Parameters
name stringrequired
The name of the metalake to retrieve
- application/json
Body
inUse booleanrequired
The in-use status of the metalake 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": "NoSuchMetalakeException",
"message": "Failed to operate metalake(s) [test] operation [LOAD], reason [NoSuchMetalakeException]",
"stack": [
"org.apache.gravitino.exceptions.NoSuchMetalakeException: 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...