1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getReservation
Google Cloud v9.6.0 published on Wednesday, Nov 26, 2025 by Pulumi
gcp logo
Google Cloud v9.6.0 published on Wednesday, Nov 26, 2025 by Pulumi

    Provides access to available Google Compute Reservation Resources for a given project. See more about Reservations of Compute Engine resources in the upstream docs.

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const reservation = gcp.compute.getReservation({
        name: "gce-reservation",
        zone: "us-central1-a",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    reservation = gcp.compute.get_reservation(name="gce-reservation",
        zone="us-central1-a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.LookupReservation(ctx, &compute.LookupReservationArgs{
    			Name: "gce-reservation",
    			Zone: "us-central1-a",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var reservation = Gcp.Compute.GetReservation.Invoke(new()
        {
            Name = "gce-reservation",
            Zone = "us-central1-a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.ComputeFunctions;
    import com.pulumi.gcp.compute.inputs.GetReservationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var reservation = ComputeFunctions.getReservation(GetReservationArgs.builder()
                .name("gce-reservation")
                .zone("us-central1-a")
                .build());
    
        }
    }
    
    variables:
      reservation:
        fn::invoke:
          function: gcp:compute:getReservation
          arguments:
            name: gce-reservation
            zone: us-central1-a
    

    Using getReservation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getReservation(args: GetReservationArgs, opts?: InvokeOptions): Promise<GetReservationResult>
    function getReservationOutput(args: GetReservationOutputArgs, opts?: InvokeOptions): Output<GetReservationResult>
    def get_reservation(name: Optional[str] = None,
                        project: Optional[str] = None,
                        zone: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetReservationResult
    def get_reservation_output(name: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        zone: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetReservationResult]
    func LookupReservation(ctx *Context, args *LookupReservationArgs, opts ...InvokeOption) (*LookupReservationResult, error)
    func LookupReservationOutput(ctx *Context, args *LookupReservationOutputArgs, opts ...InvokeOption) LookupReservationResultOutput

    > Note: This function is named LookupReservation in the Go SDK.

    public static class GetReservation 
    {
        public static Task<GetReservationResult> InvokeAsync(GetReservationArgs args, InvokeOptions? opts = null)
        public static Output<GetReservationResult> Invoke(GetReservationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReservationResult> getReservation(GetReservationArgs args, InvokeOptions options)
    public static Output<GetReservationResult> getReservation(GetReservationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:compute/getReservation:getReservation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Compute Reservation.
    Zone string
    Zone where the Compute Reservation resides.
    Project string
    Project from which to list the Compute Reservation. Defaults to project declared in the provider.
    Name string
    The name of the Compute Reservation.
    Zone string
    Zone where the Compute Reservation resides.
    Project string
    Project from which to list the Compute Reservation. Defaults to project declared in the provider.
    name String
    The name of the Compute Reservation.
    zone String
    Zone where the Compute Reservation resides.
    project String
    Project from which to list the Compute Reservation. Defaults to project declared in the provider.
    name string
    The name of the Compute Reservation.
    zone string
    Zone where the Compute Reservation resides.
    project string
    Project from which to list the Compute Reservation. Defaults to project declared in the provider.
    name str
    The name of the Compute Reservation.
    zone str
    Zone where the Compute Reservation resides.
    project str
    Project from which to list the Compute Reservation. Defaults to project declared in the provider.
    name String
    The name of the Compute Reservation.
    zone String
    Zone where the Compute Reservation resides.
    project String
    Project from which to list the Compute Reservation. Defaults to project declared in the provider.

    getReservation Result

    The following output properties are available:

    Supporting Types

    GetReservationDeleteAfterDuration

    Nanos int
    Number of nanoseconds for the auto-delete duration.
    Seconds string
    Number of seconds for the auto-delete duration.
    Nanos int
    Number of nanoseconds for the auto-delete duration.
    Seconds string
    Number of seconds for the auto-delete duration.
    nanos Integer
    Number of nanoseconds for the auto-delete duration.
    seconds String
    Number of seconds for the auto-delete duration.
    nanos number
    Number of nanoseconds for the auto-delete duration.
    seconds string
    Number of seconds for the auto-delete duration.
    nanos int
    Number of nanoseconds for the auto-delete duration.
    seconds str
    Number of seconds for the auto-delete duration.
    nanos Number
    Number of nanoseconds for the auto-delete duration.
    seconds String
    Number of seconds for the auto-delete duration.

    GetReservationReservationSharingPolicy

    ServiceShareType string
    Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
    ServiceShareType string
    Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
    serviceShareType String
    Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
    serviceShareType string
    Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
    service_share_type str
    Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
    serviceShareType String
    Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]

    GetReservationResourceStatus

    HealthInfos List<GetReservationResourceStatusHealthInfo>
    Health information for the reservation.
    ReservationBlockCount int
    The number of reservation blocks associated with this reservation.
    ReservationMaintenances List<GetReservationResourceStatusReservationMaintenance>
    Maintenance information for this reservation
    SpecificSkuAllocations List<GetReservationResourceStatusSpecificSkuAllocation>
    Allocation Properties of this reservation.
    HealthInfos []GetReservationResourceStatusHealthInfo
    Health information for the reservation.
    ReservationBlockCount int
    The number of reservation blocks associated with this reservation.
    ReservationMaintenances []GetReservationResourceStatusReservationMaintenance
    Maintenance information for this reservation
    SpecificSkuAllocations []GetReservationResourceStatusSpecificSkuAllocation
    Allocation Properties of this reservation.
    healthInfos List<GetReservationResourceStatusHealthInfo>
    Health information for the reservation.
    reservationBlockCount Integer
    The number of reservation blocks associated with this reservation.
    reservationMaintenances List<GetReservationResourceStatusReservationMaintenance>
    Maintenance information for this reservation
    specificSkuAllocations List<GetReservationResourceStatusSpecificSkuAllocation>
    Allocation Properties of this reservation.
    healthInfos GetReservationResourceStatusHealthInfo[]
    Health information for the reservation.
    reservationBlockCount number
    The number of reservation blocks associated with this reservation.
    reservationMaintenances GetReservationResourceStatusReservationMaintenance[]
    Maintenance information for this reservation
    specificSkuAllocations GetReservationResourceStatusSpecificSkuAllocation[]
    Allocation Properties of this reservation.
    health_infos Sequence[GetReservationResourceStatusHealthInfo]
    Health information for the reservation.
    reservation_block_count int
    The number of reservation blocks associated with this reservation.
    reservation_maintenances Sequence[GetReservationResourceStatusReservationMaintenance]
    Maintenance information for this reservation
    specific_sku_allocations Sequence[GetReservationResourceStatusSpecificSkuAllocation]
    Allocation Properties of this reservation.
    healthInfos List<Property Map>
    Health information for the reservation.
    reservationBlockCount Number
    The number of reservation blocks associated with this reservation.
    reservationMaintenances List<Property Map>
    Maintenance information for this reservation
    specificSkuAllocations List<Property Map>
    Allocation Properties of this reservation.

    GetReservationResourceStatusHealthInfo

    DegradedBlockCount int
    The number of reservation blocks that are degraded.
    HealthStatus string
    The health status of the reservation.
    HealthyBlockCount int
    The number of reservation blocks that are healthy.
    DegradedBlockCount int
    The number of reservation blocks that are degraded.
    HealthStatus string
    The health status of the reservation.
    HealthyBlockCount int
    The number of reservation blocks that are healthy.
    degradedBlockCount Integer
    The number of reservation blocks that are degraded.
    healthStatus String
    The health status of the reservation.
    healthyBlockCount Integer
    The number of reservation blocks that are healthy.
    degradedBlockCount number
    The number of reservation blocks that are degraded.
    healthStatus string
    The health status of the reservation.
    healthyBlockCount number
    The number of reservation blocks that are healthy.
    degraded_block_count int
    The number of reservation blocks that are degraded.
    health_status str
    The health status of the reservation.
    healthy_block_count int
    The number of reservation blocks that are healthy.
    degradedBlockCount Number
    The number of reservation blocks that are degraded.
    healthStatus String
    The health status of the reservation.
    healthyBlockCount Number
    The number of reservation blocks that are healthy.

    GetReservationResourceStatusReservationMaintenance

    InstanceMaintenanceOngoingCount int
    Describes number of instances that have ongoing maintenance.
    InstanceMaintenancePendingCount int
    Describes number of instances that have pending maintenance.
    MaintenanceOngoingCount int
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
    MaintenancePendingCount int
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
    SchedulingType string
    The type of maintenance for the reservation.
    SubblockInfraMaintenanceOngoingCount int
    Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
    SubblockInfraMaintenancePendingCount int
    Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
    UpcomingGroupMaintenances List<GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance>
    Maintenance information on this group of VMs.
    InstanceMaintenanceOngoingCount int
    Describes number of instances that have ongoing maintenance.
    InstanceMaintenancePendingCount int
    Describes number of instances that have pending maintenance.
    MaintenanceOngoingCount int
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
    MaintenancePendingCount int
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
    SchedulingType string
    The type of maintenance for the reservation.
    SubblockInfraMaintenanceOngoingCount int
    Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
    SubblockInfraMaintenancePendingCount int
    Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
    UpcomingGroupMaintenances []GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance
    Maintenance information on this group of VMs.
    instanceMaintenanceOngoingCount Integer
    Describes number of instances that have ongoing maintenance.
    instanceMaintenancePendingCount Integer
    Describes number of instances that have pending maintenance.
    maintenanceOngoingCount Integer
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
    maintenancePendingCount Integer
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
    schedulingType String
    The type of maintenance for the reservation.
    subblockInfraMaintenanceOngoingCount Integer
    Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
    subblockInfraMaintenancePendingCount Integer
    Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
    upcomingGroupMaintenances List<GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance>
    Maintenance information on this group of VMs.
    instanceMaintenanceOngoingCount number
    Describes number of instances that have ongoing maintenance.
    instanceMaintenancePendingCount number
    Describes number of instances that have pending maintenance.
    maintenanceOngoingCount number
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
    maintenancePendingCount number
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
    schedulingType string
    The type of maintenance for the reservation.
    subblockInfraMaintenanceOngoingCount number
    Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
    subblockInfraMaintenancePendingCount number
    Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
    upcomingGroupMaintenances GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance[]
    Maintenance information on this group of VMs.
    instance_maintenance_ongoing_count int
    Describes number of instances that have ongoing maintenance.
    instance_maintenance_pending_count int
    Describes number of instances that have pending maintenance.
    maintenance_ongoing_count int
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
    maintenance_pending_count int
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
    scheduling_type str
    The type of maintenance for the reservation.
    subblock_infra_maintenance_ongoing_count int
    Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
    subblock_infra_maintenance_pending_count int
    Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
    upcoming_group_maintenances Sequence[GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance]
    Maintenance information on this group of VMs.
    instanceMaintenanceOngoingCount Number
    Describes number of instances that have ongoing maintenance.
    instanceMaintenancePendingCount Number
    Describes number of instances that have pending maintenance.
    maintenanceOngoingCount Number
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
    maintenancePendingCount Number
    Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
    schedulingType String
    The type of maintenance for the reservation.
    subblockInfraMaintenanceOngoingCount Number
    Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
    subblockInfraMaintenancePendingCount Number
    Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
    upcomingGroupMaintenances List<Property Map>
    Maintenance information on this group of VMs.

    GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance

    CanReschedule bool
    Indicates if the maintenance can be customer triggered.
    LatestWindowStartTime string
    The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
    MaintenanceOnShutdown bool
    Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
    MaintenanceReasons List<string>
    The reasons for the maintenance. Only valid for vms.
    MaintenanceStatus string
    Status of the maintenance.
    Type string
    Defines the type of maintenance.
    WindowEndTime string
    The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
    WindowStartTime string
    The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
    CanReschedule bool
    Indicates if the maintenance can be customer triggered.
    LatestWindowStartTime string
    The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
    MaintenanceOnShutdown bool
    Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
    MaintenanceReasons []string
    The reasons for the maintenance. Only valid for vms.
    MaintenanceStatus string
    Status of the maintenance.
    Type string
    Defines the type of maintenance.
    WindowEndTime string
    The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
    WindowStartTime string
    The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
    canReschedule Boolean
    Indicates if the maintenance can be customer triggered.
    latestWindowStartTime String
    The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
    maintenanceOnShutdown Boolean
    Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
    maintenanceReasons List<String>
    The reasons for the maintenance. Only valid for vms.
    maintenanceStatus String
    Status of the maintenance.
    type String
    Defines the type of maintenance.
    windowEndTime String
    The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
    windowStartTime String
    The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
    canReschedule boolean
    Indicates if the maintenance can be customer triggered.
    latestWindowStartTime string
    The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
    maintenanceOnShutdown boolean
    Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
    maintenanceReasons string[]
    The reasons for the maintenance. Only valid for vms.
    maintenanceStatus string
    Status of the maintenance.
    type string
    Defines the type of maintenance.
    windowEndTime string
    The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
    windowStartTime string
    The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
    can_reschedule bool
    Indicates if the maintenance can be customer triggered.
    latest_window_start_time str
    The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
    maintenance_on_shutdown bool
    Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
    maintenance_reasons Sequence[str]
    The reasons for the maintenance. Only valid for vms.
    maintenance_status str
    Status of the maintenance.
    type str
    Defines the type of maintenance.
    window_end_time str
    The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
    window_start_time str
    The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
    canReschedule Boolean
    Indicates if the maintenance can be customer triggered.
    latestWindowStartTime String
    The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
    maintenanceOnShutdown Boolean
    Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
    maintenanceReasons List<String>
    The reasons for the maintenance. Only valid for vms.
    maintenanceStatus String
    Status of the maintenance.
    type String
    Defines the type of maintenance.
    windowEndTime String
    The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
    windowStartTime String
    The current start time of the maintenance window. This timestamp value is in RFC3339 text format.

    GetReservationResourceStatusSpecificSkuAllocation

    SourceInstanceTemplateId string
    ID of the instance template used to populate reservation properties.
    Utilizations Dictionary<string, string>
    Per service utilization breakdown. The Key is the Google Cloud managed service name.
    SourceInstanceTemplateId string
    ID of the instance template used to populate reservation properties.
    Utilizations map[string]string
    Per service utilization breakdown. The Key is the Google Cloud managed service name.
    sourceInstanceTemplateId String
    ID of the instance template used to populate reservation properties.
    utilizations Map<String,String>
    Per service utilization breakdown. The Key is the Google Cloud managed service name.
    sourceInstanceTemplateId string
    ID of the instance template used to populate reservation properties.
    utilizations {[key: string]: string}
    Per service utilization breakdown. The Key is the Google Cloud managed service name.
    source_instance_template_id str
    ID of the instance template used to populate reservation properties.
    utilizations Mapping[str, str]
    Per service utilization breakdown. The Key is the Google Cloud managed service name.
    sourceInstanceTemplateId String
    ID of the instance template used to populate reservation properties.
    utilizations Map<String>
    Per service utilization breakdown. The Key is the Google Cloud managed service name.

    GetReservationShareSetting

    ProjectMaps List<GetReservationShareSettingProjectMap>
    A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
    Projects List<string>
    List of project IDs with which the reservation is shared.
    ShareType string
    Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
    ProjectMaps []GetReservationShareSettingProjectMap
    A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
    Projects []string
    List of project IDs with which the reservation is shared.
    ShareType string
    Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
    projectMaps List<GetReservationShareSettingProjectMap>
    A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
    projects List<String>
    List of project IDs with which the reservation is shared.
    shareType String
    Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
    projectMaps GetReservationShareSettingProjectMap[]
    A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
    projects string[]
    List of project IDs with which the reservation is shared.
    shareType string
    Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
    project_maps Sequence[GetReservationShareSettingProjectMap]
    A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
    projects Sequence[str]
    List of project IDs with which the reservation is shared.
    share_type str
    Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
    projectMaps List<Property Map>
    A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.
    projects List<String>
    List of project IDs with which the reservation is shared.
    shareType String
    Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]

    GetReservationShareSettingProjectMap

    Id string
    ProjectId string
    The project id/number, should be same as the key of this project config in the project map.
    Id string
    ProjectId string
    The project id/number, should be same as the key of this project config in the project map.
    id String
    projectId String
    The project id/number, should be same as the key of this project config in the project map.
    id string
    projectId string
    The project id/number, should be same as the key of this project config in the project map.
    id str
    project_id str
    The project id/number, should be same as the key of this project config in the project map.
    id String
    projectId String
    The project id/number, should be same as the key of this project config in the project map.

    GetReservationSpecificReservation

    AssuredCount int
    Indicates how many instances are actually usable currently.
    Count int
    The number of resources that are allocated.
    InUseCount int
    How many instances are in use.
    InstanceProperties List<GetReservationSpecificReservationInstanceProperty>
    The instance properties for the reservation.
    SourceInstanceTemplate string
    Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
    AssuredCount int
    Indicates how many instances are actually usable currently.
    Count int
    The number of resources that are allocated.
    InUseCount int
    How many instances are in use.
    InstanceProperties []GetReservationSpecificReservationInstanceProperty
    The instance properties for the reservation.
    SourceInstanceTemplate string
    Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
    assuredCount Integer
    Indicates how many instances are actually usable currently.
    count Integer
    The number of resources that are allocated.
    inUseCount Integer
    How many instances are in use.
    instanceProperties List<GetReservationSpecificReservationInstanceProperty>
    The instance properties for the reservation.
    sourceInstanceTemplate String
    Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
    assuredCount number
    Indicates how many instances are actually usable currently.
    count number
    The number of resources that are allocated.
    inUseCount number
    How many instances are in use.
    instanceProperties GetReservationSpecificReservationInstanceProperty[]
    The instance properties for the reservation.
    sourceInstanceTemplate string
    Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
    assured_count int
    Indicates how many instances are actually usable currently.
    count int
    The number of resources that are allocated.
    in_use_count int
    How many instances are in use.
    instance_properties Sequence[GetReservationSpecificReservationInstanceProperty]
    The instance properties for the reservation.
    source_instance_template str
    Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
    assuredCount Number
    Indicates how many instances are actually usable currently.
    count Number
    The number of resources that are allocated.
    inUseCount Number
    How many instances are in use.
    instanceProperties List<Property Map>
    The instance properties for the reservation.
    sourceInstanceTemplate String
    Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.

    GetReservationSpecificReservationInstanceProperty

    GuestAccelerators List<GetReservationSpecificReservationInstancePropertyGuestAccelerator>
    Guest accelerator type and count.
    LocalSsds List<GetReservationSpecificReservationInstancePropertyLocalSsd>
    The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
    LocationHint string
    An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
    MachineType string
    The name of the machine type to reserve.
    MaintenanceInterval string
    Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
    MinCpuPlatform string
    The minimum CPU platform for the reservation. For example, '"Intel Skylake"'. See the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) for information on available CPU platforms.
    GuestAccelerators []GetReservationSpecificReservationInstancePropertyGuestAccelerator
    Guest accelerator type and count.
    LocalSsds []GetReservationSpecificReservationInstancePropertyLocalSsd
    The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
    LocationHint string
    An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
    MachineType string
    The name of the machine type to reserve.
    MaintenanceInterval string
    Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
    MinCpuPlatform string
    The minimum CPU platform for the reservation. For example, '"Intel Skylake"'. See the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) for information on available CPU platforms.
    guestAccelerators List<GetReservationSpecificReservationInstancePropertyGuestAccelerator>
    Guest accelerator type and count.
    localSsds List<GetReservationSpecificReservationInstancePropertyLocalSsd>
    The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
    locationHint String
    An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
    machineType String
    The name of the machine type to reserve.
    maintenanceInterval String
    Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
    minCpuPlatform String
    The minimum CPU platform for the reservation. For example, '"Intel Skylake"'. See the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) for information on available CPU platforms.
    guestAccelerators GetReservationSpecificReservationInstancePropertyGuestAccelerator[]
    Guest accelerator type and count.
    localSsds GetReservationSpecificReservationInstancePropertyLocalSsd[]
    The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
    locationHint string
    An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
    machineType string
    The name of the machine type to reserve.
    maintenanceInterval string
    Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
    minCpuPlatform string
    The minimum CPU platform for the reservation. For example, '"Intel Skylake"'. See the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) for information on available CPU platforms.
    guest_accelerators Sequence[GetReservationSpecificReservationInstancePropertyGuestAccelerator]
    Guest accelerator type and count.
    local_ssds Sequence[GetReservationSpecificReservationInstancePropertyLocalSsd]
    The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
    location_hint str
    An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
    machine_type str
    The name of the machine type to reserve.
    maintenance_interval str
    Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
    min_cpu_platform str
    The minimum CPU platform for the reservation. For example, '"Intel Skylake"'. See the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) for information on available CPU platforms.
    guestAccelerators List<Property Map>
    Guest accelerator type and count.
    localSsds List<Property Map>
    The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
    locationHint String
    An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
    machineType String
    The name of the machine type to reserve.
    maintenanceInterval String
    Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
    minCpuPlatform String
    The minimum CPU platform for the reservation. For example, '"Intel Skylake"'. See the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) for information on available CPU platforms.

    GetReservationSpecificReservationInstancePropertyGuestAccelerator

    AcceleratorCount int
    The number of the guest accelerator cards exposed to this instance.
    AcceleratorType string

    The full or partial URL of the accelerator type to attach to this instance. For example: 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'

    If you are creating an instance template, specify only the accelerator name.

    AcceleratorCount int
    The number of the guest accelerator cards exposed to this instance.
    AcceleratorType string

    The full or partial URL of the accelerator type to attach to this instance. For example: 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'

    If you are creating an instance template, specify only the accelerator name.

    acceleratorCount Integer
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType String

    The full or partial URL of the accelerator type to attach to this instance. For example: 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'

    If you are creating an instance template, specify only the accelerator name.

    acceleratorCount number
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType string

    The full or partial URL of the accelerator type to attach to this instance. For example: 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'

    If you are creating an instance template, specify only the accelerator name.

    accelerator_count int
    The number of the guest accelerator cards exposed to this instance.
    accelerator_type str

    The full or partial URL of the accelerator type to attach to this instance. For example: 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'

    If you are creating an instance template, specify only the accelerator name.

    acceleratorCount Number
    The number of the guest accelerator cards exposed to this instance.
    acceleratorType String

    The full or partial URL of the accelerator type to attach to this instance. For example: 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'

    If you are creating an instance template, specify only the accelerator name.

    GetReservationSpecificReservationInstancePropertyLocalSsd

    DiskSizeGb int
    The size of the disk in base-2 GB.
    Interface string
    The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]
    DiskSizeGb int
    The size of the disk in base-2 GB.
    Interface string
    The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]
    diskSizeGb Integer
    The size of the disk in base-2 GB.
    interface_ String
    The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]
    diskSizeGb number
    The size of the disk in base-2 GB.
    interface string
    The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]
    disk_size_gb int
    The size of the disk in base-2 GB.
    interface str
    The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]
    diskSizeGb Number
    The size of the disk in base-2 GB.
    interface String
    The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v9.6.0 published on Wednesday, Nov 26, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate