Query an algorithm instance by instance name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:DescribeFunction |
get |
*FunctionInstance
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application. |
150057101 |
| functionName |
string |
Yes |
The name of the feature. |
ctr |
| instanceName |
string |
Yes |
The name of the instance. |
ctr_test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| output |
string |
No |
Specifies the richness of returned information. Valid values:
|
detail |
Sample requests
GET /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test?output=detail
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
{} |
|
| Status |
string |
The status of the request. |
OK |
| HttpCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The ID of the request. |
68ED4E1B-92B8-5821-A886-9C90686139EB |
| Message |
string |
The error message. |
instance not exist. |
| Code |
string |
The error code. If no error occurs, this parameter is left empty. |
Instance.NotExist |
| Result |
object |
The details of the instance. |
{} |
| Belongs |
object |
The information about the instance. |
|
| Category |
string |
The category. |
general |
| Domain |
string |
The industry. |
ecommerce |
| Language |
string |
The abbreviation of the language that applies. |
zh(Default) |
| CreateParameters |
array<object> |
The parameters that are used to create the instance. |
|
|
object |
The parameter body. |
||
| Name |
string |
The name of the parameter. |
param1 |
| Value |
string |
The value of the parameter. |
value1 |
| UsageParameters |
array<object> |
The parameters that are used. |
|
|
object |
The parameter body. |
||
| Name |
string |
The name of the parameter. |
use_param1 |
| Value |
string |
The value of the parameter. |
value1 |
| CreateTime |
integer |
The time when the task was created. Unit: milliseconds. |
1234 |
| Cron |
string |
The cron expression used to schedule training, in the format of (Minutes Hours DayofMonth Month DayofWeek). If the value is empty, it indicates that no periodic training is performed. |
0 3 ? * 0,1,3,5 (Sunday,Monday,Wednesday,Friday early morning3point) |
| Description |
string |
The description of the instance. |
instance descriptions |
| ExtendInfo |
string |
The extended information, which is a JSON string. |
{\"dataReport\":{},\"errors\":{}} |
| FunctionName |
string |
The name of the feature. |
ctr |
| FunctionType |
string |
The type of the feature. |
PAAS |
| InstanceName |
string |
The name of the instance. |
ctr_test |
| ModelType |
string |
The type of the model. |
tf_checkpoint |
| Source |
string |
How the instance is created. Valid values:
|
user |
| Status |
string |
The status of the instance. Valid values:
|
available |
| Task |
object |
The information about the training task. This parameter is not displayed if no task is available. |
|
| DagStatus |
string |
The status of the task. Valid values:
|
success |
| LastRunTime |
integer |
The time consumed for the most recent run, in milliseconds. |
1234 |
| VersionId |
integer |
The ID of the version. |
101 |
| Latency |
integer |
The time consumed for the request, in milliseconds. |
123 |
Sample success responses
{
"status": "OK",
"requestId": "",
"httpCode": 200,
"code": "",
"message": "",
"latency": 123,
"result": {
"versionId": 100,
"instanceName": "ctr_test",
"functionName": "ctr",
"functionType": "PAAS",
"modelType": "tf_checkpoint",
"Description": "test",
"status": "available",
"belongs": {
"domain": "ecommerce",
"category": "general",
"language": "zh"
},
"createTime": 100010,
"createParameters": [
{
"name": "param1",
"value": "val1"
}
],
"usageParameters": [
{
"name": "use_param1",
"value": "val1"
}
],
"extendInfo": "{\"error\":{},\"dataReport\":{}}",
"cron": "",
"task": {
"dagStatus": "running",
"progress": 30,
"lastRunTime": 200020
}
}
}
Examples
Success response
JSON format
{
"Status": "OK",
"HttpCode": 200,
"RequestId": "68ED4E1B-92B8-5821-A886-9C90686139EB",
"Message": "instance not exist.",
"Code": "Instance.NotExist",
"Result": {
"Belongs": {
"Category": "general",
"Domain": "ecommerce",
"Language": "zh(Default)"
},
"CreateParameters": [
{
"Name": "param1",
"Value": "value1"
}
],
"UsageParameters": [
{
"Name": "use_param1",
"Value": "value1"
}
],
"CreateTime": 1234,
"Cron": "0 3 ? * 0,1,3,5 (Sunday,Monday,Wednesday,Friday early morning3point)",
"Description": "instance descriptions",
"ExtendInfo": "{\\\"dataReport\\\":{},\\\"errors\\\":{}}",
"FunctionName": "ctr",
"FunctionType": "PAAS",
"InstanceName": "ctr_test",
"ModelType": "tf_checkpoint",
"Source": "user",
"Status": "available",
"Task": {
"DagStatus": "success",
"LastRunTime": 1234
},
"VersionId": 101
},
"Latency": 123
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.