Setting Serial Port Login for an ECS
Function
This API is used to set serial port login for an ECS.
Constraints
- This API is only supported in the following regions: AF-Cairo, AF-Johannesburg, and ME-Riyadh.
- The setting takes effect only after an ECS is restarted.
Debugging
You can debug this API in API Explorer.
URI
PUT /v1/{project_id}/cloudservers/{server_id}/serial-console-options
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Definition Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
server_id |
Yes |
Definition Specifies the ECS ID. Constraints N/A Range N/A Default Value N/A |
Request
Table 2 describes the request parameters.
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
serial_console_options |
No |
Object |
Definition Sets the ECS serial port login. For details, see Table 3. Constraints N/A Range N/A Default Value N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
enabled |
No |
Boolean |
Definition Specifies whether the ECS supports login through a serial port. Constraints N/A Range
Default Value false |
Response
None.
Example Request
PUT https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/serial-console-options
{
"serial_console_options": {
"enabled": true
}
}
Example Response
None.
Returned Values
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