Queries version information by version ID.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /v4/openapi/functions/{functionName}/versions/{versionId}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
functionName | string | Yes | The name of the feature. | ctr |
versionId | integer | Yes | The ID of the version. | 100 |
Response parameters
Sample success responses
{
"status": "OK",
"requestId": "",
"httpCode": 200,
"code": "",
"message": "",
"latency": 123,
"result": {
"versionName": "v1",
"versionId": 101,
"functionName": "ctr",
"modelType": "tf_checkpoint",
"functionType": "PAAS",
"versionConfig": {
"createParameters": [
{
"name": "params1",
"required": "true",
"formItemProps": "{\"required\": true, \"pattern?\": \"/^[a-zA-Z][a-zA-Z0-9_]{0,29}$/\"}",
"componentProps": "{\"component\": \"Input\", \"attributes\": {\"defaultValue\": \"value1\"}}"
}
],
"depends": [
{
"dependency": "the dependency",
"condition": "the condition",
"description": ""
}
],
"usageParameters": []
}
}
}
Examples
Sample success responses
JSON
format
{
"Status": "OK",
"HttpCode": 200,
"RequestId": "1638157479281",
"Message": "version not exist.",
"Code": "Version.NotExist",
"Result": {
"FunctionName": "ctr",
"FunctionType": "PAAS",
"ModelType": "tf_checkpoint",
"VersionConfig": {
"CreateParameters": [
{
"Name": "params1",
"Required": "true"
}
],
"Depends": [
{
"Condition": "\"\"",
"Dependency": "\"\"",
"Description": "\"\""
}
],
"UsageParameters": [
{
"Name": "\"\"",
"Required": "\"\""
}
]
},
"VersionId": 101,
"VersionName": "v1"
},
"Latency": 123
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history