Queries all algorithm instances of a user, which meet specified conditions.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
opensearch:DescribeFunction | get |
|
| none |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
appGroupIdentity | string | Yes | The name of the application. | app_group_name |
functionName | string | Yes | The name of the feature. | ctr |
modelType | string | No | The type of the model. | tf_checkpoint |
functionType | string | No | The type of the feature. | "PAAS" |
source | string | No | How the instance is created. Valid values:
| user |
pageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
pageSize | integer | No | The number of entries to return on each page. Default value: 10. | 10 |
output | string | No | The richness of the returned information. Valid values:
| normal |
Response parameters
Sample success responses
{
"status": "OK",
"requestId": "A4D487A9-A456-5AA5-A9C6-B7BF2889CF74",
"httpCode": 200,
"code": "",
"message": "",
"latency": 123,
"totalCount": 2,
"result": [
{
"versionId": 100,
"instanceName": "instance_1",
"functionName": "hot",
"functionType": "PAAS",
"modelType": "offline_inference",
"description": "",
"status": "available",
"belongs": {
"domain": "ecommerce",
"category": "general",
"language": "zh"
},
"createTime": 100010,
"source": "user"
},
{
"versionId": 100,
"instanceName": "instance_2",
"functionName": "hot",
"functionType": "PAAS",
"modelType": "offline_inference",
"description": "",
"status": "available",
"belongs": {
"domain": "ecommerce",
"category": "general",
"language": "zh"
},
"createTime": 200020,
"source": "user",
"default": true
}
]
}
Examples
Sample success responses
JSON
format
{
"Status": "\"OK\"",
"HttpCode": 200,
"TotalCount": 2,
"RequestId": "A4D487A9-A456-5AA5-A9C6-B7BF2889CF74",
"Message": "instance not exist.",
"Code": "Instance.NotExist",
"Result": [
{
"Belongs": {
"Category": "\"general\"",
"Domain": "\"ecommerce\"",
"Language": "\"zh\"\t"
},
"CreateParameters": [
{
"Name": "\"param1\"",
"Value": "\"value1\""
}
],
"UsageParameters": [
{
"Name": "use_param1",
"Value": "value1"
}
],
"CreateTime": 1234,
"Cron": "0 3 ? \\* 0,1,3,5 (at 3 a.m. on Sunday, Monday, Wednesday, and Friday)\n",
"Description": "\" \"",
"ExtendInfo": "\"{\\\"dataReport\\\":{},\\\"errors\\\":{}}\"",
"FunctionName": "\"ctr\"",
"FunctionType": "\"PAAS\"",
"InstanceName": "\"ctr_test\"",
"ModelType": "\"tf_checkpoint\"",
"Source": "\"user\"",
"Status": "available",
"VersionId": 123
}
],
"Latency": 123
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|