Query Details of a Plug-in
Function
This API is used to query details of a plug-in instance.
URI
GET /v2/{project_id}/pools/{pool_name}/plugins/{template_name}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
pool_name |
Yes |
String |
Resource pool name. |
template_name |
Yes |
String |
Plug-in template name. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
detail |
No |
String |
If this parameter is set to true, the resource usage of the plug-in instances is obtained. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
apiVersion |
String |
API version. Options:
|
kind |
String |
Type of the plug-in instance. |
metadata |
PluginMetadata object |
Metadata of the plug-in instance. |
spec |
PluginSpec object |
Plug-in instance details. |
status |
PluginStatus object |
Plug-in instance status. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Name of the plug-in instance. |
creationTimestamp |
String |
Creation time. |
Parameter |
Type |
Description |
---|---|---|
template |
Template object |
Template information of the plug-in instances. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Name of the plug-in template to be installed, for example, log-agent. |
version |
String |
Version of the plug-in to be installed or upgraded. |
inputs |
Map<String,Object> |
Plug-in template installation parameters (varying depending on the plug-in). During the plug-in upgrade, you need to specify all the installation parameters. If the parameters are not specified, the default values in the plug-in template are used. The current plug-in installation parameters can be obtained through the API for querying plug-in instances. |
Parameter |
Type |
Description |
---|---|---|
phase |
String |
Plug-in instance status. Options:
|
version |
String |
Version of the plug-in instances. |
reason |
String |
Details about the plug-in instance installation failure. |
values |
String |
Installation parameters of the plug-in instances. The parameters vary depending on the plug-in. |
resources |
Array of PluginResources objects |
Resources used by the plug-in instances. |
Parameter |
Type |
Description |
---|---|---|
involvedObject |
ObjectReference object |
Resource objects referenced by the plug-in. |
replicas |
Integer |
Number of replicas of the resource object. |
limits |
Map<String,String> |
Limit on requested resources. |
requests |
Map<String,String> |
Requested resources. |
Parameter |
Type |
Description |
---|---|---|
kind |
String |
API type of the resource object, for example, DaemonSet and Deployment. |
apiVersion |
String |
API version of the resource object. |
namespace |
String |
Namespace of the resource object. |
name |
String |
Name of the resource object. |
uid |
String |
Unique ID of the resource object. |
resourceVersion |
String |
Current version of the resource object. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Requests
This API is used to query details of a plug-in instance.
GET https://{endpoint}/v2/{project_id}/pools/{pool_name}/plugins/{template_name}?detail=true { "kind" : "Plugin", "apiVersion" : "v2", "metadata" : { "name" : "pool-6f5da0868084d36f8bd3346036-node-local-dns", "creationTimestamp" : "2025-03-17T12:29:18Z" }, "spec" : { "template" : { "name" : "node-local-dns", "version" : "1.6.36", "inputs" : { "custom" : { "enable_dnsconfig_admission" : true, "nameserver" : "135.0.0.1", "ndots" : "8", "search" : "1321" }, "flavor" : { "description" : "High avaiable", "name" : "HA", "resources" : [ { "limitsCpu" : "250m", "limitsMem" : "512Mi", "name" : "node-local-dns-admission-controller", "replicas" : 2, "requestsCpu" : "250m", "requestsMem" : "512Mi" }, { "limitsCpu" : "500m", "limitsMem" : "512Mi", "name" : "node-local-dns-cache", "requestsCpu" : "25m", "requestsMem" : "5Mi" } ], "size" : "large" } } } }, "status" : { "phase" : "Running", "version" : "1.6.36", "reason" : "Install complete", "resources" : [ { "limits" : { "cpu" : "500m", "memory" : "512Mi" }, "requests" : { "cpu" : "25m", "memory" : "5Mi" }, "involvedObject" : { "kind" : "DaemonSet", "namespace" : "kube-system", "name" : "node-local-dns", "uid" : "755437e4-b591-406c-a512-f9a02794082b", "apiVersion" : "apps/v1", "resourceVersion" : "702874" } }, { "limits" : { "cpu" : "250m", "memory" : "512Mi" }, "requests" : { "cpu" : "250m", "memory" : "512Mi" }, "involvedObject" : { "kind" : "Deployment", "namespace" : "kube-system", "name" : "node-local-dns-admission-controller", "uid" : "a770edcf-15c2-4caa-b10e-344de7eea7e1", "apiVersion" : "apps/v1", "resourceVersion" : "705195" }, "replicas" : 2 } ] } }
Example Responses
Status code: 200
Request succeeded.
{ "kind" : "Plugin", "apiVersion" : "v2", "metadata" : { "name" : "pool-6f5da0868084d36f8bd3346036-node-local-dns", "creationTimestamp" : "2025-03-17T12:29:18Z" }, "spec" : { "template" : { "name" : "node-local-dns", "version" : "1.6.36", "inputs" : { "custom" : { "enable_dnsconfig_admission" : true, "nameserver" : "135.0.0.1", "ndots" : "8", "search" : "1321" }, "flavor" : { "description" : "High avaiable", "name" : "HA", "resources" : [ { "limitsCpu" : "250m", "limitsMem" : "512Mi", "name" : "node-local-dns-admission-controller", "replicas" : 2, "requestsCpu" : "250m", "requestsMem" : "512Mi" }, { "limitsCpu" : "500m", "limitsMem" : "512Mi", "name" : "node-local-dns-cache", "requestsCpu" : "25m", "requestsMem" : "5Mi" } ], "size" : "large" } } } }, "status" : { "phase" : "Running", "version" : "1.6.36", "reason" : "Install complete", "resources" : [ { "limits" : { "cpu" : "500m", "memory" : "512Mi" }, "requests" : { "cpu" : "25m", "memory" : "5Mi" }, "involvedObject" : { "kind" : "DaemonSet", "namespace" : "kube-system", "name" : "node-local-dns", "uid" : "755437e4-b591-406c-a512-f9a02794082b", "apiVersion" : "apps/v1", "resourceVersion" : "702874" } }, { "limits" : { "cpu" : "250m", "memory" : "512Mi" }, "requests" : { "cpu" : "250m", "memory" : "512Mi" }, "involvedObject" : { "kind" : "Deployment", "namespace" : "kube-system", "name" : "node-local-dns-admission-controller", "uid" : "a770edcf-15c2-4caa-b10e-344de7eea7e1", "apiVersion" : "apps/v1", "resourceVersion" : "705195" }, "replicas" : 2 } ] } }
Status code: 400
Bad request
{ "error_code" : "ModelArts.50004000", "error_msg" : "Bad request. invalid nodepool name" }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
400 |
Bad request |
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.