com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Retrieving a Model via REST API

Overview

DescriptionRetrieving a model
Resource Path

/api/models/{name}

HTTP MethodGET
Request/Response Formatapplication/json
Parameter description
Parameter
Description
{name}Name of the model which, you need to retrieve.

Example

GET https://localhost:9443/api/models/{name}

Sample cURL command

curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/models/wso2-ml-logistic-regression-analysis.Model.2015-09-02_17-07-27 -k

Sample output

{  
   "modelSummary":null,
   "analysisId":2,
   "versionSetId":2,
   "storageType":"file",
   "storageDirectory":"ML_HOME/models",
   "createdTime":"2015-09-02 17:07:27.375",
   "tenantId":-1234,
   "name":"wso2-ml-logistic-regression-analysis.Model.2015-09-02_17-07-27",
   "id":2,
   "error":null,
   "userName":"admin",
   "status":"Not Started"
}

REST API response

HTTP status code

200

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