Chaitin Tech device/filescantask/remote/test_connection API

The device/filescantask/remote/test_connection API from Chaitin Tech — 1 operation(s) for device/filescantask/remote/test_connection.

OpenAPI Specification

chaitin-device-filescantask-remote-test-connection-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account device/filescantask/remote/test_connection API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: device/filescantask/remote/test_connection
paths:
  /device/filescantask/remote/test_connection:
    post:
      summary: 远程扫描 - 连通性测试 - 创建任务
      deprecated: false
      description: ''
      tags:
      - device/filescantask/remote/test_connection
      parameters:
      - name: X-CS-Header-App
        in: header
        description: 应用id
        required: true
        example: '{{app}}'
        schema:
          type: string
      - name: X-CS-Header-Company
        in: header
        description: 公司id
        required: true
        example: '{{company_id}}'
        schema:
          type: string
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: true
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: true
        example: string
        schema:
          type: string
      - name: X-CS-Header-Debug
        in: header
        description: ''
        required: true
        example: '{{debug}}'
        schema:
          type: string
      - name: Accept-Language
        in: header
        description: ''
        required: true
        example: zh
        schema:
          type: string
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: true
        example: Asia/Shanghai
        schema:
          type: string
      - name: Content-Type
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                device:
                  type: string
              required:
              - device
            example:
              device: '{{device_id}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      company_id:
                        type: string
                      task_id:
                        type: string
                      category:
                        type: string
                      status:
                        type: string
                      created_at:
                        type: string
                      ack_at:
                        type: 'null'
                      options:
                        type: object
                        properties:
                          storage_config:
                            type: object
                            properties:
                              uid:
                                type: string
                              name:
                                type: string
                              category:
                                type: string
                              storage_options:
                                type: object
                                properties:
                                  endpoint:
                                    type: string
                                  password:
                                    type: string
                                  username:
                                    type: string
                                required:
                                - endpoint
                                - password
                                - username
                              update_by:
                                type: string
                              update_time:
                                type: string
                            required:
                            - uid
                            - name
                            - category
                            - storage_options
                            - update_by
                            - update_time
                          config:
                            type: object
                            properties:
                              max_depth:
                                type: integer
                              max_item:
                                type: integer
                            required:
                            - max_depth
                            - max_item
                        required:
                        - storage_config
                        - config
                      result:
                        type: 'null'
                    required:
                    - company_id
                    - task_id
                    - category
                    - status
                    - created_at
                    - ack_at
                    - options
                    - result
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: 正常
                data:
                  company_id: f7007ddf-efb3-4f54-94a7-b440639a4de7
                  task_id: e2bd91c9-5b49-4e89-9d5e-76b55eaf13d9
                  category: filescan_remote_storage_test_connection
                  status: created
                  created_at: '2025-05-16T05:59:32+00:00'
                  ack_at: null
                  options:
                    storage_config:
                      uid: 4e4f6626-19d9-4a2f-9dc3-7b93fd8e0831
                      name: 修改完包活的sdfsdfsfdsf
                      category: smb
                      storage_options:
                        endpoint: dolore nostrud velit esse
                        password: enim aliqua esse minim
                        username: 邱霞
                      update_by: 'fanhua: fanhua'
                      update_time: '2025-05-16T03:24:01.167267Z'
                    config:
                      max_depth: 10
                      max_item: 100
                  result: null
      security: []