创建文件上传任务 | 大装置帮助中心
跳到主要内容

创建文件上传任务

创建数据集特定分支文件上传任务。

Path Parameters
    data_space_id string required

    数据空间ID。

    repo_id string required

    数据集ID。

    branch_id string required

    分支ID。

Request Body required
    task_type enum

    上传任务的类型。

    commit_id string

    新建commitID。

    bucket_name string

    文件的所在的源桶名称。

    oss_endpoint string

    对象存储的endpoint。

    source_path string

    上传的源路径。

    target_path string

    上传文件的远端目的路径。

    commit_msg string

    版本提交信息。

    real_user_info object

    用户信息。

    user_id string

    用户id。

    user_name string

    用户名。

    oss_config object

    对象存储配置。

    bucket_name string

    文件的所在的源桶名称。

    oss_endpoint string

    对象存储的endpoint。

    access_key string

    对象存储的access key。

    secret_key string

    对象存储的secret key。

    virtual_host_style boolean

    aoss需要为false,阿里云oss需要为true。

    disable_ssl boolean

    一些自建的没配置https的对象存储需要为true。

    insecure_skip_verify boolean

    一些自建的配置了https但是没配置证书的需要为true。

    extra_info object

    额外信息。

    related_id string

    关联任务的ID

    auth_info object

    授权信息

    auth_state enum

    授权状态

    authority_type enum

    授权类型

    auth_id string

    授权项目id

Responses

OK


Schema
    name string

    ID.

    metadata object

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

    @type string

    The type of the serialized message.

    property name* any

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

    done boolean

    如果值为“false”,则表示操作仍在进行中。如果为“true”,则操作完成。

    error object

    The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

    code int32

    The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

    message string

    A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

    details object[]

    A list of messages that carry the error details. There is a common set of message types for APIs to use.

  • Array [
  • @type string

    The type of the serialized message.

  • ]
  • response object

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

    @type string

    The type of the serialized message.

    property name* any

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

Loading...