Obtaining Custom Node Configurations of a Resource Pool
Function
This API is used to obtain custom node configurations of a resource pool.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
GET /v2/{project_id}/pools/{pool_name}/node-config
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: User project ID. For details, see Obtaining a Project ID and Name. Constraints: N/A Range: N/A Default Value: N/A |
|
pool_name |
Yes |
String |
Constraints: N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
apiVersion |
String |
Definition: The value is fixed at v2. Range: N/A |
|
kind |
String |
The value is fixed at NodeConfig. |
|
metadata |
NodeconfigMeta object |
Definition: Metadata of a resource pool node. |
|
spec |
NodeconfigSpec object |
Definition: Specifications of a resource pool node. |
|
status |
NodeconfigStatus object |
Definition: Status of a resource pool node. |
|
Parameter |
Type |
Description |
|---|---|---|
|
configs |
Object |
Custom node configurations, including binding cores to nodes, enabling cache clearing, and enabling transparent huge pages currently. "configs": { "cpu_manager": { "mode": "static/none" //static indicates to enable core binding, and none indicates to disable core binding. }, "drop_cache": { "mode": "enable/disable" //enable indicates to enable cache clearing. }, "transparent_hugepage": { "mode": "always/madvise/never" //always indicates to enable transparent huge pages, never indicates to disable transparent huge pages, and madvice indicates that the system determines whether to enable this function. } } |
|
Parameter |
Type |
Description |
|---|---|---|
|
phase |
String |
Plugin instance status. Options:
|
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
X-request-id |
String |
This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Range: N/A |
|
400 |
Error response |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot