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 dictionaryThe following arguments are supported:
getReservation Result
The following output properties are available:
- Block
Names List<string> - Commitment string
- Creation
Timestamp string - Delete
After List<GetDurations Reservation Delete After Duration> - Delete
At stringTime - Description string
- Enable
Emergent boolMaintenance - Id string
- Kind string
- Linked
Commitments List<string> - Name string
- Reservation
Block intCount - Reservation
Sharing List<GetPolicies Reservation Reservation Sharing Policy> - Resource
Statuses List<GetReservation Resource Status> - Satisfies
Pzs bool - Self
Link string -
List<Get
Reservation Share Setting> - Specific
Reservation boolRequired - Specific
Reservations List<GetReservation Specific Reservation> - Status string
- Zone string
- Project string
- Block
Names []string - Commitment string
- Creation
Timestamp string - Delete
After []GetDurations Reservation Delete After Duration - Delete
At stringTime - Description string
- Enable
Emergent boolMaintenance - Id string
- Kind string
- Linked
Commitments []string - Name string
- Reservation
Block intCount - Reservation
Sharing []GetPolicies Reservation Reservation Sharing Policy - Resource
Statuses []GetReservation Resource Status - Satisfies
Pzs bool - Self
Link string -
[]Get
Reservation Share Setting - Specific
Reservation boolRequired - Specific
Reservations []GetReservation Specific Reservation - Status string
- Zone string
- Project string
- block
Names List<String> - commitment String
- creation
Timestamp String - delete
After List<GetDurations Reservation Delete After Duration> - delete
At StringTime - description String
- enable
Emergent BooleanMaintenance - id String
- kind String
- linked
Commitments List<String> - name String
- reservation
Block IntegerCount - reservation
Sharing List<GetPolicies Reservation Reservation Sharing Policy> - resource
Statuses List<GetReservation Resource Status> - satisfies
Pzs Boolean - self
Link String -
List<Get
Reservation Share Setting> - specific
Reservation BooleanRequired - specific
Reservations List<GetReservation Specific Reservation> - status String
- zone String
- project String
- block
Names string[] - commitment string
- creation
Timestamp string - delete
After GetDurations Reservation Delete After Duration[] - delete
At stringTime - description string
- enable
Emergent booleanMaintenance - id string
- kind string
- linked
Commitments string[] - name string
- reservation
Block numberCount - reservation
Sharing GetPolicies Reservation Reservation Sharing Policy[] - resource
Statuses GetReservation Resource Status[] - satisfies
Pzs boolean - self
Link string -
Get
Reservation Share Setting[] - specific
Reservation booleanRequired - specific
Reservations GetReservation Specific Reservation[] - status string
- zone string
- project string
- block_
names Sequence[str] - commitment str
- creation_
timestamp str - delete_
after_ Sequence[Getdurations Reservation Delete After Duration] - delete_
at_ strtime - description str
- enable_
emergent_ boolmaintenance - id str
- kind str
- linked_
commitments Sequence[str] - name str
- reservation_
block_ intcount - reservation_
sharing_ Sequence[Getpolicies Reservation Reservation Sharing Policy] - resource_
statuses Sequence[GetReservation Resource Status] - satisfies_
pzs bool - self_
link str -
Sequence[Get
Reservation Share Setting] - specific_
reservation_ boolrequired - specific_
reservations Sequence[GetReservation Specific Reservation] - status str
- zone str
- project str
- block
Names List<String> - commitment String
- creation
Timestamp String - delete
After List<Property Map>Durations - delete
At StringTime - description String
- enable
Emergent BooleanMaintenance - id String
- kind String
- linked
Commitments List<String> - name String
- reservation
Block NumberCount - reservation
Sharing List<Property Map>Policies - resource
Statuses List<Property Map> - satisfies
Pzs Boolean - self
Link String - List<Property Map>
- specific
Reservation BooleanRequired - specific
Reservations List<Property Map> - status String
- zone String
- project String
Supporting Types
GetReservationDeleteAfterDuration
GetReservationReservationSharingPolicy
- string
- Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
- string
- Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
- String
- Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
- string
- Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
- str
- Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
- String
- Sharing config for all Google Cloud services. Possible values: ["ALLOW_ALL", "DISALLOW_ALL"]
GetReservationResourceStatus
- Health
Infos List<GetReservation Resource Status Health Info> - Health information for the reservation.
- Reservation
Block intCount - The number of reservation blocks associated with this reservation.
- Reservation
Maintenances List<GetReservation Resource Status Reservation Maintenance> - Maintenance information for this reservation
- Specific
Sku List<GetAllocations Reservation Resource Status Specific Sku Allocation> - Allocation Properties of this reservation.
- Health
Infos []GetReservation Resource Status Health Info - Health information for the reservation.
- Reservation
Block intCount - The number of reservation blocks associated with this reservation.
- Reservation
Maintenances []GetReservation Resource Status Reservation Maintenance - Maintenance information for this reservation
- Specific
Sku []GetAllocations Reservation Resource Status Specific Sku Allocation - Allocation Properties of this reservation.
- health
Infos List<GetReservation Resource Status Health Info> - Health information for the reservation.
- reservation
Block IntegerCount - The number of reservation blocks associated with this reservation.
- reservation
Maintenances List<GetReservation Resource Status Reservation Maintenance> - Maintenance information for this reservation
- specific
Sku List<GetAllocations Reservation Resource Status Specific Sku Allocation> - Allocation Properties of this reservation.
- health
Infos GetReservation Resource Status Health Info[] - Health information for the reservation.
- reservation
Block numberCount - The number of reservation blocks associated with this reservation.
- reservation
Maintenances GetReservation Resource Status Reservation Maintenance[] - Maintenance information for this reservation
- specific
Sku GetAllocations Reservation Resource Status Specific Sku Allocation[] - Allocation Properties of this reservation.
- health_
infos Sequence[GetReservation Resource Status Health Info] - Health information for the reservation.
- reservation_
block_ intcount - The number of reservation blocks associated with this reservation.
- reservation_
maintenances Sequence[GetReservation Resource Status Reservation Maintenance] - Maintenance information for this reservation
- specific_
sku_ Sequence[Getallocations Reservation Resource Status Specific Sku Allocation] - Allocation Properties of this reservation.
- health
Infos List<Property Map> - Health information for the reservation.
- reservation
Block NumberCount - The number of reservation blocks associated with this reservation.
- reservation
Maintenances List<Property Map> - Maintenance information for this reservation
- specific
Sku List<Property Map>Allocations - Allocation Properties of this reservation.
GetReservationResourceStatusHealthInfo
- Degraded
Block intCount - The number of reservation blocks that are degraded.
- Health
Status string - The health status of the reservation.
- Healthy
Block intCount - The number of reservation blocks that are healthy.
- Degraded
Block intCount - The number of reservation blocks that are degraded.
- Health
Status string - The health status of the reservation.
- Healthy
Block intCount - The number of reservation blocks that are healthy.
- degraded
Block IntegerCount - The number of reservation blocks that are degraded.
- health
Status String - The health status of the reservation.
- healthy
Block IntegerCount - The number of reservation blocks that are healthy.
- degraded
Block numberCount - The number of reservation blocks that are degraded.
- health
Status string - The health status of the reservation.
- healthy
Block numberCount - The number of reservation blocks that are healthy.
- degraded_
block_ intcount - The number of reservation blocks that are degraded.
- health_
status str - The health status of the reservation.
- healthy_
block_ intcount - The number of reservation blocks that are healthy.
- degraded
Block NumberCount - The number of reservation blocks that are degraded.
- health
Status String - The health status of the reservation.
- healthy
Block NumberCount - The number of reservation blocks that are healthy.
GetReservationResourceStatusReservationMaintenance
- Instance
Maintenance intOngoing Count - Describes number of instances that have ongoing maintenance.
- Instance
Maintenance intPending Count - Describes number of instances that have pending maintenance.
- Maintenance
Ongoing intCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- Maintenance
Pending intCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- Scheduling
Type string - The type of maintenance for the reservation.
- Subblock
Infra intMaintenance Ongoing Count - 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 intMaintenance Pending Count - 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 List<GetMaintenances Reservation Resource Status Reservation Maintenance Upcoming Group Maintenance> - Maintenance information on this group of VMs.
- Instance
Maintenance intOngoing Count - Describes number of instances that have ongoing maintenance.
- Instance
Maintenance intPending Count - Describes number of instances that have pending maintenance.
- Maintenance
Ongoing intCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- Maintenance
Pending intCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- Scheduling
Type string - The type of maintenance for the reservation.
- Subblock
Infra intMaintenance Ongoing Count - 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 intMaintenance Pending Count - 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 []GetMaintenances Reservation Resource Status Reservation Maintenance Upcoming Group Maintenance - Maintenance information on this group of VMs.
- instance
Maintenance IntegerOngoing Count - Describes number of instances that have ongoing maintenance.
- instance
Maintenance IntegerPending Count - Describes number of instances that have pending maintenance.
- maintenance
Ongoing IntegerCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance
Pending IntegerCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling
Type String - The type of maintenance for the reservation.
- subblock
Infra IntegerMaintenance Ongoing Count - 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 IntegerMaintenance Pending Count - 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 List<GetMaintenances Reservation Resource Status Reservation Maintenance Upcoming Group Maintenance> - Maintenance information on this group of VMs.
- instance
Maintenance numberOngoing Count - Describes number of instances that have ongoing maintenance.
- instance
Maintenance numberPending Count - Describes number of instances that have pending maintenance.
- maintenance
Ongoing numberCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance
Pending numberCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling
Type string - The type of maintenance for the reservation.
- subblock
Infra numberMaintenance Ongoing Count - 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 numberMaintenance Pending Count - 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 GetMaintenances Reservation Resource Status Reservation Maintenance Upcoming Group Maintenance[] - Maintenance information on this group of VMs.
- instance_
maintenance_ intongoing_ count - Describes number of instances that have ongoing maintenance.
- instance_
maintenance_ intpending_ count - Describes number of instances that have pending maintenance.
- maintenance_
ongoing_ intcount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance_
pending_ intcount - 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_ intmaintenance_ ongoing_ count - 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_ intmaintenance_ pending_ count - 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_ Sequence[Getmaintenances Reservation Resource Status Reservation Maintenance Upcoming Group Maintenance] - Maintenance information on this group of VMs.
- instance
Maintenance NumberOngoing Count - Describes number of instances that have ongoing maintenance.
- instance
Maintenance NumberPending Count - Describes number of instances that have pending maintenance.
- maintenance
Ongoing NumberCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance
Pending NumberCount - Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling
Type String - The type of maintenance for the reservation.
- subblock
Infra NumberMaintenance Ongoing Count - 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 NumberMaintenance Pending Count - 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 List<Property Map>Maintenances - Maintenance information on this group of VMs.
GetReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance
- Can
Reschedule bool - Indicates if the maintenance can be customer triggered.
- Latest
Window stringStart Time - The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- Maintenance
On boolShutdown - Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- Maintenance
Reasons List<string> - The reasons for the maintenance. Only valid for vms.
- Maintenance
Status string - Status of the maintenance.
- Type string
- Defines the type of maintenance.
- Window
End stringTime - The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- Window
Start stringTime - 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 stringStart Time - The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- Maintenance
On boolShutdown - Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- Maintenance
Reasons []string - The reasons for the maintenance. Only valid for vms.
- Maintenance
Status string - Status of the maintenance.
- Type string
- Defines the type of maintenance.
- Window
End stringTime - The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- Window
Start stringTime - The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can
Reschedule Boolean - Indicates if the maintenance can be customer triggered.
- latest
Window StringStart Time - The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance
On BooleanShutdown - Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance
Reasons List<String> - The reasons for the maintenance. Only valid for vms.
- maintenance
Status String - Status of the maintenance.
- type String
- Defines the type of maintenance.
- window
End StringTime - The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window
Start StringTime - The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can
Reschedule boolean - Indicates if the maintenance can be customer triggered.
- latest
Window stringStart Time - The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance
On booleanShutdown - Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance
Reasons string[] - The reasons for the maintenance. Only valid for vms.
- maintenance
Status string - Status of the maintenance.
- type string
- Defines the type of maintenance.
- window
End stringTime - The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window
Start stringTime - 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_ strstart_ time - The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance_
on_ boolshutdown - 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_ strtime - The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window_
start_ strtime - The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can
Reschedule Boolean - Indicates if the maintenance can be customer triggered.
- latest
Window StringStart Time - The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance
On BooleanShutdown - Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance
Reasons List<String> - The reasons for the maintenance. Only valid for vms.
- maintenance
Status String - Status of the maintenance.
- type String
- Defines the type of maintenance.
- window
End StringTime - The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window
Start StringTime - The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
GetReservationResourceStatusSpecificSkuAllocation
- Source
Instance stringTemplate Id - 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.
- Source
Instance stringTemplate Id - 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.
- source
Instance StringTemplate Id - 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.
- source
Instance stringTemplate Id - 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_ strtemplate_ id - 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.
- source
Instance StringTemplate Id - 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
- Project
Maps List<GetReservation Share Setting Project 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.
- string
- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
- Project
Maps []GetReservation Share Setting Project Map - 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.
- string
- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
- project
Maps List<GetReservation Share Setting Project 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.
- String
- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
- project
Maps GetReservation Share Setting Project Map[] - 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.
- string
- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
- project_
maps Sequence[GetReservation Share Setting Project Map] - 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.
- str
- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
- project
Maps 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.
- String
- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]
GetReservationShareSettingProjectMap
- id str
- project_
id str - The project id/number, should be same as the key of this project config in the project map.
GetReservationSpecificReservation
- Assured
Count int - Indicates how many instances are actually usable currently.
- Count int
- The number of resources that are allocated.
- In
Use intCount - How many instances are in use.
- Instance
Properties List<GetReservation Specific Reservation Instance Property> - The instance properties for the reservation.
- Source
Instance stringTemplate - 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 intCount - How many instances are in use.
- Instance
Properties []GetReservation Specific Reservation Instance Property - The instance properties for the reservation.
- Source
Instance stringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- assured
Count Integer - Indicates how many instances are actually usable currently.
- count Integer
- The number of resources that are allocated.
- in
Use IntegerCount - How many instances are in use.
- instance
Properties List<GetReservation Specific Reservation Instance Property> - The instance properties for the reservation.
- source
Instance StringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- assured
Count number - Indicates how many instances are actually usable currently.
- count number
- The number of resources that are allocated.
- in
Use numberCount - How many instances are in use.
- instance
Properties GetReservation Specific Reservation Instance Property[] - The instance properties for the reservation.
- source
Instance stringTemplate - 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_ intcount - How many instances are in use.
- instance_
properties Sequence[GetReservation Specific Reservation Instance Property] - The instance properties for the reservation.
- source_
instance_ strtemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- assured
Count Number - Indicates how many instances are actually usable currently.
- count Number
- The number of resources that are allocated.
- in
Use NumberCount - How many instances are in use.
- instance
Properties List<Property Map> - The instance properties for the reservation.
- source
Instance StringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
GetReservationSpecificReservationInstanceProperty
- Guest
Accelerators List<GetReservation Specific Reservation Instance Property Guest Accelerator> - Guest accelerator type and count.
- Local
Ssds List<GetReservation Specific Reservation Instance Property Local Ssd> - The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
- Location
Hint 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.
- Machine
Type string - The name of the machine type to reserve.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
- Min
Cpu stringPlatform - 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 []GetReservation Specific Reservation Instance Property Guest Accelerator - Guest accelerator type and count.
- Local
Ssds []GetReservation Specific Reservation Instance Property Local Ssd - The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
- Location
Hint 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.
- Machine
Type string - The name of the machine type to reserve.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
- Min
Cpu stringPlatform - 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 List<GetReservation Specific Reservation Instance Property Guest Accelerator> - Guest accelerator type and count.
- local
Ssds List<GetReservation Specific Reservation Instance Property Local Ssd> - The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
- location
Hint 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.
- machine
Type String - The name of the machine type to reserve.
- maintenance
Interval String - Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
- min
Cpu StringPlatform - 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 GetReservation Specific Reservation Instance Property Guest Accelerator[] - Guest accelerator type and count.
- local
Ssds GetReservation Specific Reservation Instance Property Local Ssd[] - The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
- location
Hint 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.
- machine
Type string - The name of the machine type to reserve.
- maintenance
Interval string - Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
- min
Cpu stringPlatform - 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[GetReservation Specific Reservation Instance Property Guest Accelerator] - Guest accelerator type and count.
- local_
ssds Sequence[GetReservation Specific Reservation Instance Property Local Ssd] - 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_ strplatform - 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 List<Property Map> - Guest accelerator type and count.
- local
Ssds List<Property Map> - The amount of local ssd to reserve with each instance. This reserves disks of type 'local-ssd'.
- location
Hint 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.
- machine
Type String - The name of the machine type to reserve.
- maintenance
Interval String - Specifies the frequency of planned maintenance events. Possible values: ["AS_NEEDED", "PERIODIC", "RECURRENT"]
- min
Cpu StringPlatform - 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
- Accelerator
Count int - The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type 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 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 Integer - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type 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 number - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type 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.
- accelerator
Count Number - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type 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
- Disk
Size intGb - 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 intGb - 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 IntegerGb - 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 numberGb - 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_ intgb - 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"]
- disk
Size NumberGb - 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-betaTerraform Provider.
