Chaitin Tech policy/ted/{uid}/detail API

策略管理/TED/uid 参数/详情

OpenAPI Specification

chaitin-policy-ted-uid-detail-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policy/ted/{uid}/detail API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policy/ted/{uid}/detail
  description: 策略管理/TED/uid 参数/详情
paths:
  /policy/ted/{uid}/detail:
    post:
      summary: 详情
      deprecated: false
      description: ''
      tags:
      - policy/ted/{uid}/detail
      parameters:
      - name: uid
        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: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      mode:
                        type: string
                      scope:
                        type: string
                      period_options:
                        type: object
                        properties: {}
                      description:
                        type: string
                      status:
                        type: string
                      priority:
                        type: integer
                      expression:
                        type: 'null'
                      name:
                        type: string
                      encryption_options:
                        type: array
                        items:
                          type: object
                          properties:
                            open:
                              type: object
                              properties:
                                action:
                                  type: string
                                action_template_id:
                                  type: string
                                action_template_name:
                                  type: string
                              required:
                              - action
                              - action_template_id
                              - action_template_name
                            level:
                              type: integer
                            action:
                              type: object
                              properties:
                                copy:
                                  type: boolean
                                drag:
                                  type: boolean
                                save_as:
                                  type: boolean
                              required:
                              - copy
                              - drag
                              - save_as
                            backup:
                              type: object
                              properties:
                                local_backup:
                                  type: boolean
                                remote_backup:
                                  type: boolean
                                period_options:
                                  type: object
                                  properties:
                                    day:
                                      type: 'null'
                                    hour:
                                      type: integer
                                    minute:
                                      type: integer
                                    weekday:
                                      type: integer
                                  required:
                                  - day
                                  - hour
                                  - minute
                                  - weekday
                                period_category:
                                  type: string
                                incremental_backup:
                                  type: boolean
                                local_warning_storage:
                                  type: integer
                              required:
                              - local_backup
                              - remote_backup
                              - period_options
                              - period_category
                              - incremental_backup
                              - local_warning_storage
                            decryption:
                              type: object
                              properties:
                                action:
                                  type: string
                                action_template_id:
                                  type: string
                                action_template_name:
                                  type: string
                              required:
                              - action
                              - action_template_id
                              - action_template_name
                          required:
                          - open
                          - level
                          - action
                          - backup
                          - decryption
                      company_id:
                        type: string
                      category:
                        type: string
                      id:
                        type: integer
                      expand:
                        type: object
                        properties: {}
                      create_by:
                        type: object
                        properties:
                          uid:
                            type: string
                          name:
                            type: string
                          username:
                            type: string
                          email:
                            type: string
                        required:
                        - uid
                        - name
                        - username
                        - email
                      create_time:
                        type: string
                      update_time:
                        type: string
                      source:
                        type: string
                      expression_relation:
                        type: 'null'
                      action_option:
                        type: object
                        properties:
                          upgrade:
                            type: object
                            properties:
                              action:
                                type: string
                              action_template_id:
                                type: string
                              action_template_name:
                                type: string
                            required:
                            - action
                            - action_template_id
                            - action_template_name
                          downgrade:
                            type: object
                            properties:
                              action:
                                type: string
                              action_template_id:
                                type: string
                              action_template_name:
                                type: string
                            required:
                            - action
                            - action_template_id
                            - action_template_name
                        required:
                        - upgrade
                        - downgrade
                      expression_fields:
                        type: array
                        items:
                          type: string
                      period_category:
                        type: string
                      run_model:
                        type: array
                        items:
                          type: string
                      uid:
                        type: string
                      code:
                        type: string
                      update_by:
                        type: object
                        properties:
                          uid:
                            type: string
                          name:
                            type: string
                          username:
                            type: string
                          email:
                            type: string
                        required:
                        - uid
                        - name
                        - username
                        - email
                      binding_config:
                        type: object
                        properties:
                          include:
                            type: object
                            properties:
                              devices:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                                    code:
                                      type: string
                                  required:
                                  - uid
                                  - name
                                  - code
                              device_tags:
                                type: array
                                items:
                                  type: string
                              staffs:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                                  required:
                                  - uid
                                  - name
                              staff_tags:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                                  required:
                                  - uid
                                  - name
                              depts:
                                type: array
                                items:
                                  type: string
                            required:
                            - devices
                            - device_tags
                            - staffs
                            - staff_tags
                            - depts
                          exclude:
                            type: object
                            properties:
                              depts:
                                type: array
                                items:
                                  type: string
                              staffs:
                                type: array
                                items:
                                  type: string
                              staff_tags:
                                type: array
                                items:
                                  type: string
                              devices:
                                type: array
                                items:
                                  type: string
                              device_tags:
                                type: array
                                items:
                                  type: string
                            required:
                            - depts
                            - staffs
                            - staff_tags
                            - devices
                            - device_tags
                        required:
                        - include
                        - exclude
                    required:
                    - mode
                    - scope
                    - period_options
                    - description
                    - status
                    - priority
                    - expression
                    - name
                    - encryption_options
                    - company_id
                    - category
                    - id
                    - expand
                    - create_by
                    - create_time
                    - update_time
                    - source
                    - expression_relation
                    - action_option
                    - expression_fields
                    - period_category
                    - run_model
                    - uid
                    - code
                    - update_by
                    - binding_config
                required:
                - code
                - msg
                - data
              example:
                code: 5426
                msg: string
                data:
                  mode: string
                  scope: string
                  period_options: {}
                  description: string
                  status: string
                  priority: 3833
                  expression: null
                  name: string
                  encryption_options:
                  - open:
                      action: string
                      action_template_id: string
                      action_template_name: string
                    level: 9244
                    action:
                      copy: true
                      drag: false
                      save_as: false
                    backup:
                      local_backup: false
                      remote_backup: true
                      period_options:
                        day: null
                        hour: 5525
                        minute: 525
                        weekday: 5912
                      period_category: string
                      incremental_backup: false
                      local_warning_storage: 8007
                    decryption:
                      action: string
                      action_template_id: string
                      action_template_name: string
                  - open:
                      action: string
                      action_template_id: string
                      action_template_name: string
                    level: 1021
                    action:
                      copy: true
                      drag: false
                      save_as: false
                    backup:
                      local_backup: true
                      remote_backup: true
                      period_options:
                        day: null
                        hour: 2657
                        minute: 7480
                        weekday: 7868
                      period_category: string
                      incremental_backup: true
                      local_warning_storage: 4977
                    decryption:
                      action: string
                      action_template_id: string
                      action_template_name: string
                  company_id: string
                  category: string
                  id: 8904
                  expand: {}
                  create_by:
                    uid: string
                    name: string
                    username: string
                    email: string
                  create_time: string
                  update_time: string
                  source: string
                  expression_relation: null
                  action_option:
                    upgrade:
                      action: string
                      action_template_id: string
                      action_template_name: string
                    downgrade:
                      action: string
                      action_template_id: string
                      action_template_name: string
                  expression_fields:
                  - string
                  - string
                  period_category: string
                  run_model:
                  - string
                  - string
                  uid: string
                  code: string
                  update_by:
                    uid: string
                    name: string
                    username: string
                    email: string
                  binding_config:
                    include:
                      devices:
                      - uid: string
                        name: string
                        code: string
                      - uid: string
                        name: string
                        code: string
                      device_tags:
                      - string
                      - string
                      staffs:
                      - uid: string
                        name: string
                      - uid: string
                        name: string
                      staff_tags:
                      - uid: string
                        name: string
                      - uid: string
                        name: string
                      depts:
                      - string
                      - string
                    exclude:
                      depts:
                      - string
                      - string
                      staffs:
                      - string
                      - string
                      staff_tags:
                      - string
                      - string
                      devices:
                      - string
                      - string
                      device_tags:
                      - string
                      - string
      security: []