NetApp StorageGRID

Overview

Modzy can run data stored in Netapp StorageGRID. Input items stored in StorageGRID's buckets may include one data file.

To submit a job request, send input items, a model identifier, and a version number.

Sample request

POST /api/jobs HTTP/1.1
Host: trial.app.modzy.com
Authorization: ApiKey apikey.modzy
Content-Type: application/json
Accept: application/json

{
  "model": {
    "identifier": "ed542963de",
    "version": "0.0.27"
 },
  "input": {
    "type": "storage-grid",
    "accessKeyID": "key",
    "secretAccessKey": "secret-key",
    "endpoint": "https://endpoint.example",
    "sources": {
      "input-item": {
        "model-input-name": {
          "bucket": "bucket",
          "key": "input_folder/happy.txt"
        }
      }
    }
  }
}

Sample response

{
  "model": {
    "identifier": "ed542963de",
    "version": "0.0.27",
    "name": "Sentiment Analysis"
  },
  "status": "SUBMITTED",
  "totalInputs": 1,
  "jobIdentifier": "2700725a-9c84-40ae-bbeb-4fce0d35424e",
  "accessKey": "apikey",
  "explain": false,
  "jobType": "batch",
  "accountIdentifier": "demo-account",
  "team": {
    "identifier": "demo-team"
  },
  "user": {
    "identifier": "demo-user-id",
    "firstName": "demo",
    "lastName": "user",
    "email": "[email protected]"
  },
  "jobInputs": {
      "identifier": ["texts"]    
  },
  "submittedAt": "2021-08-02T21:19:52.529+00:00",
  "hoursDeleteInput": 1,
  "imageClassificationModel": false
}

Request body parameters for StorageGRID

ParameterTypeDescription
model (required)objectAn object that contains the model parameters modelID and modelVersion.
input (required)objectContains all the input type and sources.
explainstringSets the explainability feature when a model offers the option.
timeoutstringA timeout in milliseconds for the job’s status to transition to TIMEDOUT. The job doesn’t timeout if this value is not provided.

input object

ParameterTypeDescription
type (required)stringThe input type to be processed. **Use storage-grid to run a an inference against an item stored in a StorageGrid bucket
accessKeyID (required)stringThe access key ID provided by StorageGrid.
secretAccessKey (required)stringThe secret access key provided by StorageGrid.
endpoint (required)stringyour StorageGRID endpoint, where your buckets are stored
sources (required)objectContains all the input item objects to be processed.

input_item object

ParametersTypeDescription
input_item (required)objectContains the input to be processed by the model. This parameter's key can have any name. Its name matches the output's name.

model_input_name object

ParametersTypeDescription
model_input_name (required)objectContains a StorageGrid bucket name and the input file's corresponding key within that bucket. This parameter's key needs to match the input name that the specified model expects. Add one per bucket.

For additional information see Jobs.