{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotapi-robot-node-cred-get-resp-schema.json",
  "title": "robotapiRobotNodeCredGetResp",
  "description": "Get Credentials Response Body",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-get-credentials-api-openapi.yml#/components/schemas/robotapiRobotNodeCredGetResp",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/robotapiRobotNodeCredentials"
      },
      "description": "Array of Node Data"
    },
    "total_count": {
      "type": "integer",
      "format": "int32",
      "description": "Number of total credentials profile available at present"
    }
  },
  "$defs": {
    "robotapiRobotNodeCredentials": {
      "type": "object",
      "description": "Node credentials data",
      "properties": {
        "profile": {
          "type": "string"
        },
        "v2_info": {
          "$ref": "#/$defs/robotapiRobotSnmpV2"
        },
        "v3_info": {
          "$ref": "#/$defs/robotapiRobotSnmpV3"
        },
        "user_pass": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/robotapiRobotUserPass"
          }
        }
      }
    },
    "robotapiRobotSnmpV2": {
      "type": "object",
      "properties": {
        "read_community": {
          "type": "string"
        },
        "write_community": {
          "type": "string"
        }
      },
      "description": "SNMPv2 credential information"
    },
    "robotapiRobotSnmpV3": {
      "type": "object",
      "properties": {
        "user_name": {
          "type": "string"
        },
        "auth_type": {
          "$ref": "#/$defs/robotapiRobotSnmpV3AuthType"
        },
        "auth_password": {
          "type": "string"
        },
        "priv_type": {
          "$ref": "#/$defs/robotapiRobotSnmpV3PrivType"
        },
        "priv_password": {
          "type": "string"
        },
        "security_level": {
          "$ref": "#/$defs/robotapiRobotSnmpV3SecurityLevel"
        }
      },
      "description": "SNMPv3  Credential information"
    },
    "robotapiRobotSnmpV3AuthType": {
      "type": "string",
      "enum": [
        "AT_UNKNOWN",
        "AT_HMAC_MD5",
        "AT_HMAC_SHA"
      ],
      "default": "AT_UNKNOWN"
    },
    "robotapiRobotSnmpV3PrivType": {
      "type": "string",
      "enum": [
        "PT_UNKNOWN",
        "PT_CFB_AES_128",
        "PT_CBC_DES_56"
      ],
      "default": "PT_UNKNOWN"
    },
    "robotapiRobotSnmpV3SecurityLevel": {
      "type": "string",
      "enum": [
        "SL_UNKNOWN",
        "SL_NO_AUTH_NO_PRIV",
        "SL_AUTH_NO_PRIV",
        "SL_AUTH_PRIV"
      ],
      "default": "SL_UNKNOWN"
    },
    "robotapiRobotUserPass": {
      "type": "object",
      "properties": {
        "user_name": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/robotapiRobotUserPassType"
        },
        "enable_password": {
          "$ref": "#/$defs/robotapiRobotUserPassEnable"
        },
        "enable_password_data": {
          "type": "string"
        }
      }
    },
    "robotapiRobotUserPassEnable": {
      "type": "string",
      "enum": [
        "ROBOT_USERPASSEN_NONE",
        "ROBOT_USERPASSEN_ENABLE",
        "ROBOT_USERPASSEN_DISABLE"
      ],
      "default": "ROBOT_USERPASSEN_NONE",
      "description": "- ROBOT_USERPASSEN_ENABLE: enables second level authentication in devices where is feature is available. For e.g. Cisco IOS XE devices. When this option is selected, the password for second level authentication much be given"
    },
    "robotapiRobotUserPassType": {
      "type": "string",
      "enum": [
        "ROBOT_USERPASS_UNKNOWN",
        "ROBOT_USERPASS_TCP",
        "ROBOT_USERPASS_UDP",
        "ROBOT_USERPASS_HTTP",
        "ROBOT_USERPASS_HTTPS",
        "ROBOT_USERPASS_GRPC",
        "ROBOT_USERPASS_SSH",
        "ROBOT_USERPASS_NETCONF",
        "ROBOT_USERPASS_TELNET",
        "ROBOT_USERPASS_SNMP",
        "ROBOT_USERPASS_TL1",
        "ROBOT_USERPASS_TL1_SECURE",
        "ROBOT_USERPASS_ADMIN",
        "ROBOT_USERPASS_ENABLE",
        "ROBOT_USERPASS_MAX"
      ],
      "default": "ROBOT_USERPASS_UNKNOWN",
      "description": "Connectivity types for robot micro-services"
    }
  }
}