This API is used to obtain details of a specified plug-in template.
GET /v1/{project_id}/plugintemplates/{plugintemplate_name}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
plugintemplate_name |
Yes |
String |
Plug-in template name. Options:
|
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
apiVersion |
String |
API version. Options:
|
kind |
String |
Resource type. Options:
|
metadata |
PluginTemplateMetadata object |
Plug-in template metadata |
spec |
PluginTemplateSpec object |
Plug-in template specifications |
Parameter |
Type |
Description |
|---|---|---|
type |
String |
Plug-in template type. Options:
|
description |
String |
Plug-in template description |
versions |
Map<String,PluginTemplateVersion> |
Plug-in template versions |
Status code: 404
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Error code Minimum: 8 Maximum: 36 |
error_msg |
String |
Error message Minimum: 2 Maximum: 512 |
None
Status code: 200
OK
{
"apiVersion" : "v1",
"kind" : "PluginTemplate",
"metadata" : {
"name" : "npu-driver"
},
"spec" : {
"type" : "npuDriver",
"description" : "npu driver"
},
"versions" : {
"78-21.0.2" : {
"detail" : "c78driver&firmware"
},
"77-21.0.cr1" : {
"detail" : "c77driver&firmware"
}
}
}
Status code: 404
Not found
{
"error_code" : "ModelArts.50005101",
"error_msg" : "Plugintemplate {name} not found."
}
Status Code |
Description |
|---|---|
200 |
OK |
404 |
Not found |
See Error Codes.