Chaitin Tech system/serverhostconfig/modify API

系统配置/服务主机配置/修改

OpenAPI Specification

chaitin-system-serverhostconfig-modify-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account system/serverhostconfig/modify API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: system/serverhostconfig/modify
  description: 系统配置/服务主机配置/修改
paths:
  /system/serverhostconfig/modify:
    post:
      summary: 修改server地址配置
      deprecated: false
      description: ''
      tags:
      - system/serverhostconfig/modify
      parameters:
      - name: priority
        in: header
        description: ''
        required: true
        example: u=1, i
        schema:
          type: string
      - name: x-cs-header-app
        in: header
        description: ''
        required: true
        example: qzh
        schema:
          type: string
      - name: x-cs-header-company
        in: header
        description: ''
        required: true
        example: eeff7c64-5070-4582-8b93-fbcc57db7771
        schema:
          type: string
      - name: x-cs-header-module
        in: header
        description: ''
        required: true
        example: safety-protect/browser-control/browser-plugin
        schema:
          type: string
      - name: x-cs-header-timezone
        in: header
        description: ''
        required: true
        example: Asia/Shanghai
        schema:
          type: string
      - name: Cookie
        in: header
        description: ''
        required: true
        example: csrftoken=Pi942VNEP2gusnNinEyv8l3zJlRFnbNp; sid=Fe26.2**4cae0757e52359f1a17e8eb23b1b34c467e927a62a74bee3d61132d876295583*YMOJlirdWSIcliJK9ImtMg*YM5eBt0W6Qs6uQadWaNQ3Q7MMuHmHfIvX47xZ2ohe0RIJKlJZ05LqcsGP3gfxOBZ4JATFrCah4INz4z8PW6-kg4WMdd8lubcER5F3ADRc3DzMYDLrwTi9eHDuyEK3dIoEqIyC36zNOIX7vSbQTJoieflKQNPDHTA-kNHmOy1r8LG-C0Rim8xLkpcXhWMuY5_t76VCVYMRtoi5Z2_-mYX0UkINpRF7m34YdftRiwHRC8**087610b7d1e93e639f44aab457e97b074d7dbf303dfe557d6d9ba83b7a95ab73*5Ugwia8-iEOGhuUyG4pdF_MLVsTnHz86vMrv4F3HAL4
        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: 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:
                addresses:
                  type: array
                  items:
                    type: object
                    properties:
                      scheme:
                        type: string
                      host:
                        type: string
                      port:
                        type: integer
                      is_active:
                        type: boolean
                    required:
                    - scheme
                    - host
                    - port
                    - is_active
                operation:
                  type: string
                full_addr:
                  type: string
              required:
              - addresses
              - operation
              - full_addr
            example:
              addresses:
              - scheme: https
                host: example.com
                port: 8443
                is_active: true
              - scheme: http
                host: test.example.com
                port: 8233
                is_active: false
              operation: add/edit/delete
              full_addr: http://example.com:8443
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      uid:
                        type: string
                      company_id:
                        type: string
                      name:
                        type: string
                      display_name:
                        type: string
                      description:
                        type: string
                      create_time:
                        type: string
                      update_time:
                        type: string
                      config:
                        type: object
                        properties:
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                port:
                                  type: integer
                                address:
                                  type: string
                                protocol:
                                  type: string
                                is_active:
                                  type: boolean
                              required:
                              - port
                              - address
                              - protocol
                              - is_active
                        required:
                        - addresses
                      _old_data:
                        type: object
                        properties:
                          update_time:
                            type: string
                          name:
                            type: string
                          company_id:
                            type: string
                          display_name:
                            type: string
                          config:
                            type: object
                            properties:
                              addresses:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    port:
                                      type: integer
                                    address:
                                      type: string
                                    protocol:
                                      type: string
                                    is_active:
                                      type: boolean
                                  required:
                                  - port
                                  - address
                                  - protocol
                                  - is_active
                            required:
                            - addresses
                          uid:
                            type: string
                          create_time:
                            type: string
                          id:
                            type: integer
                          description:
                            type: string
                          category:
                            type: string
                          update_by_id:
                            type: 'null'
                          create_by_id:
                            type: 'null'
                        required:
                        - update_time
                        - name
                        - company_id
                        - display_name
                        - config
                        - uid
                        - create_time
                        - id
                        - description
                        - category
                        - update_by_id
                        - create_by_id
                      _new_data:
                        type: object
                        properties:
                          update_time:
                            type: string
                          name:
                            type: string
                          company_id:
                            type: string
                          display_name:
                            type: string
                          config:
                            type: object
                            properties:
                              addresses:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    port:
                                      type: integer
                                    address:
                                      type: string
                                    protocol:
                                      type: string
                                    is_active:
                                      type: boolean
                                  required:
                                  - port
                                  - address
                                  - protocol
                                  - is_active
                            required:
                            - addresses
                          uid:
                            type: string
                          create_time:
                            type: string
                          id:
                            type: integer
                          description:
                            type: string
                          category:
                            type: string
                          update_by_id:
                            type: 'null'
                          create_by_id:
                            type: 'null'
                        required:
                        - update_time
                        - name
                        - company_id
                        - display_name
                        - config
                        - uid
                        - create_time
                        - id
                        - description
                        - category
                        - update_by_id
                        - create_by_id
                    required:
                    - uid
                    - company_id
                    - name
                    - display_name
                    - description
                    - create_time
                    - update_time
                    - config
                    - _old_data
                    - _new_data
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: 正常
                data:
                  uid: 1affc220-2964-45f9-9d91-a1bd2448bbcd
                  company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                  name: notification_address_config
                  display_name: 通知地址配置
                  description: 通知地址配置
                  create_time: '2025-07-23T07:04:05.926203Z'
                  update_time: '2025-08-14T12:45:20.733272Z'
                  config:
                    addresses:
                    - port: 8443
                      address: example.com
                      protocol: https
                      is_active: true
                    - port: 823380
                      address: test.example.com
                      protocol: http
                      is_active: false
                  _old_data:
                    update_time: '2025-08-14T12:45:20.733272Z'
                    name: notification_address_config
                    company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                    display_name: 通知地址配置
                    config:
                      addresses:
                      - port: 8443
                        address: example.com
                        protocol: https
                        is_active: true
                      - port: 823380
                        address: test.example.com
                        protocol: http
                        is_active: false
                    uid: 1affc220-2964-45f9-9d91-a1bd2448bbcd
                    create_time: '2025-07-23T07:04:05.926203Z'
                    id: 37
                    description: 通知地址配置
                    category: general
                    update_by_id: null
                    create_by_id: null
                  _new_data:
                    update_time: '2025-08-14T12:45:20.733272Z'
                    name: notification_address_config
                    company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                    display_name: 通知地址配置
                    config:
                      addresses:
                      - port: 8443
                        address: example.com
                        protocol: https
                        is_active: true
                      - port: 823380
                        address: test.example.com
                        protocol: http
                        is_active: false
                    uid: 1affc220-2964-45f9-9d91-a1bd2448bbcd
                    create_time: '2025-07-23T07:04:05.926203Z'
                    id: 37
                    description: 通知地址配置
                    category: general
                    update_by_id: null
                    create_by_id: null
      security: []