检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
When using native OpenStack APIs for SSH key management, use the endpoints of the ECS service. For details, see Regions and Endpoints. Parent topic: BMS APIs
Otherwise, the BMS will be displayed only on the ECS console. After deleting the __type_baremetal tag, you can add it again by following the instructions in Adding a Tag for a BMS (Deprecated). After the tag is added, the BMS will be displayed on the BMS console.
For details about how to configure policy-based routes, see Binding an EIP to the Extended Network Interface of an ECS to Enable Internet Access. Parent topic: Network and Security FAQ
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.
It shares the number of instances, CPU cores, and memory with the ECS service. You can view BMS quota in the Elastic Cloud Server row. For details see How Do I View My Quotas? Parent topic: General FAQ
Otherwise, BMSs will be available only on the ECS console. A new tag will overwrite the existing one. If you want to retain the original tag, add it to the list of new tags. You are advised to add __type_baremetal to the added tags list each time you add a tag.
For details, see Permissions and Supported Actions in Elastic Cloud Server API Reference. When customizing a BMS user policy in IAM, add the ecs:*:get and ecs:*:list permissions. Otherwise, functions on some pages cannot work properly.
Request Parameters None Example Request Deleting a BMS (ID: 9ab74d89-61e7-4259-8546-465fdebe4944) 1 DELETE https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers/9ab74d89-61e7-4259-8546-465fdebe4944 Response N/A Returned Values Normal values Returned Values Description
Click Select, select ECS BMS in the displayed Select Cloud Service dialog box, and click OK. Validity Period: Select Permanent. Description: This parameter is optional. You can enter "Support BMS server monitoring".
Click Select, select ECS BMS in the displayed Select Cloud Service dialog box, and click OK. Validity Period: Select Permanent. Description: This parameter is optional. You can enter "Support BMS server monitoring".
Request Parameters None Example Request Deleting an SSH key pair (name: KeyPair-123) 1 DELETE https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/os-keypairs/keypair-test Response N/A Returned Values Normal values Returned Values Description 204 The server has processed
Example Request Starting 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-start": {} } Response N/A Returned Values Normal
It shares the number of instances, CPU cores, and memory with the ECS service. You can view BMS quota in the Elastic Cloud Server row. For details see How Do I View My Quotas?
Example Request Querying BMSs 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers Querying BMSs with the __type_baremetal tag 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers?
Request Parameters None Example Request Deleting metadata of a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 DELETE https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/metadata/{key} Response N/A Returned Values Normal values
Example Request Querying BMS flavors 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/flavors/detail Querying BMS flavors with the minimum disk of 3,725 GB 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/flavors/detail?
Request Parameters None Example Request Querying tags of a BMS (ID: 53206ed0-56de-4d6b-b7ee-ffc62ca26f43) 1 GET https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers/53206ed0-56de-4d6b-b7ee-ffc62ca26f43/tags Response Parameters Parameter Type Description tags Array
Request Parameters None Example Request Querying metadata of a BMS (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd) 1 GET https://{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/metadata Response Parameters Parameter Type Description metadata
Example Request Restarting 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 4 5 { "reboot": { "type": "HARD" } } Response N/A Returned Values
Request Parameters None Example Request Adding a tag for a BMS (ID: 53206ed0-56de-4d6b-b7ee-ffc62ca26f43) 1 PUT https://{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers/53206ed0-56de-4d6b-b7ee-ffc62ca26f43/tags/{tag} Response N/A Returned Values Normal values Returned