Modifying the Cloud Server Information of a FlexusL Instance
Function
This API is used to modify cloud server information. Currently, the name, description, and host name of a cloud server can be modified. The API is the ECS API for modifying an ECS. This section lists the key information about using the API. For more information about the API, see Modifying ECS Details.
This API used by cloud servers in the FlexusL instances is the same as that used by ECSs. The response parameter description, API usage example, and return values of ECSs also apply to the FlexusL instances.
Constraints
After the host name of a cloud server is changed, you need to restart the cloud server for the change to take effect.
URI
PUT /v1/{project_id}/cloudservers/{server_id}
In the parameter description, server_id indicates the cloud server ID. Obtain the cloud server ID based on Querying a Created FlexusL Instance.
Example Request
Change host name of the cloud server whose ID is 72a270de-665a-4f46-8d64-24ad6edccdd2 to NameA.
PUT /v1/{project_id}/cloudservers/{72a270de-665a-4f46-8d64-24ad6edccdd2} { "server": { "hostname": "NameA" } }
Example Response
{ "server": { "tenant_id": "067cf8aecf3845d1ad7a5d308322f13b", "image": "", "accessIPv4": null, "metadata": { "__support_agent_list": "hss,hss-pc,ces" }, "addresses": { "4022721e-0476-41ea-91f4-1883065a68cc": [ { "addr": "192.168.12.151", "version": 4 } ] }, "security_options": { "secure_boot_enabled": null, "tpm_enabled": null }, "accessIPv6": null, "created": "2024-09-13T07:30:25Z", "OS-EXT-SRV-ATTR:user_data": null, "hostId": "fc724a7f21982eec27a7c4d3ab33275733834e1d4316cadd2a684387", "description": "", "OS-EXT-SRV-ATTR:hostname": "NameA", "flavor": { "links": [ { "rel": "bookmark", "href": "https://ecs.cn-north-4.myhuaweicloud.com/flavors/at7.large.1" } ], "id": "at7.large.1" }, "OS-DCF:diskConfig": "MANUAL", "user_id": "862856742c334c8a801460a39f1f1cfb", "name": "hcss_ecs_ff60", "progress": 0, "links": [ { "rel": "self", "href": "https://ecs.cn-north-4.myhuaweicloud.com/v1.0/servers/72a270de-665a-4f46-8d64-24ad6edccdd2" }, { "rel": "bookmark", "href": "https://ecs.cn-north-4.myhuaweicloud.com/servers/72a270de-665a-4f46-8d64-24ad6edccdd2" } ], "id": "72a270de-665a-4f46-8d64-24ad6edccdd2", "updated": "2024-09-14T06:20:34Z", "status": "ACTIVE" } }
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