Chaitin Tech policy/remote_control/{policy_id} API

策略管理/远程控制/policy_id 参数

OpenAPI Specification

chaitin-policy-remote-control-policy-id-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policy/remote_control/{policy_id} API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policy/remote_control/{policy_id}
  description: 策略管理/远程控制/policy_id 参数
paths:
  /policy/remote_control/{policy_id}:
    post:
      summary: 更新
      deprecated: false
      description: ''
      tags:
      - policy/remote_control/{policy_id}
      parameters:
      - name: policy_id
        in: path
        description: ''
        required: true
        example: string
        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:
                binding_config:
                  type: object
                  properties:
                    source:
                      type: string
                    include:
                      type: object
                      properties:
                        dept_ids:
                          type: array
                          items:
                            type: string
                        staff_ids:
                          type: array
                          items:
                            type: string
                        staff_tag_ids:
                          type: array
                          items:
                            type: string
                        device_ids:
                          type: array
                          items:
                            type: string
                        device_tag_ids:
                          type: array
                          items:
                            type: string
                      required:
                      - dept_ids
                      - staff_ids
                      - staff_tag_ids
                      - device_ids
                      - device_tag_ids
                    exclude:
                      type: object
                      properties: {}
                  required:
                  - source
                  - include
                  - exclude
              required:
              - binding_config
            example:
              binding_config:
                source: compliance
                include:
                  dept_ids:
                  - 282cfac5-94a1-4d2c-ade8-f8b0538bde11
                  staff_ids:
                  - f38ecdcb-3162-464c-9e56-8102d2c35d0c
                  staff_tag_ids:
                  - cfe7ff47-c180-4b88-9e70-b80feea3f913
                  device_ids:
                  - d1247921-d4fd-4f6c-9f62-504684f8f288
                  - 1c16c892242c467cadd48ab0f00f26e9
                  - 8464a3c6c8054423acbbc0c9cadb273a
                  device_tag_ids:
                  - 4733a46b-2d8a-4506-902d-df81c32406c1
                exclude: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      index:
                        type: array
                        items:
                          type: string
                      page:
                        type: integer
                      limit:
                        type: integer
                      search_total:
                        type: integer
                      total:
                        type: integer
                      search_after:
                        type: 'null'
                      results:
                        type: array
                        items:
                          type: string
                    required:
                    - index
                    - page
                    - limit
                    - search_total
                    - total
                    - search_after
                    - results
                required:
                - code
                - msg
                - data
              example:
                code: 2358
                msg: string
                data:
                  index:
                  - string
                  - string
                  page: 4777
                  limit: 3555
                  search_total: 5653
                  total: 5039
                  search_after: null
                  results:
                  - string
                  - string
      security: []