检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Example Request Stopping a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 POST https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/action 1 2 3 { "os-stop": {} } Response N/A Returned Values Normal values Returned Values
Request Parameters None Example Request Checking whether a BMS (ID: 2d85af7c-cbfe-40c5-a378-4d03b42fb0e2) has a specified tag 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers/2d85af7c-cbfe-40c5-a378-4d03b42fb0e2/tags/{tag} Example Response If the specified
Tag Usage BMS-related services that support tags include ECS, IMS, and EVS. Each tag consists of a key and a value. A BMS can have a maximum of nine tags. For each resource, each tag key must be unique and can have only one tag value.
For details, see Adding a Port Exception on a Windows ECS Firewall. Then, try to remotely log in to the BMS again. Check the Port for Remotely Accessing the BMS Check whether port 3389 of the BMS can be accessed.
Example request Obtaining the remote login address of a BMS (ID: 47e9be4e-a7b9-471f-92d9-ffc83814e07a) 1 POST https://{ECS Endpoint}/v2/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action 1 2 3 4 5 { "os-getSerialConsole": { "type": "serial
Request Parameters None Example Request Querying the private IP addresses of a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/ips Response Parameters Parameter Type Description
Request Parameters None Example Request Querying the IP address of a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) in a specified VPC 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/ips/{vpc_id} Response Parameters
Request Parameters None Example Request Querying EVS disks attached to a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/os-volume_attachments Response Parameters Parameter
Request Parameters None Example Request Detaching an EVS disk (ID: b53f23bd-ee8f-49ec-9420-d1acfeaf91d6) attached from a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 DELETE https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd
Request Parameters None Example Request Querying information about an EVS disk (ID: b53f23bd-ee8f-49ec-9420-d1acfeaf91d6) attached to a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b
Request Parameters None Example Request Querying SSH key pairs in a project (ID: bbf1946d374b44a0a2a95533562ba954) 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/os-keypairs Response Parameters Parameter Type Description keypairs Array of objects Specifies key
/'";{[]}|\ The value does not support the following special characters: \" Example Request Modifying the metadata of a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) to customize a key-value pair 1 PUT https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428
Request Parameters None Example Request Querying information about NICs bound to a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/os-interface Response Parameters Parameter
/'";{[]}|\ The value does not support the following special characters: \" Example Request Updating the metadata of a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) to customize a key-value pair 1 POST https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428
Request Parameters None Example Request Querying information about a NIC (ID: ce531f90-199f-48c0-816c-13e38010b442) bound to a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd
Perform the following operations or contact the ECS R&D personnel who are responsible for one-click password reset. Run systemctl cat cloudResetPwdAgent to obtain the configuration file and its location.
Example Request Attaching an EVS disk (ID: b53f23bd-ee8f-49ec-9420-d1acfeaf91d6) to a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) with the mount point of /dev/sdb 1 POST https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/os-volume_attachments
Request Parameters None Example Request Querying details about a key pair (name: keypair-test) 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/os-keypairs/keypair-test Response Parameters Parameter Type Description keypair Object Specifies the SSH key pair.
To obtain the images supported by a BMS flavor, log in to the management console, view the images displayed on the Create ECS page, and obtain the image IDs on the Image Management Service page.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.