Chaitin Tech Device API

The Device API from Chaitin Tech — 4 operation(s) for device.

OpenAPI Specification

chaitin-device-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account Device API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: Device
paths:
  /device/filescantask/{task_id}/instance/{instance_id}/results/list:
    post:
      summary: 结果列表
      deprecated: false
      description: ''
      tags:
      - Device
      parameters:
      - name: task_id
        in: path
        description: ''
        required: true
        example: string
        schema:
          type: string
      - name: instance_id
        in: path
        description: ''
        required: true
        example: string
        schema:
          type: string
      - name: page
        in: query
        description: ''
        required: false
        example: '1'
        schema:
          type: string
      - name: limit
        in: query
        description: ''
        required: false
        example: '10'
        schema:
          type: string
      - name: search
        in: query
        description: ''
        required: false
        example: '14603518636'
        schema:
          type: string
      - 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: Authorization
        in: header
        description: 授权
        required: true
        example: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
        schema:
          type: string
          default: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: false
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: false
        example: ''
        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: false
        example: zh
        schema:
          type: string
          default: zh
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: false
        example: Asia/Shanghai
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                task_id:
                  type: string
                instance_id:
                  type: string
                search:
                  type: string
                queries:
                  type: array
                  items:
                    type: string
              required:
              - task_id
              - instance_id
              - search
              - queries
            example:
              task_id: f5c7f5d3-afaf-4752-8224-646007060c13
              instance_id: 74bc37d5-a11f-490f-b58c-e47bb079835e
              search: '14603518636'
              queries: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []
  /device/filescantask/{task_id}/instance/{instance_id}/device/list:
    post:
      summary: 设备列表
      deprecated: false
      description: ''
      tags:
      - Device
      parameters:
      - name: task_id
        in: path
        description: ''
        required: true
        example: 1b5dd583-9a20-4c16-b72e-9199f9d5bd89
        schema:
          type: string
      - name: instance_id
        in: path
        description: ''
        required: true
        example: 132b270c-1d1f-4bd6-9687-2f61f68392cd
        schema:
          type: string
      - 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: Authorization
        in: header
        description: 授权
        required: true
        example: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
        schema:
          type: string
          default: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: false
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: false
        example: ''
        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: false
        example: zh
        schema:
          type: string
          default: zh
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: false
        example: Asia/Shanghai
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []
  /v1/device/filescantask/remote/{task_id}/instance/{instance_id}/results/list:
    post:
      summary: 结果列表
      deprecated: false
      description: ''
      tags:
      - Device
      parameters:
      - name: task_id
        in: path
        description: ''
        required: true
        example: ''
        schema:
          type: string
      - name: instance_id
        in: path
        description: ''
        required: true
        example: ''
        schema:
          type: string
      - name: page
        in: query
        description: ''
        required: false
        example: '1'
        schema:
          type: string
      - name: limit
        in: query
        description: ''
        required: false
        example: '10'
        schema:
          type: string
      - name: search
        in: query
        description: ''
        required: false
        example: '14603518636'
        schema:
          type: string
      - 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: Authorization
        in: header
        description: 授权
        required: true
        example: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
        schema:
          type: string
          default: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: false
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: false
        example: ''
        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: false
        example: zh
        schema:
          type: string
          default: zh
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: false
        example: Asia/Shanghai
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                task_id:
                  type: string
                instance_id:
                  type: string
                search:
                  type: string
                queries:
                  type: array
                  items:
                    type: string
              required:
              - task_id
              - instance_id
              - search
              - queries
            example:
              task_id: f5c7f5d3-afaf-4752-8224-646007060c13
              instance_id: 74bc37d5-a11f-490f-b58c-e47bb079835e
              search: '14603518636'
              queries: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []
  /device/filescantask/{task_id}/action/remove:
    post:
      summary: 删除资产扫描任务
      deprecated: false
      description: ''
      tags:
      - Device
      parameters:
      - name: task_id
        in: path
        description: ''
        required: true
        example: f397ad6d-874e-458a-985d-06c781237bfc
        schema:
          type: string
      - name: delete_logs
        in: query
        description: ''
        required: false
        example: 'false'
        schema:
          type: string
      - 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: Authorization
        in: header
        description: 授权
        required: true
        example: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
        schema:
          type: string
          default: SERVAL Y3liZXJzZXJ2YWw6YUthOGxOYXBhMGdpRVFBcEVVdXZZT0FNYlVSdlkwdVZsS2JNRVF3SkVVNUBhTzVwbEwyVkUwd0psS1dORVV3OGxMOXJZMGdRYU5iSGFPOXpZT2JNbEFTUw==
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: false
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: false
        example: ''
        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: false
        example: zh
        schema:
          type: string
          default: zh
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: false
        example: Asia/Shanghai
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                op:
                  type: string
                  enum:
                  - copy
                  - redo
                  - cancel
                  - pause
                  - restore
              required:
              - op
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []