Discovering cloud infrastructure on demand

If autodiscovery is enabled for a cloud, you can run discovery on demand to detect and register new infrastructure resources.

Before you begin

Autodiscovery must be enabled for the cloud. See Discovering cloud infrastructure.

About this task

By default, discovery of the cloud infrastructure runs automatically once a day. However, you might want to run discovery immediately if you add some new resources to the cloud and you don't want to wait for the next scheduled discovery.

Procedure

  1. Check whether autodiscovery is enabled for the cloud:
    palmctl get cloud --name <cloud-name>
    • If autodiscovery is enabled, auto_discover: true is shown in the output.
    • The next_discovery_scheduled_at value shows the scheduled time for the next discovery.
  2. Run discovery immediately for the cloud:
    palmctl rediscover cloud --name <cloud-name>

    You can also run the command with the resource_id of the cloud:

    palmctl rediscover cloud --id cloud-e5bfa709-4383-4e5c-8057-327c4ffb5891
  3. Monitor the discovery:
    palmctl get cloud --name <cloud-name>

    Discovery is completed when discovery_status: completed is shown in the output.