Skip to main content
Version: 0.6.1-incubating

Update metalake

PUT 

http://localhost:8090/api/metalakes/:name

Alters a specified metalake

Request

Path Parameters

    name stringrequired

    The name of the metalake to retrieve

Body

    updates

    object[]

    required

  • Array [

  • oneOf

    @type stringrequired

    Possible values: [rename]

    newName stringrequired

    The new name of the metalake

  • ]

Responses

Returns included metalake object.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    metalake

    object

    Gravitino Metalake is the top-level metadata repository for users. It contains a list of catalogs as sub-level metadata collections. With GravitinoMetaLake, users can list, create, load, alter and drop a catalog with specified identifier.

    name stringrequired

    The name of the Metalake

    comment stringnullable

    A comment about the Metalake

    audit

    object

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

    properties

    object

    Configured string to string map of properties for the Metalake

    property name* string
curl -L -X PUT 'http://localhost:8090/api/metalakes/:name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.gravitino.v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"updates": [
{
"@type": "rename",
"newName": "my_metalake_new"
},
{
"@type": "updateComment",
"newComment": "This is my new metalake comment"
},
{
"@type": "setProperty",
"property": "key1",
"value": "value1_new"
},
{
"@type": "removeProperty",
"property": "key2"
}
]
}'
Request Collapse all
Base URL
http://localhost:8090/api
Auth
Parameters
— pathrequired
Body
{
  "updates": [
    {
      "@type": "rename",
      "newName": "my_metalake_new"
    },
    {
      "@type": "updateComment",
      "newComment": "This is my new metalake comment"
    },
    {
      "@type": "setProperty",
      "property": "key1",
      "value": "value1_new"
    },
    {
      "@type": "removeProperty",
      "property": "key2"
    }
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!