All Products
Search
Document Center

OpenSearch:GetFunctionDefaultInstance

Last Updated:Mar 03, 2024

Queries the algorithm instance that an application uses by default.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/default-instance

Request parameters

ParameterTypeRequiredDescriptionExample
appGroupIdentitystringYes

The name of the application.

my_app_group_name
functionNamestringYes

The name of the feature.

ctr

Sample requests

GET /v4/openapi/app-groups/my-app/functions/pop/default-instances

Response parameters

ParameterTypeDescriptionExample
object

The response body.

Statusstring

The status of the request.

OK
HttpCodelong

The HTTP status code.

200
RequestIdstring

The ID of the request.

062BA91F-A568-5779-8A5B-9E62C9BB3DC1
Messagestring

The error message.

default instance not set.
Codestring

The error code.

DefaultInstance.NotExist
Resultobject

The result of the request.

InstanceNamestring

The default instance name.

model1
Latencylong

The default running time.

123
InstanceNamestring

The name of the instance.

sh-bp1oi31w1jn4ctdyv
FunctionNamestring

The name of the feature.

cdn_waf

Sample success responses

{
    "status": "OK",
    "requestId": "",
    "httpCode": 200,
    "code": "",
    "message": "",
    "latency": 123,
    "result": {
        "instanceName": "pop_test"
    }
}

Examples

Sample success responses

JSONformat

{
  "Status": "OK",
  "HttpCode": 200,
  "RequestId": "062BA91F-A568-5779-8A5B-9E62C9BB3DC1",
  "Message": "default instance not set.",
  "Code": "DefaultInstance.NotExist",
  "Result": {
    "InstanceName": "model1"
  },
  "Latency": 123,
  "InstanceName": "sh-bp1oi31w1jn4ctdyv",
  "FunctionName": "cdn_waf"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history