openapi: 3.0.3
info:
  title: Cisco ISE API - LSD Settings
  version: 1.0.0
servers:
  - url: https://10.106.141.112:4443
    description: Inferred Url
tags:
  - name: update-lsd-settings-api-controller
    description: the updateLsdSettings API
paths:
  /api/v1/lsd/updateLsdSettings:
    get:
      tags:
        - Configuration
      summary: Retrieve configuration information for LSD settings page
      operationId: getConfiguration
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Config'
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
    put:
      tags:
        - Configuration
      summary: Update LSD enable/disable settings for endppint ownership and rcm (random changing mac)
      description: 'API to enable/disable LSD settings '
      operationId: updateConfiguration
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Config'
              exampleSetFlag: false
      responses:
        '200':
          description: LSD settings updated successfully
          content:
            application/json:
              schema:
                type: string
                exampleSetFlag: true
        '201':
          description: Created
        '400':
          description: Invalid inputs supplied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
components:
  schemas:
    Config:
      title: Config
      required:
        - enableEPO
        - enableRCM
      type: object
      properties:
        enableEPO:
          type: boolean
          description: To enable/disable LSD ownership settings
          example: false
          exampleSetFlag: true
        enableLSD:
          type: boolean
          description: To enable/disable LSD feature
          example: false
          exampleSetFlag: true
        enableRCM:
          type: boolean
          description: To enable/disable random mac(RCM) settings. Please note that this flag will be set to false if enableEPO flag is false
          example: false
          exampleSetFlag: true
      exampleSetFlag: false
    ErrorResponse:
      title: ErrorResponse
      type: object
      properties:
        code:
          type: integer
          format: int32
          exampleSetFlag: true
        message:
          type: string
          exampleSetFlag: true
        rootCause:
          type: string
          exampleSetFlag: true
      exampleSetFlag: false
