The automation API allows you to access information about the ScienceOps system, as well as information about models that have been deployed to ScienceOps.

Available Endpoints:

Method Endpoint Parameters
GET /api/models
GET /api/models/{username}/{modelName}
GET /api/models/{username}/{modelName}/check

/api/models

Returns a list of all the models on the system, number of versions deployed, last

Example:

$ curl -X GET  --user username:apikey https://sandbox.c.yhat.com/api/models

Response

{
 "models": [
  {
    "Id": 1,
    "Name": "LinearRegression",
    "NumVersions": 36,
    "ActiveVersion": 35,
    "LastDeployment": 4340,
    "LastUpdated": "2017-02-09T14:16:04Z",
    "LatestVersion": 0,
    "NumReplications": 2,
    "Status": "online",
    "Owner": "demo-master"
  },
  {
    "Id": 2,
    "Name": "LendingClub",
    "NumVersions": 7,
    "ActiveVersion": 7,
    "LastDeployment": 4342,
    "LastUpdated": "2017-02-09T14:38:50Z",
    "LatestVersion": 0,
    "NumReplications": 1,
    "Status": "online",
    "Owner": "production"
  }
 ]
}

/api/models/{username}/{modelname}

Returns a list of all the models on the system, number of versions deployed, last

Example:

$ curl -X  GET --user username:apikey https://sandbox.c.yhat.com/api/models/yhat/TensorFlowTest

Response:

{
 "model": {
  "Id": 32,
  "Name": "TensorFlowTest",
  "NumVersions": 1,
  "ActiveVersion": 1,
  "LastDeployment": 196,
  "LastUpdated": "2017-05-09T16:02:48Z",
  "LatestVersion": 1,
  "NumReplications": 2,
  "Status": "failed",
  "Owner": "yhat"
 },
 "status": "OK"
}

results matching ""

    No results matching ""