Skip to main content

Create fileset

POST 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/filesets

Creates a fileset in the schema and returns it. An external fileset must have a storage location, while a managed fileset without one gets a location derived from the schema or catalog location property.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

    schema stringrequired

    The name of the schema

Body

    name stringrequired

    The name of the fileset. Can not be empty.

    type stringnullable

    The type of the fileset. The value of type should be EXTERNAL or MANAGED

    comment stringnullable

    The comment of the fileset. Can be empty.

    storageLocation stringnullable

    The location of the fileset. If the storage location of managed fileset is empty, it will \ use the location of namespace. The storage location of external fileset must be set.

    storageLocations

    object

    nullable

    The storage locations of the fileset. If the storage location of managed fileset is empty, \ it will use the location of namespace. The storage locations of external fileset must be set.

    property name* string

    properties

    object

    nullable

    The properties of the fileset. Can be empty.

    property name* string

Responses​

The fileset, with its type, storage locations, comment, properties and audit information.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    fileset

    object

    name stringrequired

    The name of the fileset

    type stringnullable

    The type of the fileset

    comment stringnullable

    The comment of the fileset

    storageLocation stringnullable

    The location of the fileset

    storageLocations

    object

    The fileset's storage locations by location name. A location created without a name is listed as unknown.

    property name* string

    properties

    object

    nullable

    The properties of the fileset

    property name* string

    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

Loading...