Queries algorithm models.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/app-groups/[appGroupIdentity]/algorithm/models HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes group_name

The name of the application.

pageNumber Integer Query No 1

The number of the page to return. Default value: 1.

pageSize Integer Query No 10

The number of items to return on each page. Default value: 10.

type String Query No pop

The type of the algorithm.

Request body

Parameter

Type

Required

Example

Description

status

String

No

"train_success"

The status of the training.

sort

String

No

"my_field"

The field that is used for sorting.

direction

String

No

"desc"

Specifies whether to sort models in ascending or descending order. Valid values:

  • desc
  • asc

Response parameters

Parameter Type Example Description
requestId String 429848D7-C3E1-8FFB-9FF6-01932E6067ED

The ID of the request.

result List []

The details of the models.

For more information, see Model.

Examples

Sample requests

GET /v4/openapi/app-groups/my_app/algorithm/models

Sample success responses

XML format

<requestId>429848D7-C3E1-8FFB-9FF6-01932E6067ED</requestId>
<totalCount>1</totalCount>
<result>
    <id>804</id>
    <groupId>100304898</groupId>
    <groupName>lsh_test_03</groupName>
    <type>hot</type>
    <name>hotModel</name>
    <trainTarget>click</trainTarget>
    <behaviorEnabled>true</behaviorEnabled>
    <cron>35 3 * * 1,3,5,7</cron>
    <cronEnabled>true</cronEnabled>
    <availableThreshold>0.8</availableThreshold>
    <lastTrainingTime>1597910944000</lastTrainingTime>
    <status>train_init</status>
    <alreadyDeployed>false</alreadyDeployed>
</result>

JSON format

{
    "requestId": "429848D7-C3E1-8FFB-9FF6-01932E6067ED",
    "totalCount": 1,
    "result": {
        "id": 804,
        "groupId": 100304898,
        "groupName": "lsh_test_03",
        "type": "hot",
        "name": "hotModel",
        "trainTarget": "click",
        "behaviorEnabled": true,
        "cron": "35 3 * * 1,3,5,7",
        "cronEnabled": true,
        "availableThreshold": 0.8,
        "lastTrainingTime": 1597910944000,
        "status": "train_init",
        "alreadyDeployed": false
    }
}

Error codes

For a list of error codes, visit the API Error Center.