Retrieves a model version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paimodel:GetModelVersion |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/models/{ModelId}/versions/{VersionName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ModelId |
string |
Yes |
The model ID. For more information about how to obtain the model ID, see ListModels. |
model-rbvg5wzljz****ks92 |
| VersionName |
string |
Yes |
The model version. |
1.0.1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
| GmtCreateTime |
string |
The UTC time when the model was created. The time is in the ISO 8601 format. |
2021-01-30T12:51:33.028Z |
| GmtModifiedTime |
string |
The UTC time when the model was last updated. The time is in the ISO 8601 format. |
2021-01-30T12:51:33.028Z |
| UserId |
string |
The user ID. |
1234567890****** |
| OwnerId |
string |
The ID of the Alibaba Cloud account. |
1234567890****** |
| Uri |
string |
The URI of the model version. This is the storage location of the model. Valid values:
|
oss://t***.cn-beijing.oss.aliyuncs.com/mod**/ |
| Labels |
array |
The list of labels for the model version. |
|
| Label |
The label. |
||
| Options |
string |
The extended field. This field is a JSON string. |
{} |
| VersionName |
string |
The model version. |
0.1.0 |
| VersionDescription |
string |
The description of the model version. |
通用情感分析。 |
| TrainingSpec |
object |
The training configuration. This is the configuration for fine-tuning and incremental training. |
{} |
| InferenceSpec |
object |
Describes how to apply the model to a downstream inference service. For example, this can describe the processor and container for Elastic Algorithm Service (EAS). |
{ "Processor": "tensorflow_gpu_1.12" } |
| FormatType |
string |
The model format. Valid values:
Valid values:
|
SavedModel |
| FrameworkType |
string |
The model framework. Valid values:
Valid values:
|
TensorFlow |
| SourceType |
string |
The source type of the model. Valid values:
Valid values:
|
PAIFlow |
| SourceId |
string |
The source ID.
The parameters are:
|
region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf |
| ApprovalStatus |
string |
The approval status. Valid values:
|
Approved |
| EvaluationSpec |
object |
The evaluation configuration. |
{} |
| CompressionSpec |
object |
The compression configuration. |
{} |
| ExtraInfo |
object |
Other information. |
{ "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"], "TrainedWords": ["albedo_overlord"] } |
| Metrics |
object |
The metrics. |
{} |
| DistillationSpec |
object |
The distillation configuration. |
{} |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941",
"GmtCreateTime": "2021-01-30T12:51:33.028Z",
"GmtModifiedTime": "2021-01-30T12:51:33.028Z",
"UserId": "1234567890******",
"OwnerId": "1234567890******",
"Uri": "oss://t***.cn-beijing.oss.aliyuncs.com/mod**/",
"Labels": [
{
"Key": "env",
"Value": "test"
}
],
"Options": "{}",
"VersionName": "0.1.0",
"VersionDescription": "通用情感分析。",
"TrainingSpec": {},
"InferenceSpec": {
"Processor": "tensorflow_gpu_1.12"
},
"FormatType": "SavedModel",
"FrameworkType": "TensorFlow",
"SourceType": "PAIFlow",
"SourceId": "region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf",
"ApprovalStatus": "Approved",
"EvaluationSpec": {},
"CompressionSpec": {},
"ExtraInfo": {
"CoverUris": [
"https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"
],
"TrainedWords": [
"albedo_overlord"
]
},
"Metrics": {},
"DistillationSpec": {}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.