blob: 5e96ec1c306ce195667a39e84f836423e69cc188 [file] [log] [blame] [edit]
---
subcategory: "Compute Engine"
description: |-
Provide access to a Reservation's attributes
---
# google_compute_reservation
Provides access to available Google Compute Reservation Resources for a given project.
See more about [Reservations of Compute Engine resources](https://cloud.google.com/compute/docs/instances/reservations-overview) in the upstream docs.
```hcl
data "google_compute_reservation" "reservation" {
name = "gce-reservation"
zone = "us-central1-a"
}
```
## Argument Reference
The following arguments are supported:
* `name` (Required) - The name of the Compute Reservation.
* `zone` (Required) - Zone where the Compute Reservation resides.
* `project` (Optional) - Project from which to list the Compute Reservation. Defaults to project declared in the provider.
## Attributes Reference
See [google_compute_reservation](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_reservation) resource for details of the available attributes.