This topic describes how to search for a host, modify the basic information about a host, and delete a host from the host list.

Prerequisites

The host that you want to maintain is created in your bastion host. For more information, see Add hosts.

Limits

You can modify the basic information about hosts that are manually created or imported by using a file. You cannot modify the basic information about imported Elastic Compute Service (ECS) instances or ApsaraDB MyBase dedicated clusters.

Search for a host

  1. Log on to your bastion host. For more information, see Log on to a bastion host.
  2. In the left-side navigation pane, choose Assets > Hosts.
  3. On the Hosts page, configure filter conditions to search for a host. Hosts
    You can search for a host by using the following filter conditions:
    • Search by hostname or host IP address: Enter the name or IP address of a host. Then, click the icon to search for the host. Fuzzy search is supported.
    • Search by operating system: Select an operating system type. You can select Operating System: All, Linux, or Windows.
    • Search by host source: Select a host source. You can select Host Source: All, Local, ECS, or ApsaraDB Dedicated Cluster.
    • Search by host status: Select a host state. You can select Host Status: All, Normal, or Released. You can use Bastionhost to check whether ECS instances and ApsaraDB MyBase dedicated clusters are released. If an ECS instance or an ApsaraDB MyBase dedicated cluster is released, Bastionhost sets the Host Status parameter of the host to Released. If an ECS host or an ApsaraDB MyBase dedicated cluster is not released, Bastionhost sets the Host Status parameter of the host to Normal. You can select Released as a filter condition to search for all released hosts. This way, you can delete the released hosts in a convenient manner.
    Note If you configure multiple filter conditions at the same time, Bastionhost displays the hosts that meet all filter conditions.

Modify the basic information about a host

  1. Log on to your bastion host. For more information, see Log on to a bastion host.
  2. In the left-side navigation pane, choose Assets > Hosts.
  3. On the Hosts page, find the host whose basic information you want to modify and click the name of the host.
  4. Modify the Operating System, Host IP Address, Hostname, Network Domain, Remarks, and Host Group parameters of the host. Host information
    Note You cannot modify the Host IP Address or Hostname parameters of an ECS instance.
  5. Click Update.
    After you modify the basic information about the host, the new settings immediately take effect.

Delete a host

If you no longer need to maintain a host, you can delete the host from the host list.

  1. Log on to your bastion host. For more information, see Log on to a bastion host.
  2. In the left-side navigation pane, choose Assets > Hosts.
  3. On the Hosts page, delete a host.
    • Delete a host: Find the host that you want to delete and click Delete in the Actions column. You can also select the host and click Delete in the lower part of the host list.
    • Delete multiple hosts: Select the hosts that you want to delete and click Delete in the lower part of the host list.
  4. In the Are you sure you want to delete the selected hosts? message, click Delete.
    After you delete the host, all permissions on the host are deleted. For example, if a user is granted the permissions to manage the host, the permissions are revoked when the host is deleted. You can no longer log on to the host by using Bastionhost.