Querying a Plug-in Template
Function
This API is used to obtain details of a specified plug-in template.
URI
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:
|
Request Parameters
None
Response Parameters
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 |
|---|---|---|
|
name |
String |
Plug-in template name |
|
annotations |
Map<String,String> |
Plug-in template annotations in the format of key-value pairs. |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Plug-in template type. The options are as follows:
|
|
description |
String |
Plug-in template description |
|
versions |
Map<String,PluginTemplateVersionV2> |
Plug-in template versions |
|
Parameter |
Type |
Description |
|---|---|---|
|
version |
String |
Version number of the plug-in template. |
|
creationTimestamp |
String |
Creation time. |
|
inputs |
Object |
Plug-in installation parameters. |
|
translate |
Object |
Translation information used by the GUI. |
|
description |
String |
Version description. |
|
detail |
String |
Version description. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_msg |
String |
Error message |
Example Requests
The following is an example of how to query plug-in template details.
https://{endpoint}/v1/{project_id}/plugintemplates/{plugintemplate_name}
Example Responses
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 Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
404 |
Not found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.