---
openapi: 3.0.3
info:
  title: Cisco ISE API - Dataconnect
  version: 1.0.0
servers:
- url: https://10.56.52.201:443
  description: Inferred Url
tags:
- name: mnt-api-controller
  description: the mnt API
paths:
  "/api/v1/mnt/data-connect/details":
    get:
      tags:
      - Dataconnect Services
      summary: Retrieve the Dataconnect ODBC details.
      description: This API retrieves the Dataconnect ODBC details.
      operationId: getOdbcDetail
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/OdbcDetailResponse"
                exampleSetFlag: false
        '400':
          description: Dataconnect Feature not enabled
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
      security:
      - BasicAuth: []
  "/api/v1/mnt/data-connect/settings":
    get:
      tags:
      - Dataconnect Services
      summary: Retrieve the status of the Dataconnect feature
      description: This API retrieves the status of the Dataconnect feature.
      operationId: getDataconnectService
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/DataconnectResponse"
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
      security:
      - BasicAuth: []
  "/api/v1/mnt/data-connect/settings/password":
    put:
      tags:
      - Dataconnect Services
      summary: Update the Dataconnect user password.
      description: This API updates the Dataconnect user password
      operationId: updateDataconnectPassword
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/DataconnectPassword"
              exampleSetFlag: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/SuccessResponse"
                exampleSetFlag: false
        '201':
          description: Created
        '400':
          description: Bad input.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
      security:
      - BasicAuth: []
  "/api/v1/mnt/data-connect/settings/password/expiry":
    put:
      tags:
      - Dataconnect Services
      summary: Updates the number of days of Dataconnect password expiry.
      description: This API updates the number of days of Dataconnect password expiry
      operationId: updateDataconnectPasswordExpiry
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/DataconnectPasswordExpiry"
              exampleSetFlag: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/SuccessResponse"
                exampleSetFlag: false
        '201':
          description: Created
        '400':
          description: Bad input.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
      security:
      - BasicAuth: []
  "/api/v1/mnt/data-connect/settings/status":
    put:
      tags:
      - Dataconnect Services
      summary: Update the DataConnect feature status
      description: This API updates the DataConnect feature status.
      operationId: setDataConnectService
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/Dataconnect"
              exampleSetFlag: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/SuccessResponse"
                exampleSetFlag: false
        '201':
          description: Created
        '400':
          description: Bad input.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
                exampleSetFlag: false
      security:
      - BasicAuth: []
components:
  schemas:
    Dataconnect:
      title: Dataconnect
      required:
      - isEnabled
      type: object
      properties:
        isEnabled:
          type: boolean
          example: true
          exampleSetFlag: true
      exampleSetFlag: false
    DataconnectPassword:
      title: DataconnectPassword
      required:
      - password
      type: object
      properties:
        password:
          type: string
          description: 'Password for dataconnect user. Password must satisfy the following
            criteria - Contains at least one uppercase letter [A-Z], Contains at least
            one lowercase letter [a-z], Contains at least one digit [0-9], Contains
            at least one special character #$%&*+,-.:;=?^_~, Has at least 12 characters,
            Has not more than 30 characters'
          example: YwBtG29anRDw
          exampleSetFlag: true
      exampleSetFlag: false
    DataconnectPasswordExpiry:
      title: DataconnectPasswordExpiry
      required:
      - passwordExpiresInDays
      type: object
      properties:
        passwordExpiresInDays:
          type: integer
          format: int32
          example: 45
          exampleSetFlag: true
      exampleSetFlag: false
    DataconnectResponse:
      title: DataconnectResponse
      type: object
      properties:
        response:
          "$ref": "#/components/schemas/Status"
          exampleSetFlag: true
        version:
          type: string
          example: 1.0.0
          exampleSetFlag: true
      exampleSetFlag: false
    ErrorResponse:
      title: ErrorResponse
      type: object
      properties:
        error:
          "$ref": "#/components/schemas/Message"
          exampleSetFlag: true
        version:
          type: string
          example: 1.0.0
          exampleSetFlag: true
      exampleSetFlag: false
    Message:
      title: Message
      type: object
      properties:
        message:
          type: string
          example: Success
          exampleSetFlag: true
      exampleSetFlag: false
    OdbcDetailResponse:
      title: OdbcDetailResponse
      type: object
      properties:
        response:
          "$ref": "#/components/schemas/OdbcDetails"
          exampleSetFlag: true
        version:
          type: string
          example: 1.0.0
          exampleSetFlag: true
      exampleSetFlag: false
    OdbcDetails:
      title: OdbcDetails
      type: object
      properties:
        hostname:
          type: string
          example: isenode
          exampleSetFlag: true
        port:
          type: integer
          format: int32
          example: 2484
          exampleSetFlag: true
        servicename:
          type: string
          example: cpm10
          exampleSetFlag: true
        username:
          type: string
          example: Admin
          exampleSetFlag: true
      exampleSetFlag: false
    Status:
      title: Status
      type: object
      properties:
        isEnabled:
          type: boolean
          example: true
          exampleSetFlag: true
        isPasswordChanged:
          type: boolean
          example: true
          exampleSetFlag: true
        passwordExpiresInDays:
          type: integer
          format: int32
          example: 45
          exampleSetFlag: true
        passwordExpiresOn:
          type: string
          example: 15 December 2021 at 18:05 PST
          exampleSetFlag: true
      exampleSetFlag: false
    SuccessResponse:
      title: SuccessResponse
      type: object
      properties:
        success:
          "$ref": "#/components/schemas/Message"
          exampleSetFlag: true
        version:
          type: string
          example: 1.0.0
          exampleSetFlag: true
      exampleSetFlag: false
