Infrastructure Manager previews let you verify proposed configuration changes
and monitor execution states before you deploy resources. Use previews to
validate operations and identify configuration issues prior to applying them.

If you have not created a preview, see
[Preview a deployment](https://docs.cloud.google.com/infrastructure-manager/docs/preview-deployment.md.txt).

If you have not created a preview, see
[Preview a deployment](https://docs.cloud.google.com/infrastructure-manager/docs/preview-deployment.md.txt).

## Before you begin

Ensure that you have the IAM permissions needed to view previews: `roles/config.admin`.

## List previews

To list the previews in a specific location:

    gcloud infra-manager previews list --location=LOCATION

Replace <var translate="no">LOCATION</var> with the location that contains the previews
you want to list. See
[Infrastructure Manager locations](https://docs.cloud.google.com/infrastructure-manager/docs/locations.md.txt) for the
list of valid locations.

## View details of a preview

After you create a preview, you might want to view details about the
deployment, including the following:

- The state of the preview. View the state to verify if the preview was successful, failed, or had any issues.
- The version of Terraform that Infra Manager used to create the preview.

To view details of a preview, use the following command:

    gcloud infra-manager previews describe \
        projects/PROJECT_ID/locations/LOCATION/previews/PREVIEW_ID

Replace:

- <var translate="no">PROJECT_ID</var> is the project ID where Infrastructure Manager runs.
- <var translate="no">LOCATION</var> is the location where Infra Manager runs. See [Infrastructure Manager locations](https://docs.cloud.google.com/infrastructure-manager/docs/locations.md.txt) for the list of valid locations.
- <var translate="no">PREVIEW_ID</var> is the preview identifier of the preview.

## What's next

- [Create a new preview](https://docs.cloud.google.com/infrastructure-manager/docs/preview-deployment.md.txt).
- Use Infra Manager to [deploy resources](https://docs.cloud.google.com/infrastructure-manager/docs/deploy-resources.md.txt).
- [Delete a preview](https://docs.cloud.google.com/infrastructure-manager/docs/delete-preview.md.txt).
- Learn more about [Terraform with Infra Manager](https://docs.cloud.google.com/infrastructure-manager/docs/infra-manager-terraform.md.txt).