This documentation is for Machine Learner 1.0.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionRetrieve all datasets and their versions for a given user.
Resource Path

/api/datasets/versions

HTTP MethodGET
Response Formatapplication/json

Sample cURL command

Code Block
languagepowershell
 
  • By default, <ML_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default,  <ML_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.

Example cURL command

Code Block
languagetext
curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/datasets/versions -k

Example

Code Block
languagetext
GET https://localhost:9443/api/datasets/versions

Sample output

Code Block
languagetext
[
  {
    "comments": "Pima Indians Diabetes Dataset",
    "createdTime": null,
    "versions": [
      {
        "id": 1,
        "version": "1.0.0",
        "status": "Processed"
      },
      {
        "id": 2,
        "version": "2.0.0",
        "status": "Processed"
      }
    ],
    "name": "Pima Indians Diabetes",
    "id": 1,
    "status": "Available"
  },
  {
    "comments": "Age of Abalone Dataset ",
    "createdTime": null,
    "versions": [
      {
        "id": 3,
        "version": "1.0.0",
        "status": "Processed"
      }
    ],
    "name": "Abalone Dataset",
    "id": 2,
    "status": "Available"
  }
]

REST API response

HTTP status code

200, 400 or 500

For descriptions of the HTTP status codes, see HTTP Status Codes.