Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running.
Reservations apply only to Compute Engine, Cloud Dataproc, and Google
Kubernetes Engine VM usage.Reservations do not apply to f1-micro or
g1-small machine types, preemptible VMs, sole tenant nodes, or other
services not listed above
like Cloud SQL and Dataflow.
To get more information about Reservation, see:
- API documentation
- How-to Guides
Example Usage
Reservation Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const gceReservation = new gcp.compute.Reservation("gce_reservation", {
name: "gce-reservation",
zone: "us-central1-a",
specificReservation: {
count: 1,
instanceProperties: {
minCpuPlatform: "Intel Cascade Lake",
machineType: "n2-standard-2",
},
},
});
import pulumi
import pulumi_gcp as gcp
gce_reservation = gcp.compute.Reservation("gce_reservation",
name="gce-reservation",
zone="us-central1-a",
specific_reservation={
"count": 1,
"instance_properties": {
"min_cpu_platform": "Intel Cascade Lake",
"machine_type": "n2-standard-2",
},
})
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.NewReservation(ctx, "gce_reservation", &compute.ReservationArgs{
Name: pulumi.String("gce-reservation"),
Zone: pulumi.String("us-central1-a"),
SpecificReservation: &compute.ReservationSpecificReservationArgs{
Count: pulumi.Int(1),
InstanceProperties: &compute.ReservationSpecificReservationInstancePropertiesArgs{
MinCpuPlatform: pulumi.String("Intel Cascade Lake"),
MachineType: pulumi.String("n2-standard-2"),
},
},
})
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 gceReservation = new Gcp.Compute.Reservation("gce_reservation", new()
{
Name = "gce-reservation",
Zone = "us-central1-a",
SpecificReservation = new Gcp.Compute.Inputs.ReservationSpecificReservationArgs
{
Count = 1,
InstanceProperties = new Gcp.Compute.Inputs.ReservationSpecificReservationInstancePropertiesArgs
{
MinCpuPlatform = "Intel Cascade Lake",
MachineType = "n2-standard-2",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Reservation;
import com.pulumi.gcp.compute.ReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesArgs;
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) {
var gceReservation = new Reservation("gceReservation", ReservationArgs.builder()
.name("gce-reservation")
.zone("us-central1-a")
.specificReservation(ReservationSpecificReservationArgs.builder()
.count(1)
.instanceProperties(ReservationSpecificReservationInstancePropertiesArgs.builder()
.minCpuPlatform("Intel Cascade Lake")
.machineType("n2-standard-2")
.build())
.build())
.build());
}
}
resources:
gceReservation:
type: gcp:compute:Reservation
name: gce_reservation
properties:
name: gce-reservation
zone: us-central1-a
specificReservation:
count: 1
instanceProperties:
minCpuPlatform: Intel Cascade Lake
machineType: n2-standard-2
Reservation Basic Beta
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const gceReservation = new gcp.compute.Reservation("gce_reservation", {
name: "gce-reservation",
zone: "us-central1-a",
specificReservation: {
count: 1,
instanceProperties: {
minCpuPlatform: "Intel Cascade Lake",
machineType: "n2-standard-2",
maintenanceInterval: "PERIODIC",
},
},
enableEmergentMaintenance: true,
});
import pulumi
import pulumi_gcp as gcp
gce_reservation = gcp.compute.Reservation("gce_reservation",
name="gce-reservation",
zone="us-central1-a",
specific_reservation={
"count": 1,
"instance_properties": {
"min_cpu_platform": "Intel Cascade Lake",
"machine_type": "n2-standard-2",
"maintenance_interval": "PERIODIC",
},
},
enable_emergent_maintenance=True)
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.NewReservation(ctx, "gce_reservation", &compute.ReservationArgs{
Name: pulumi.String("gce-reservation"),
Zone: pulumi.String("us-central1-a"),
SpecificReservation: &compute.ReservationSpecificReservationArgs{
Count: pulumi.Int(1),
InstanceProperties: &compute.ReservationSpecificReservationInstancePropertiesArgs{
MinCpuPlatform: pulumi.String("Intel Cascade Lake"),
MachineType: pulumi.String("n2-standard-2"),
MaintenanceInterval: pulumi.String("PERIODIC"),
},
},
EnableEmergentMaintenance: pulumi.Bool(true),
})
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 gceReservation = new Gcp.Compute.Reservation("gce_reservation", new()
{
Name = "gce-reservation",
Zone = "us-central1-a",
SpecificReservation = new Gcp.Compute.Inputs.ReservationSpecificReservationArgs
{
Count = 1,
InstanceProperties = new Gcp.Compute.Inputs.ReservationSpecificReservationInstancePropertiesArgs
{
MinCpuPlatform = "Intel Cascade Lake",
MachineType = "n2-standard-2",
MaintenanceInterval = "PERIODIC",
},
},
EnableEmergentMaintenance = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Reservation;
import com.pulumi.gcp.compute.ReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesArgs;
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) {
var gceReservation = new Reservation("gceReservation", ReservationArgs.builder()
.name("gce-reservation")
.zone("us-central1-a")
.specificReservation(ReservationSpecificReservationArgs.builder()
.count(1)
.instanceProperties(ReservationSpecificReservationInstancePropertiesArgs.builder()
.minCpuPlatform("Intel Cascade Lake")
.machineType("n2-standard-2")
.maintenanceInterval("PERIODIC")
.build())
.build())
.enableEmergentMaintenance(true)
.build());
}
}
resources:
gceReservation:
type: gcp:compute:Reservation
name: gce_reservation
properties:
name: gce-reservation
zone: us-central1-a
specificReservation:
count: 1
instanceProperties:
minCpuPlatform: Intel Cascade Lake
machineType: n2-standard-2
maintenanceInterval: PERIODIC
enableEmergentMaintenance: true
Reservation Source Instance Template
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myImage = gcp.compute.getImage({
family: "debian-11",
project: "debian-cloud",
});
const foobar = new gcp.compute.InstanceTemplate("foobar", {
name: "instance-template",
machineType: "n2-standard-2",
canIpForward: false,
tags: [
"foo",
"bar",
],
disks: [{
sourceImage: myImage.then(myImage => myImage.selfLink),
autoDelete: true,
boot: true,
}],
networkInterfaces: [{
network: "default",
}],
scheduling: {
preemptible: false,
automaticRestart: true,
},
metadata: {
foo: "bar",
},
serviceAccount: {
scopes: [
"userinfo-email",
"compute-ro",
"storage-ro",
],
},
labels: {
my_label: "foobar",
},
});
const gceReservationSourceInstanceTemplate = new gcp.compute.Reservation("gce_reservation_source_instance_template", {
name: "gce-reservation-source-instance-template",
zone: "us-central1-a",
specificReservation: {
count: 1,
sourceInstanceTemplate: foobar.selfLink,
},
});
import pulumi
import pulumi_gcp as gcp
my_image = gcp.compute.get_image(family="debian-11",
project="debian-cloud")
foobar = gcp.compute.InstanceTemplate("foobar",
name="instance-template",
machine_type="n2-standard-2",
can_ip_forward=False,
tags=[
"foo",
"bar",
],
disks=[{
"source_image": my_image.self_link,
"auto_delete": True,
"boot": True,
}],
network_interfaces=[{
"network": "default",
}],
scheduling={
"preemptible": False,
"automatic_restart": True,
},
metadata={
"foo": "bar",
},
service_account={
"scopes": [
"userinfo-email",
"compute-ro",
"storage-ro",
],
},
labels={
"my_label": "foobar",
})
gce_reservation_source_instance_template = gcp.compute.Reservation("gce_reservation_source_instance_template",
name="gce-reservation-source-instance-template",
zone="us-central1-a",
specific_reservation={
"count": 1,
"source_instance_template": foobar.self_link,
})
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 {
myImage, err := compute.LookupImage(ctx, &compute.LookupImageArgs{
Family: pulumi.StringRef("debian-11"),
Project: pulumi.StringRef("debian-cloud"),
}, nil)
if err != nil {
return err
}
foobar, err := compute.NewInstanceTemplate(ctx, "foobar", &compute.InstanceTemplateArgs{
Name: pulumi.String("instance-template"),
MachineType: pulumi.String("n2-standard-2"),
CanIpForward: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("foo"),
pulumi.String("bar"),
},
Disks: compute.InstanceTemplateDiskArray{
&compute.InstanceTemplateDiskArgs{
SourceImage: pulumi.String(myImage.SelfLink),
AutoDelete: pulumi.Bool(true),
Boot: pulumi.Bool(true),
},
},
NetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{
&compute.InstanceTemplateNetworkInterfaceArgs{
Network: pulumi.String("default"),
},
},
Scheduling: &compute.InstanceTemplateSchedulingArgs{
Preemptible: pulumi.Bool(false),
AutomaticRestart: pulumi.Bool(true),
},
Metadata: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
ServiceAccount: &compute.InstanceTemplateServiceAccountArgs{
Scopes: pulumi.StringArray{
pulumi.String("userinfo-email"),
pulumi.String("compute-ro"),
pulumi.String("storage-ro"),
},
},
Labels: pulumi.StringMap{
"my_label": pulumi.String("foobar"),
},
})
if err != nil {
return err
}
_, err = compute.NewReservation(ctx, "gce_reservation_source_instance_template", &compute.ReservationArgs{
Name: pulumi.String("gce-reservation-source-instance-template"),
Zone: pulumi.String("us-central1-a"),
SpecificReservation: &compute.ReservationSpecificReservationArgs{
Count: pulumi.Int(1),
SourceInstanceTemplate: foobar.SelfLink,
},
})
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 myImage = Gcp.Compute.GetImage.Invoke(new()
{
Family = "debian-11",
Project = "debian-cloud",
});
var foobar = new Gcp.Compute.InstanceTemplate("foobar", new()
{
Name = "instance-template",
MachineType = "n2-standard-2",
CanIpForward = false,
Tags = new[]
{
"foo",
"bar",
},
Disks = new[]
{
new Gcp.Compute.Inputs.InstanceTemplateDiskArgs
{
SourceImage = myImage.Apply(getImageResult => getImageResult.SelfLink),
AutoDelete = true,
Boot = true,
},
},
NetworkInterfaces = new[]
{
new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs
{
Network = "default",
},
},
Scheduling = new Gcp.Compute.Inputs.InstanceTemplateSchedulingArgs
{
Preemptible = false,
AutomaticRestart = true,
},
Metadata =
{
{ "foo", "bar" },
},
ServiceAccount = new Gcp.Compute.Inputs.InstanceTemplateServiceAccountArgs
{
Scopes = new[]
{
"userinfo-email",
"compute-ro",
"storage-ro",
},
},
Labels =
{
{ "my_label", "foobar" },
},
});
var gceReservationSourceInstanceTemplate = new Gcp.Compute.Reservation("gce_reservation_source_instance_template", new()
{
Name = "gce-reservation-source-instance-template",
Zone = "us-central1-a",
SpecificReservation = new Gcp.Compute.Inputs.ReservationSpecificReservationArgs
{
Count = 1,
SourceInstanceTemplate = foobar.SelfLink,
},
});
});
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.GetImageArgs;
import com.pulumi.gcp.compute.InstanceTemplate;
import com.pulumi.gcp.compute.InstanceTemplateArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateServiceAccountArgs;
import com.pulumi.gcp.compute.Reservation;
import com.pulumi.gcp.compute.ReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationArgs;
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 myImage = ComputeFunctions.getImage(GetImageArgs.builder()
.family("debian-11")
.project("debian-cloud")
.build());
var foobar = new InstanceTemplate("foobar", InstanceTemplateArgs.builder()
.name("instance-template")
.machineType("n2-standard-2")
.canIpForward(false)
.tags(
"foo",
"bar")
.disks(InstanceTemplateDiskArgs.builder()
.sourceImage(myImage.selfLink())
.autoDelete(true)
.boot(true)
.build())
.networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()
.network("default")
.build())
.scheduling(InstanceTemplateSchedulingArgs.builder()
.preemptible(false)
.automaticRestart(true)
.build())
.metadata(Map.of("foo", "bar"))
.serviceAccount(InstanceTemplateServiceAccountArgs.builder()
.scopes(
"userinfo-email",
"compute-ro",
"storage-ro")
.build())
.labels(Map.of("my_label", "foobar"))
.build());
var gceReservationSourceInstanceTemplate = new Reservation("gceReservationSourceInstanceTemplate", ReservationArgs.builder()
.name("gce-reservation-source-instance-template")
.zone("us-central1-a")
.specificReservation(ReservationSpecificReservationArgs.builder()
.count(1)
.sourceInstanceTemplate(foobar.selfLink())
.build())
.build());
}
}
resources:
foobar:
type: gcp:compute:InstanceTemplate
properties:
name: instance-template
machineType: n2-standard-2
canIpForward: false
tags:
- foo
- bar
disks:
- sourceImage: ${myImage.selfLink}
autoDelete: true
boot: true
networkInterfaces:
- network: default
scheduling:
preemptible: false
automaticRestart: true
metadata:
foo: bar
serviceAccount:
scopes:
- userinfo-email
- compute-ro
- storage-ro
labels:
my_label: foobar
gceReservationSourceInstanceTemplate:
type: gcp:compute:Reservation
name: gce_reservation_source_instance_template
properties:
name: gce-reservation-source-instance-template
zone: us-central1-a
specificReservation:
count: 1
sourceInstanceTemplate: ${foobar.selfLink}
variables:
myImage:
fn::invoke:
function: gcp:compute:getImage
arguments:
family: debian-11
project: debian-cloud
Reservation Sharing Policy
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myImage = gcp.compute.getImage({
family: "debian-11",
project: "debian-cloud",
});
const foobar = new gcp.compute.InstanceTemplate("foobar", {
name: "instance-template",
machineType: "g2-standard-4",
canIpForward: false,
tags: [
"foo",
"bar",
],
disks: [{
sourceImage: myImage.then(myImage => myImage.selfLink),
autoDelete: true,
boot: true,
}],
networkInterfaces: [{
network: "default",
}],
scheduling: {
preemptible: false,
automaticRestart: true,
},
metadata: {
foo: "bar",
},
serviceAccount: {
scopes: [
"userinfo-email",
"compute-ro",
"storage-ro",
],
},
labels: {
my_label: "foobar",
},
});
const gceReservationSharingPolicy = new gcp.compute.Reservation("gce_reservation_sharing_policy", {
name: "gce-reservation-sharing-policy",
zone: "us-central1-b",
specificReservation: {
count: 2,
sourceInstanceTemplate: foobar.selfLink,
},
reservationSharingPolicy: {
serviceShareType: "ALLOW_ALL",
},
});
import pulumi
import pulumi_gcp as gcp
my_image = gcp.compute.get_image(family="debian-11",
project="debian-cloud")
foobar = gcp.compute.InstanceTemplate("foobar",
name="instance-template",
machine_type="g2-standard-4",
can_ip_forward=False,
tags=[
"foo",
"bar",
],
disks=[{
"source_image": my_image.self_link,
"auto_delete": True,
"boot": True,
}],
network_interfaces=[{
"network": "default",
}],
scheduling={
"preemptible": False,
"automatic_restart": True,
},
metadata={
"foo": "bar",
},
service_account={
"scopes": [
"userinfo-email",
"compute-ro",
"storage-ro",
],
},
labels={
"my_label": "foobar",
})
gce_reservation_sharing_policy = gcp.compute.Reservation("gce_reservation_sharing_policy",
name="gce-reservation-sharing-policy",
zone="us-central1-b",
specific_reservation={
"count": 2,
"source_instance_template": foobar.self_link,
},
reservation_sharing_policy={
"service_share_type": "ALLOW_ALL",
})
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 {
myImage, err := compute.LookupImage(ctx, &compute.LookupImageArgs{
Family: pulumi.StringRef("debian-11"),
Project: pulumi.StringRef("debian-cloud"),
}, nil)
if err != nil {
return err
}
foobar, err := compute.NewInstanceTemplate(ctx, "foobar", &compute.InstanceTemplateArgs{
Name: pulumi.String("instance-template"),
MachineType: pulumi.String("g2-standard-4"),
CanIpForward: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("foo"),
pulumi.String("bar"),
},
Disks: compute.InstanceTemplateDiskArray{
&compute.InstanceTemplateDiskArgs{
SourceImage: pulumi.String(myImage.SelfLink),
AutoDelete: pulumi.Bool(true),
Boot: pulumi.Bool(true),
},
},
NetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{
&compute.InstanceTemplateNetworkInterfaceArgs{
Network: pulumi.String("default"),
},
},
Scheduling: &compute.InstanceTemplateSchedulingArgs{
Preemptible: pulumi.Bool(false),
AutomaticRestart: pulumi.Bool(true),
},
Metadata: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
ServiceAccount: &compute.InstanceTemplateServiceAccountArgs{
Scopes: pulumi.StringArray{
pulumi.String("userinfo-email"),
pulumi.String("compute-ro"),
pulumi.String("storage-ro"),
},
},
Labels: pulumi.StringMap{
"my_label": pulumi.String("foobar"),
},
})
if err != nil {
return err
}
_, err = compute.NewReservation(ctx, "gce_reservation_sharing_policy", &compute.ReservationArgs{
Name: pulumi.String("gce-reservation-sharing-policy"),
Zone: pulumi.String("us-central1-b"),
SpecificReservation: &compute.ReservationSpecificReservationArgs{
Count: pulumi.Int(2),
SourceInstanceTemplate: foobar.SelfLink,
},
ReservationSharingPolicy: &compute.ReservationReservationSharingPolicyArgs{
ServiceShareType: pulumi.String("ALLOW_ALL"),
},
})
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 myImage = Gcp.Compute.GetImage.Invoke(new()
{
Family = "debian-11",
Project = "debian-cloud",
});
var foobar = new Gcp.Compute.InstanceTemplate("foobar", new()
{
Name = "instance-template",
MachineType = "g2-standard-4",
CanIpForward = false,
Tags = new[]
{
"foo",
"bar",
},
Disks = new[]
{
new Gcp.Compute.Inputs.InstanceTemplateDiskArgs
{
SourceImage = myImage.Apply(getImageResult => getImageResult.SelfLink),
AutoDelete = true,
Boot = true,
},
},
NetworkInterfaces = new[]
{
new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs
{
Network = "default",
},
},
Scheduling = new Gcp.Compute.Inputs.InstanceTemplateSchedulingArgs
{
Preemptible = false,
AutomaticRestart = true,
},
Metadata =
{
{ "foo", "bar" },
},
ServiceAccount = new Gcp.Compute.Inputs.InstanceTemplateServiceAccountArgs
{
Scopes = new[]
{
"userinfo-email",
"compute-ro",
"storage-ro",
},
},
Labels =
{
{ "my_label", "foobar" },
},
});
var gceReservationSharingPolicy = new Gcp.Compute.Reservation("gce_reservation_sharing_policy", new()
{
Name = "gce-reservation-sharing-policy",
Zone = "us-central1-b",
SpecificReservation = new Gcp.Compute.Inputs.ReservationSpecificReservationArgs
{
Count = 2,
SourceInstanceTemplate = foobar.SelfLink,
},
ReservationSharingPolicy = new Gcp.Compute.Inputs.ReservationReservationSharingPolicyArgs
{
ServiceShareType = "ALLOW_ALL",
},
});
});
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.GetImageArgs;
import com.pulumi.gcp.compute.InstanceTemplate;
import com.pulumi.gcp.compute.InstanceTemplateArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateServiceAccountArgs;
import com.pulumi.gcp.compute.Reservation;
import com.pulumi.gcp.compute.ReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationSpecificReservationArgs;
import com.pulumi.gcp.compute.inputs.ReservationReservationSharingPolicyArgs;
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 myImage = ComputeFunctions.getImage(GetImageArgs.builder()
.family("debian-11")
.project("debian-cloud")
.build());
var foobar = new InstanceTemplate("foobar", InstanceTemplateArgs.builder()
.name("instance-template")
.machineType("g2-standard-4")
.canIpForward(false)
.tags(
"foo",
"bar")
.disks(InstanceTemplateDiskArgs.builder()
.sourceImage(myImage.selfLink())
.autoDelete(true)
.boot(true)
.build())
.networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()
.network("default")
.build())
.scheduling(InstanceTemplateSchedulingArgs.builder()
.preemptible(false)
.automaticRestart(true)
.build())
.metadata(Map.of("foo", "bar"))
.serviceAccount(InstanceTemplateServiceAccountArgs.builder()
.scopes(
"userinfo-email",
"compute-ro",
"storage-ro")
.build())
.labels(Map.of("my_label", "foobar"))
.build());
var gceReservationSharingPolicy = new Reservation("gceReservationSharingPolicy", ReservationArgs.builder()
.name("gce-reservation-sharing-policy")
.zone("us-central1-b")
.specificReservation(ReservationSpecificReservationArgs.builder()
.count(2)
.sourceInstanceTemplate(foobar.selfLink())
.build())
.reservationSharingPolicy(ReservationReservationSharingPolicyArgs.builder()
.serviceShareType("ALLOW_ALL")
.build())
.build());
}
}
resources:
foobar:
type: gcp:compute:InstanceTemplate
properties:
name: instance-template
machineType: g2-standard-4
canIpForward: false
tags:
- foo
- bar
disks:
- sourceImage: ${myImage.selfLink}
autoDelete: true
boot: true
networkInterfaces:
- network: default
scheduling:
preemptible: false
automaticRestart: true
metadata:
foo: bar
serviceAccount:
scopes:
- userinfo-email
- compute-ro
- storage-ro
labels:
my_label: foobar
gceReservationSharingPolicy:
type: gcp:compute:Reservation
name: gce_reservation_sharing_policy
properties:
name: gce-reservation-sharing-policy
zone: us-central1-b
specificReservation:
count: 2
sourceInstanceTemplate: ${foobar.selfLink}
reservationSharingPolicy:
serviceShareType: ALLOW_ALL
variables:
myImage:
fn::invoke:
function: gcp:compute:getImage
arguments:
family: debian-11
project: debian-cloud
Create Reservation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Reservation(name: string, args: ReservationArgs, opts?: CustomResourceOptions);@overload
def Reservation(resource_name: str,
args: ReservationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Reservation(resource_name: str,
opts: Optional[ResourceOptions] = None,
specific_reservation: Optional[ReservationSpecificReservationArgs] = None,
zone: Optional[str] = None,
delete_after_duration: Optional[ReservationDeleteAfterDurationArgs] = None,
delete_at_time: Optional[str] = None,
description: Optional[str] = None,
enable_emergent_maintenance: Optional[bool] = None,
name: Optional[str] = None,
project: Optional[str] = None,
reservation_sharing_policy: Optional[ReservationReservationSharingPolicyArgs] = None,
share_settings: Optional[ReservationShareSettingsArgs] = None,
specific_reservation_required: Optional[bool] = None)func NewReservation(ctx *Context, name string, args ReservationArgs, opts ...ResourceOption) (*Reservation, error)public Reservation(string name, ReservationArgs args, CustomResourceOptions? opts = null)
public Reservation(String name, ReservationArgs args)
public Reservation(String name, ReservationArgs args, CustomResourceOptions options)
type: gcp:compute:Reservation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReservationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReservationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReservationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gcpReservationResource = new Gcp.Compute.Reservation("gcpReservationResource", new()
{
SpecificReservation = new Gcp.Compute.Inputs.ReservationSpecificReservationArgs
{
Count = 0,
AssuredCount = 0,
InUseCount = 0,
InstanceProperties = new Gcp.Compute.Inputs.ReservationSpecificReservationInstancePropertiesArgs
{
MachineType = "string",
GuestAccelerators = new[]
{
new Gcp.Compute.Inputs.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs
{
AcceleratorCount = 0,
AcceleratorType = "string",
},
},
LocalSsds = new[]
{
new Gcp.Compute.Inputs.ReservationSpecificReservationInstancePropertiesLocalSsdArgs
{
DiskSizeGb = 0,
Interface = "string",
},
},
LocationHint = "string",
MaintenanceInterval = "string",
MinCpuPlatform = "string",
},
SourceInstanceTemplate = "string",
},
Zone = "string",
DeleteAfterDuration = new Gcp.Compute.Inputs.ReservationDeleteAfterDurationArgs
{
Nanos = 0,
Seconds = "string",
},
DeleteAtTime = "string",
Description = "string",
EnableEmergentMaintenance = false,
Name = "string",
Project = "string",
ReservationSharingPolicy = new Gcp.Compute.Inputs.ReservationReservationSharingPolicyArgs
{
ServiceShareType = "string",
},
ShareSettings = new Gcp.Compute.Inputs.ReservationShareSettingsArgs
{
ProjectMaps = new[]
{
new Gcp.Compute.Inputs.ReservationShareSettingsProjectMapArgs
{
Id = "string",
ProjectId = "string",
},
},
Projects = new[]
{
"string",
},
ShareType = "string",
},
SpecificReservationRequired = false,
});
example, err := compute.NewReservation(ctx, "gcpReservationResource", &compute.ReservationArgs{
SpecificReservation: &compute.ReservationSpecificReservationArgs{
Count: pulumi.Int(0),
AssuredCount: pulumi.Int(0),
InUseCount: pulumi.Int(0),
InstanceProperties: &compute.ReservationSpecificReservationInstancePropertiesArgs{
MachineType: pulumi.String("string"),
GuestAccelerators: compute.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArray{
&compute.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs{
AcceleratorCount: pulumi.Int(0),
AcceleratorType: pulumi.String("string"),
},
},
LocalSsds: compute.ReservationSpecificReservationInstancePropertiesLocalSsdArray{
&compute.ReservationSpecificReservationInstancePropertiesLocalSsdArgs{
DiskSizeGb: pulumi.Int(0),
Interface: pulumi.String("string"),
},
},
LocationHint: pulumi.String("string"),
MaintenanceInterval: pulumi.String("string"),
MinCpuPlatform: pulumi.String("string"),
},
SourceInstanceTemplate: pulumi.String("string"),
},
Zone: pulumi.String("string"),
DeleteAfterDuration: &compute.ReservationDeleteAfterDurationArgs{
Nanos: pulumi.Int(0),
Seconds: pulumi.String("string"),
},
DeleteAtTime: pulumi.String("string"),
Description: pulumi.String("string"),
EnableEmergentMaintenance: pulumi.Bool(false),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
ReservationSharingPolicy: &compute.ReservationReservationSharingPolicyArgs{
ServiceShareType: pulumi.String("string"),
},
ShareSettings: &compute.ReservationShareSettingsArgs{
ProjectMaps: compute.ReservationShareSettingsProjectMapArray{
&compute.ReservationShareSettingsProjectMapArgs{
Id: pulumi.String("string"),
ProjectId: pulumi.String("string"),
},
},
Projects: pulumi.StringArray{
pulumi.String("string"),
},
ShareType: pulumi.String("string"),
},
SpecificReservationRequired: pulumi.Bool(false),
})
var gcpReservationResource = new com.pulumi.gcp.compute.Reservation("gcpReservationResource", com.pulumi.gcp.compute.ReservationArgs.builder()
.specificReservation(ReservationSpecificReservationArgs.builder()
.count(0)
.assuredCount(0)
.inUseCount(0)
.instanceProperties(ReservationSpecificReservationInstancePropertiesArgs.builder()
.machineType("string")
.guestAccelerators(ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs.builder()
.acceleratorCount(0)
.acceleratorType("string")
.build())
.localSsds(ReservationSpecificReservationInstancePropertiesLocalSsdArgs.builder()
.diskSizeGb(0)
.interface_("string")
.build())
.locationHint("string")
.maintenanceInterval("string")
.minCpuPlatform("string")
.build())
.sourceInstanceTemplate("string")
.build())
.zone("string")
.deleteAfterDuration(ReservationDeleteAfterDurationArgs.builder()
.nanos(0)
.seconds("string")
.build())
.deleteAtTime("string")
.description("string")
.enableEmergentMaintenance(false)
.name("string")
.project("string")
.reservationSharingPolicy(ReservationReservationSharingPolicyArgs.builder()
.serviceShareType("string")
.build())
.shareSettings(ReservationShareSettingsArgs.builder()
.projectMaps(ReservationShareSettingsProjectMapArgs.builder()
.id("string")
.projectId("string")
.build())
.projects("string")
.shareType("string")
.build())
.specificReservationRequired(false)
.build());
gcp_reservation_resource = gcp.compute.Reservation("gcpReservationResource",
specific_reservation={
"count": 0,
"assured_count": 0,
"in_use_count": 0,
"instance_properties": {
"machine_type": "string",
"guest_accelerators": [{
"accelerator_count": 0,
"accelerator_type": "string",
}],
"local_ssds": [{
"disk_size_gb": 0,
"interface": "string",
}],
"location_hint": "string",
"maintenance_interval": "string",
"min_cpu_platform": "string",
},
"source_instance_template": "string",
},
zone="string",
delete_after_duration={
"nanos": 0,
"seconds": "string",
},
delete_at_time="string",
description="string",
enable_emergent_maintenance=False,
name="string",
project="string",
reservation_sharing_policy={
"service_share_type": "string",
},
share_settings={
"project_maps": [{
"id": "string",
"project_id": "string",
}],
"projects": ["string"],
"share_type": "string",
},
specific_reservation_required=False)
const gcpReservationResource = new gcp.compute.Reservation("gcpReservationResource", {
specificReservation: {
count: 0,
assuredCount: 0,
inUseCount: 0,
instanceProperties: {
machineType: "string",
guestAccelerators: [{
acceleratorCount: 0,
acceleratorType: "string",
}],
localSsds: [{
diskSizeGb: 0,
"interface": "string",
}],
locationHint: "string",
maintenanceInterval: "string",
minCpuPlatform: "string",
},
sourceInstanceTemplate: "string",
},
zone: "string",
deleteAfterDuration: {
nanos: 0,
seconds: "string",
},
deleteAtTime: "string",
description: "string",
enableEmergentMaintenance: false,
name: "string",
project: "string",
reservationSharingPolicy: {
serviceShareType: "string",
},
shareSettings: {
projectMaps: [{
id: "string",
projectId: "string",
}],
projects: ["string"],
shareType: "string",
},
specificReservationRequired: false,
});
type: gcp:compute:Reservation
properties:
deleteAfterDuration:
nanos: 0
seconds: string
deleteAtTime: string
description: string
enableEmergentMaintenance: false
name: string
project: string
reservationSharingPolicy:
serviceShareType: string
shareSettings:
projectMaps:
- id: string
projectId: string
projects:
- string
shareType: string
specificReservation:
assuredCount: 0
count: 0
inUseCount: 0
instanceProperties:
guestAccelerators:
- acceleratorCount: 0
acceleratorType: string
localSsds:
- diskSizeGb: 0
interface: string
locationHint: string
machineType: string
maintenanceInterval: string
minCpuPlatform: string
sourceInstanceTemplate: string
specificReservationRequired: false
zone: string
Reservation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Reservation resource accepts the following input properties:
- Specific
Reservation ReservationSpecific Reservation - Reservation for instances with specific machine shapes. Structure is documented below.
- Zone string
- The zone where the reservation is made.
- Delete
After ReservationDuration Delete After Duration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- Delete
At stringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- Description string
- An optional description of this resource.
- Enable
Emergent boolMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- Name string
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Project string
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- Reservation
Sharing ReservationPolicy Reservation Sharing Policy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
-
Reservation
Share Settings - The share setting for reservations. Structure is documented below.
- Specific
Reservation boolRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- Specific
Reservation ReservationSpecific Reservation Args - Reservation for instances with specific machine shapes. Structure is documented below.
- Zone string
- The zone where the reservation is made.
- Delete
After ReservationDuration Delete After Duration Args - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- Delete
At stringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- Description string
- An optional description of this resource.
- Enable
Emergent boolMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- Name string
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Project string
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- Reservation
Sharing ReservationPolicy Reservation Sharing Policy Args - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
-
Reservation
Share Settings Args - The share setting for reservations. Structure is documented below.
- Specific
Reservation boolRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- specific
Reservation ReservationSpecific Reservation - Reservation for instances with specific machine shapes. Structure is documented below.
- zone String
- The zone where the reservation is made.
- delete
After ReservationDuration Delete After Duration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete
At StringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description String
- An optional description of this resource.
- enable
Emergent BooleanMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- name String
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project String
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation
Sharing ReservationPolicy Reservation Sharing Policy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
-
Reservation
Share Settings - The share setting for reservations. Structure is documented below.
- specific
Reservation BooleanRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- specific
Reservation ReservationSpecific Reservation - Reservation for instances with specific machine shapes. Structure is documented below.
- zone string
- The zone where the reservation is made.
- delete
After ReservationDuration Delete After Duration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete
At stringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description string
- An optional description of this resource.
- enable
Emergent booleanMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- name string
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project string
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation
Sharing ReservationPolicy Reservation Sharing Policy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
-
Reservation
Share Settings - The share setting for reservations. Structure is documented below.
- specific
Reservation booleanRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- specific_
reservation ReservationSpecific Reservation Args - Reservation for instances with specific machine shapes. Structure is documented below.
- zone str
- The zone where the reservation is made.
- delete_
after_ Reservationduration Delete After Duration Args - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete_
at_ strtime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description str
- An optional description of this resource.
- enable_
emergent_ boolmaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- name str
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project str
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation_
sharing_ Reservationpolicy Reservation Sharing Policy Args - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
-
Reservation
Share Settings Args - The share setting for reservations. Structure is documented below.
- specific_
reservation_ boolrequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- specific
Reservation Property Map - Reservation for instances with specific machine shapes. Structure is documented below.
- zone String
- The zone where the reservation is made.
- delete
After Property MapDuration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete
At StringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description String
- An optional description of this resource.
- enable
Emergent BooleanMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- name String
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project String
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation
Sharing Property MapPolicy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- Property Map
- The share setting for reservations. Structure is documented below.
- specific
Reservation BooleanRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
Outputs
All input properties are implicitly available as output properties. Additionally, the Reservation resource produces the following output properties:
- Block
Names List<string> - List of all reservation block names in the parent reservation.
- Commitment string
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Type of the resource. Always compute#reservations for reservations.
- Linked
Commitments List<string> - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- Reservation
Block intCount - (Output) The number of reservation blocks associated with this reservation.
- Resource
Statuses List<ReservationResource Status> - Status information for Reservation resource. Structure is documented below.
- Satisfies
Pzs bool - Reserved for future use.
- Self
Link string - The URI of the created resource.
- Status string
- The status of the reservation.
- Block
Names []string - List of all reservation block names in the parent reservation.
- Commitment string
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Type of the resource. Always compute#reservations for reservations.
- Linked
Commitments []string - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- Reservation
Block intCount - (Output) The number of reservation blocks associated with this reservation.
- Resource
Statuses []ReservationResource Status - Status information for Reservation resource. Structure is documented below.
- Satisfies
Pzs bool - Reserved for future use.
- Self
Link string - The URI of the created resource.
- Status string
- The status of the reservation.
- block
Names List<String> - List of all reservation block names in the parent reservation.
- commitment String
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Type of the resource. Always compute#reservations for reservations.
- linked
Commitments List<String> - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- reservation
Block IntegerCount - (Output) The number of reservation blocks associated with this reservation.
- resource
Statuses List<ReservationResource Status> - Status information for Reservation resource. Structure is documented below.
- satisfies
Pzs Boolean - Reserved for future use.
- self
Link String - The URI of the created resource.
- status String
- The status of the reservation.
- block
Names string[] - List of all reservation block names in the parent reservation.
- commitment string
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Type of the resource. Always compute#reservations for reservations.
- linked
Commitments string[] - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- reservation
Block numberCount - (Output) The number of reservation blocks associated with this reservation.
- resource
Statuses ReservationResource Status[] - Status information for Reservation resource. Structure is documented below.
- satisfies
Pzs boolean - Reserved for future use.
- self
Link string - The URI of the created resource.
- status string
- The status of the reservation.
- block_
names Sequence[str] - List of all reservation block names in the parent reservation.
- commitment str
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- Type of the resource. Always compute#reservations for reservations.
- linked_
commitments Sequence[str] - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- reservation_
block_ intcount - (Output) The number of reservation blocks associated with this reservation.
- resource_
statuses Sequence[ReservationResource Status] - Status information for Reservation resource. Structure is documented below.
- satisfies_
pzs bool - Reserved for future use.
- self_
link str - The URI of the created resource.
- status str
- The status of the reservation.
- block
Names List<String> - List of all reservation block names in the parent reservation.
- commitment String
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Type of the resource. Always compute#reservations for reservations.
- linked
Commitments List<String> - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- reservation
Block NumberCount - (Output) The number of reservation blocks associated with this reservation.
- resource
Statuses List<Property Map> - Status information for Reservation resource. Structure is documented below.
- satisfies
Pzs Boolean - Reserved for future use.
- self
Link String - The URI of the created resource.
- status String
- The status of the reservation.
Look up Existing Reservation Resource
Get an existing Reservation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReservationState, opts?: CustomResourceOptions): Reservation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block_names: Optional[Sequence[str]] = None,
commitment: Optional[str] = None,
creation_timestamp: Optional[str] = None,
delete_after_duration: Optional[ReservationDeleteAfterDurationArgs] = None,
delete_at_time: Optional[str] = None,
description: Optional[str] = None,
enable_emergent_maintenance: Optional[bool] = None,
kind: Optional[str] = None,
linked_commitments: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
reservation_block_count: Optional[int] = None,
reservation_sharing_policy: Optional[ReservationReservationSharingPolicyArgs] = None,
resource_statuses: Optional[Sequence[ReservationResourceStatusArgs]] = None,
satisfies_pzs: Optional[bool] = None,
self_link: Optional[str] = None,
share_settings: Optional[ReservationShareSettingsArgs] = None,
specific_reservation: Optional[ReservationSpecificReservationArgs] = None,
specific_reservation_required: Optional[bool] = None,
status: Optional[str] = None,
zone: Optional[str] = None) -> Reservationfunc GetReservation(ctx *Context, name string, id IDInput, state *ReservationState, opts ...ResourceOption) (*Reservation, error)public static Reservation Get(string name, Input<string> id, ReservationState? state, CustomResourceOptions? opts = null)public static Reservation get(String name, Output<String> id, ReservationState state, CustomResourceOptions options)resources: _: type: gcp:compute:Reservation get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Block
Names List<string> - List of all reservation block names in the parent reservation.
- Commitment string
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Delete
After ReservationDuration Delete After Duration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- Delete
At stringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- Description string
- An optional description of this resource.
- Enable
Emergent boolMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- Kind string
- Type of the resource. Always compute#reservations for reservations.
- Linked
Commitments List<string> - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- Name string
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Project string
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- Reservation
Block intCount - (Output) The number of reservation blocks associated with this reservation.
- Reservation
Sharing ReservationPolicy Reservation Sharing Policy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- Resource
Statuses List<ReservationResource Status> - Status information for Reservation resource. Structure is documented below.
- Satisfies
Pzs bool - Reserved for future use.
- Self
Link string - The URI of the created resource.
-
Reservation
Share Settings - The share setting for reservations. Structure is documented below.
- Specific
Reservation ReservationSpecific Reservation - Reservation for instances with specific machine shapes. Structure is documented below.
- Specific
Reservation boolRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- Status string
- The status of the reservation.
- Zone string
- The zone where the reservation is made.
- Block
Names []string - List of all reservation block names in the parent reservation.
- Commitment string
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Delete
After ReservationDuration Delete After Duration Args - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- Delete
At stringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- Description string
- An optional description of this resource.
- Enable
Emergent boolMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- Kind string
- Type of the resource. Always compute#reservations for reservations.
- Linked
Commitments []string - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- Name string
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Project string
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- Reservation
Block intCount - (Output) The number of reservation blocks associated with this reservation.
- Reservation
Sharing ReservationPolicy Reservation Sharing Policy Args - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- Resource
Statuses []ReservationResource Status Args - Status information for Reservation resource. Structure is documented below.
- Satisfies
Pzs bool - Reserved for future use.
- Self
Link string - The URI of the created resource.
-
Reservation
Share Settings Args - The share setting for reservations. Structure is documented below.
- Specific
Reservation ReservationSpecific Reservation Args - Reservation for instances with specific machine shapes. Structure is documented below.
- Specific
Reservation boolRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- Status string
- The status of the reservation.
- Zone string
- The zone where the reservation is made.
- block
Names List<String> - List of all reservation block names in the parent reservation.
- commitment String
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- delete
After ReservationDuration Delete After Duration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete
At StringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description String
- An optional description of this resource.
- enable
Emergent BooleanMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- kind String
- Type of the resource. Always compute#reservations for reservations.
- linked
Commitments List<String> - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- name String
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project String
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation
Block IntegerCount - (Output) The number of reservation blocks associated with this reservation.
- reservation
Sharing ReservationPolicy Reservation Sharing Policy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- resource
Statuses List<ReservationResource Status> - Status information for Reservation resource. Structure is documented below.
- satisfies
Pzs Boolean - Reserved for future use.
- self
Link String - The URI of the created resource.
-
Reservation
Share Settings - The share setting for reservations. Structure is documented below.
- specific
Reservation ReservationSpecific Reservation - Reservation for instances with specific machine shapes. Structure is documented below.
- specific
Reservation BooleanRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- status String
- The status of the reservation.
- zone String
- The zone where the reservation is made.
- block
Names string[] - List of all reservation block names in the parent reservation.
- commitment string
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- delete
After ReservationDuration Delete After Duration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete
At stringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description string
- An optional description of this resource.
- enable
Emergent booleanMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- kind string
- Type of the resource. Always compute#reservations for reservations.
- linked
Commitments string[] - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- name string
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project string
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation
Block numberCount - (Output) The number of reservation blocks associated with this reservation.
- reservation
Sharing ReservationPolicy Reservation Sharing Policy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- resource
Statuses ReservationResource Status[] - Status information for Reservation resource. Structure is documented below.
- satisfies
Pzs boolean - Reserved for future use.
- self
Link string - The URI of the created resource.
-
Reservation
Share Settings - The share setting for reservations. Structure is documented below.
- specific
Reservation ReservationSpecific Reservation - Reservation for instances with specific machine shapes. Structure is documented below.
- specific
Reservation booleanRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- status string
- The status of the reservation.
- zone string
- The zone where the reservation is made.
- block_
names Sequence[str] - List of all reservation block names in the parent reservation.
- commitment str
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- delete_
after_ Reservationduration Delete After Duration Args - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete_
at_ strtime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description str
- An optional description of this resource.
- enable_
emergent_ boolmaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- kind str
- Type of the resource. Always compute#reservations for reservations.
- linked_
commitments Sequence[str] - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- name str
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project str
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation_
block_ intcount - (Output) The number of reservation blocks associated with this reservation.
- reservation_
sharing_ Reservationpolicy Reservation Sharing Policy Args - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- resource_
statuses Sequence[ReservationResource Status Args] - Status information for Reservation resource. Structure is documented below.
- satisfies_
pzs bool - Reserved for future use.
- self_
link str - The URI of the created resource.
-
Reservation
Share Settings Args - The share setting for reservations. Structure is documented below.
- specific_
reservation ReservationSpecific Reservation Args - Reservation for instances with specific machine shapes. Structure is documented below.
- specific_
reservation_ boolrequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- status str
- The status of the reservation.
- zone str
- The zone where the reservation is made.
- block
Names List<String> - List of all reservation block names in the parent reservation.
- commitment String
- Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- delete
After Property MapDuration - Duration after which the reservation will be auto-deleted by Compute Engine. Cannot be used with delete_at_time. Structure is documented below.
- delete
At StringTime - Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. Cannot be used with delete_after_duration.
- description String
- An optional description of this resource.
- enable
Emergent BooleanMaintenance - Indicates if this group of VMs have emergent maintenance enabled.
- kind String
- Type of the resource. Always compute#reservations for reservations.
- linked
Commitments List<String> - Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
- name String
- Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - project String
- The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
blockNames- (Optional) List of all reservation block names in the parent reservation.
- reservation
Block NumberCount - (Output) The number of reservation blocks associated with this reservation.
- reservation
Sharing Property MapPolicy - Sharing policy for reservations with Google Cloud managed services. Structure is documented below.
- resource
Statuses List<Property Map> - Status information for Reservation resource. Structure is documented below.
- satisfies
Pzs Boolean - Reserved for future use.
- self
Link String - The URI of the created resource.
- Property Map
- The share setting for reservations. Structure is documented below.
- specific
Reservation Property Map - Reservation for instances with specific machine shapes. Structure is documented below.
- specific
Reservation BooleanRequired - When set to true, only VMs that target this reservation by name can consume this reservation. Otherwise, it can be consumed by VMs with affinity for any reservation. Defaults to false.
- status String
- The status of the reservation.
- zone String
- The zone where the reservation is made.
Supporting Types
ReservationDeleteAfterDuration, ReservationDeleteAfterDurationArgs
ReservationReservationSharingPolicy, ReservationReservationSharingPolicyArgs
- string
- Sharing config for all Google Cloud services.
Possible values are:
ALLOW_ALL,DISALLOW_ALL.
- string
- Sharing config for all Google Cloud services.
Possible values are:
ALLOW_ALL,DISALLOW_ALL.
- String
- Sharing config for all Google Cloud services.
Possible values are:
ALLOW_ALL,DISALLOW_ALL.
- string
- Sharing config for all Google Cloud services.
Possible values are:
ALLOW_ALL,DISALLOW_ALL.
- str
- Sharing config for all Google Cloud services.
Possible values are:
ALLOW_ALL,DISALLOW_ALL.
- String
- Sharing config for all Google Cloud services.
Possible values are:
ALLOW_ALL,DISALLOW_ALL.
ReservationResourceStatus, ReservationResourceStatusArgs
- Health
Infos List<ReservationResource Status Health Info> - (Output) Health information for the reservation. Structure is documented below.
- Reservation
Block intCount - (Output) The number of reservation blocks associated with this reservation.
- Reservation
Maintenances List<ReservationResource Status Reservation Maintenance> - (Output) Maintenance information for this reservation Structure is documented below.
- Specific
Sku List<ReservationAllocations Resource Status Specific Sku Allocation> - (Output) Allocation Properties of this reservation. Structure is documented below.
- Health
Infos []ReservationResource Status Health Info - (Output) Health information for the reservation. Structure is documented below.
- Reservation
Block intCount - (Output) The number of reservation blocks associated with this reservation.
- Reservation
Maintenances []ReservationResource Status Reservation Maintenance - (Output) Maintenance information for this reservation Structure is documented below.
- Specific
Sku []ReservationAllocations Resource Status Specific Sku Allocation - (Output) Allocation Properties of this reservation. Structure is documented below.
- health
Infos List<ReservationResource Status Health Info> - (Output) Health information for the reservation. Structure is documented below.
- reservation
Block IntegerCount - (Output) The number of reservation blocks associated with this reservation.
- reservation
Maintenances List<ReservationResource Status Reservation Maintenance> - (Output) Maintenance information for this reservation Structure is documented below.
- specific
Sku List<ReservationAllocations Resource Status Specific Sku Allocation> - (Output) Allocation Properties of this reservation. Structure is documented below.
- health
Infos ReservationResource Status Health Info[] - (Output) Health information for the reservation. Structure is documented below.
- reservation
Block numberCount - (Output) The number of reservation blocks associated with this reservation.
- reservation
Maintenances ReservationResource Status Reservation Maintenance[] - (Output) Maintenance information for this reservation Structure is documented below.
- specific
Sku ReservationAllocations Resource Status Specific Sku Allocation[] - (Output) Allocation Properties of this reservation. Structure is documented below.
- health_
infos Sequence[ReservationResource Status Health Info] - (Output) Health information for the reservation. Structure is documented below.
- reservation_
block_ intcount - (Output) The number of reservation blocks associated with this reservation.
- reservation_
maintenances Sequence[ReservationResource Status Reservation Maintenance] - (Output) Maintenance information for this reservation Structure is documented below.
- specific_
sku_ Sequence[Reservationallocations Resource Status Specific Sku Allocation] - (Output) Allocation Properties of this reservation. Structure is documented below.
- health
Infos List<Property Map> - (Output) Health information for the reservation. Structure is documented below.
- reservation
Block NumberCount - (Output) The number of reservation blocks associated with this reservation.
- reservation
Maintenances List<Property Map> - (Output) Maintenance information for this reservation Structure is documented below.
- specific
Sku List<Property Map>Allocations - (Output) Allocation Properties of this reservation. Structure is documented below.
ReservationResourceStatusHealthInfo, ReservationResourceStatusHealthInfoArgs
- Degraded
Block intCount - (Output) The number of reservation blocks that are degraded.
- Health
Status string - (Output) The health status of the reservation.
- Healthy
Block intCount - (Output) The number of reservation blocks that are healthy.
- Degraded
Block intCount - (Output) The number of reservation blocks that are degraded.
- Health
Status string - (Output) The health status of the reservation.
- Healthy
Block intCount - (Output) The number of reservation blocks that are healthy.
- degraded
Block IntegerCount - (Output) The number of reservation blocks that are degraded.
- health
Status String - (Output) The health status of the reservation.
- healthy
Block IntegerCount - (Output) The number of reservation blocks that are healthy.
- degraded
Block numberCount - (Output) The number of reservation blocks that are degraded.
- health
Status string - (Output) The health status of the reservation.
- healthy
Block numberCount - (Output) The number of reservation blocks that are healthy.
- degraded_
block_ intcount - (Output) The number of reservation blocks that are degraded.
- health_
status str - (Output) The health status of the reservation.
- healthy_
block_ intcount - (Output) The number of reservation blocks that are healthy.
- degraded
Block NumberCount - (Output) The number of reservation blocks that are degraded.
- health
Status String - (Output) The health status of the reservation.
- healthy
Block NumberCount - (Output) The number of reservation blocks that are healthy.
ReservationResourceStatusReservationMaintenance, ReservationResourceStatusReservationMaintenanceArgs
- Instance
Maintenance intOngoing Count - (Output) Describes number of instances that have ongoing maintenance.
- Instance
Maintenance intPending Count - (Output) Describes number of instances that have pending maintenance.
- Maintenance
Ongoing intCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- Maintenance
Pending intCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- Scheduling
Type string - (Output) The type of maintenance for the reservation.
- Subblock
Infra intMaintenance Ongoing Count - (Output) 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 - (Output) 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<ReservationMaintenances Resource Status Reservation Maintenance Upcoming Group Maintenance> - (Output) Maintenance information on this group of VMs. Structure is documented below.
- Instance
Maintenance intOngoing Count - (Output) Describes number of instances that have ongoing maintenance.
- Instance
Maintenance intPending Count - (Output) Describes number of instances that have pending maintenance.
- Maintenance
Ongoing intCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- Maintenance
Pending intCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- Scheduling
Type string - (Output) The type of maintenance for the reservation.
- Subblock
Infra intMaintenance Ongoing Count - (Output) 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 - (Output) 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 []ReservationMaintenances Resource Status Reservation Maintenance Upcoming Group Maintenance - (Output) Maintenance information on this group of VMs. Structure is documented below.
- instance
Maintenance IntegerOngoing Count - (Output) Describes number of instances that have ongoing maintenance.
- instance
Maintenance IntegerPending Count - (Output) Describes number of instances that have pending maintenance.
- maintenance
Ongoing IntegerCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance
Pending IntegerCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling
Type String - (Output) The type of maintenance for the reservation.
- subblock
Infra IntegerMaintenance Ongoing Count - (Output) 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 - (Output) 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<ReservationMaintenances Resource Status Reservation Maintenance Upcoming Group Maintenance> - (Output) Maintenance information on this group of VMs. Structure is documented below.
- instance
Maintenance numberOngoing Count - (Output) Describes number of instances that have ongoing maintenance.
- instance
Maintenance numberPending Count - (Output) Describes number of instances that have pending maintenance.
- maintenance
Ongoing numberCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance
Pending numberCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling
Type string - (Output) The type of maintenance for the reservation.
- subblock
Infra numberMaintenance Ongoing Count - (Output) 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 - (Output) 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 ReservationMaintenances Resource Status Reservation Maintenance Upcoming Group Maintenance[] - (Output) Maintenance information on this group of VMs. Structure is documented below.
- instance_
maintenance_ intongoing_ count - (Output) Describes number of instances that have ongoing maintenance.
- instance_
maintenance_ intpending_ count - (Output) Describes number of instances that have pending maintenance.
- maintenance_
ongoing_ intcount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance_
pending_ intcount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling_
type str - (Output) The type of maintenance for the reservation.
- subblock_
infra_ intmaintenance_ ongoing_ count - (Output) 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 - (Output) 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[Reservationmaintenances Resource Status Reservation Maintenance Upcoming Group Maintenance] - (Output) Maintenance information on this group of VMs. Structure is documented below.
- instance
Maintenance NumberOngoing Count - (Output) Describes number of instances that have ongoing maintenance.
- instance
Maintenance NumberPending Count - (Output) Describes number of instances that have pending maintenance.
- maintenance
Ongoing NumberCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance.
- maintenance
Pending NumberCount - (Output) Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance.
- scheduling
Type String - (Output) The type of maintenance for the reservation.
- subblock
Infra NumberMaintenance Ongoing Count - (Output) 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 - (Output) 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 - (Output) Maintenance information on this group of VMs. Structure is documented below.
ReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenance, ReservationResourceStatusReservationMaintenanceUpcomingGroupMaintenanceArgs
- Can
Reschedule bool - (Output) Indicates if the maintenance can be customer triggered.
- Latest
Window stringStart Time - (Output) The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- Maintenance
On boolShutdown - (Output) Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- Maintenance
Reasons List<string> - (Output) The reasons for the maintenance. Only valid for vms.
- Maintenance
Status string - (Output) Status of the maintenance.
- Type string
- (Output) Defines the type of maintenance.
- Window
End stringTime - (Output) The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- Window
Start stringTime - (Output) The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- Can
Reschedule bool - (Output) Indicates if the maintenance can be customer triggered.
- Latest
Window stringStart Time - (Output) The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- Maintenance
On boolShutdown - (Output) Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- Maintenance
Reasons []string - (Output) The reasons for the maintenance. Only valid for vms.
- Maintenance
Status string - (Output) Status of the maintenance.
- Type string
- (Output) Defines the type of maintenance.
- Window
End stringTime - (Output) The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- Window
Start stringTime - (Output) The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can
Reschedule Boolean - (Output) Indicates if the maintenance can be customer triggered.
- latest
Window StringStart Time - (Output) The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance
On BooleanShutdown - (Output) Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance
Reasons List<String> - (Output) The reasons for the maintenance. Only valid for vms.
- maintenance
Status String - (Output) Status of the maintenance.
- type String
- (Output) Defines the type of maintenance.
- window
End StringTime - (Output) The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window
Start StringTime - (Output) The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can
Reschedule boolean - (Output) Indicates if the maintenance can be customer triggered.
- latest
Window stringStart Time - (Output) The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance
On booleanShutdown - (Output) Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance
Reasons string[] - (Output) The reasons for the maintenance. Only valid for vms.
- maintenance
Status string - (Output) Status of the maintenance.
- type string
- (Output) Defines the type of maintenance.
- window
End stringTime - (Output) The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window
Start stringTime - (Output) The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can_
reschedule bool - (Output) Indicates if the maintenance can be customer triggered.
- latest_
window_ strstart_ time - (Output) The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance_
on_ boolshutdown - (Output) Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance_
reasons Sequence[str] - (Output) The reasons for the maintenance. Only valid for vms.
- maintenance_
status str - (Output) Status of the maintenance.
- type str
- (Output) Defines the type of maintenance.
- window_
end_ strtime - (Output) The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window_
start_ strtime - (Output) The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
- can
Reschedule Boolean - (Output) Indicates if the maintenance can be customer triggered.
- latest
Window StringStart Time - (Output) The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
- maintenance
On BooleanShutdown - (Output) Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.
- maintenance
Reasons List<String> - (Output) The reasons for the maintenance. Only valid for vms.
- maintenance
Status String - (Output) Status of the maintenance.
- type String
- (Output) Defines the type of maintenance.
- window
End StringTime - (Output) The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
- window
Start StringTime - (Output) The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
ReservationResourceStatusSpecificSkuAllocation, ReservationResourceStatusSpecificSkuAllocationArgs
- Source
Instance stringTemplate Id - (Output) ID of the instance template used to populate reservation properties.
- Utilizations Dictionary<string, string>
- (Output) Per service utilization breakdown. The Key is the Google Cloud managed service name.
- Source
Instance stringTemplate Id - (Output) ID of the instance template used to populate reservation properties.
- Utilizations map[string]string
- (Output) Per service utilization breakdown. The Key is the Google Cloud managed service name.
- source
Instance StringTemplate Id - (Output) ID of the instance template used to populate reservation properties.
- utilizations Map<String,String>
- (Output) Per service utilization breakdown. The Key is the Google Cloud managed service name.
- source
Instance stringTemplate Id - (Output) ID of the instance template used to populate reservation properties.
- utilizations {[key: string]: string}
- (Output) Per service utilization breakdown. The Key is the Google Cloud managed service name.
- source_
instance_ strtemplate_ id - (Output) ID of the instance template used to populate reservation properties.
- utilizations Mapping[str, str]
- (Output) Per service utilization breakdown. The Key is the Google Cloud managed service name.
- source
Instance StringTemplate Id - (Output) ID of the instance template used to populate reservation properties.
- utilizations Map<String>
- (Output) Per service utilization breakdown. The Key is the Google Cloud managed service name.
ReservationShareSettings, ReservationShareSettingsArgs
- Project
Maps List<ReservationShare Settings Project Map> - A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. Structure is documented below.
- Projects List<string>
- List of project IDs with which the reservation is shared.
- string
- Type of sharing for this shared-reservation
Possible values are:
LOCAL,SPECIFIC_PROJECTS.
- Project
Maps []ReservationShare Settings Project Map - A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. Structure is documented below.
- Projects []string
- List of project IDs with which the reservation is shared.
- string
- Type of sharing for this shared-reservation
Possible values are:
LOCAL,SPECIFIC_PROJECTS.
- project
Maps List<ReservationShare Settings Project Map> - A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. Structure is documented below.
- projects List<String>
- List of project IDs with which the reservation is shared.
- String
- Type of sharing for this shared-reservation
Possible values are:
LOCAL,SPECIFIC_PROJECTS.
- project
Maps ReservationShare Settings Project Map[] - A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. Structure is documented below.
- projects string[]
- List of project IDs with which the reservation is shared.
- string
- Type of sharing for this shared-reservation
Possible values are:
LOCAL,SPECIFIC_PROJECTS.
- project_
maps Sequence[ReservationShare Settings Project Map] - A map of project number and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. Structure is documented below.
- projects Sequence[str]
- List of project IDs with which the reservation is shared.
- str
- Type of sharing for this shared-reservation
Possible values are:
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. Structure is documented below.
- projects List<String>
- List of project IDs with which the reservation is shared.
- String
- Type of sharing for this shared-reservation
Possible values are:
LOCAL,SPECIFIC_PROJECTS.
ReservationShareSettingsProjectMap, ReservationShareSettingsProjectMapArgs
- id str
- The identifier for this object. Format specified above.
- project_
id str - The project id/number, should be same as the key of this project config in the project map.
ReservationSpecificReservation, ReservationSpecificReservationArgs
- Count int
- The number of resources that are allocated.
- Assured
Count int - (Output) Indicates how many instances are actually usable currently.
- In
Use intCount - (Output) How many instances are in use.
- Instance
Properties ReservationSpecific Reservation Instance Properties - The instance properties for the reservation. Structure is documented below.
- Source
Instance stringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- Count int
- The number of resources that are allocated.
- Assured
Count int - (Output) Indicates how many instances are actually usable currently.
- In
Use intCount - (Output) How many instances are in use.
- Instance
Properties ReservationSpecific Reservation Instance Properties - The instance properties for the reservation. Structure is documented below.
- Source
Instance stringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- count Integer
- The number of resources that are allocated.
- assured
Count Integer - (Output) Indicates how many instances are actually usable currently.
- in
Use IntegerCount - (Output) How many instances are in use.
- instance
Properties ReservationSpecific Reservation Instance Properties - The instance properties for the reservation. Structure is documented below.
- source
Instance StringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- count number
- The number of resources that are allocated.
- assured
Count number - (Output) Indicates how many instances are actually usable currently.
- in
Use numberCount - (Output) How many instances are in use.
- instance
Properties ReservationSpecific Reservation Instance Properties - The instance properties for the reservation. Structure is documented below.
- source
Instance stringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- count int
- The number of resources that are allocated.
- assured_
count int - (Output) Indicates how many instances are actually usable currently.
- in_
use_ intcount - (Output) How many instances are in use.
- instance_
properties ReservationSpecific Reservation Instance Properties - The instance properties for the reservation. Structure is documented below.
- source_
instance_ strtemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
- count Number
- The number of resources that are allocated.
- assured
Count Number - (Output) Indicates how many instances are actually usable currently.
- in
Use NumberCount - (Output) How many instances are in use.
- instance
Properties Property Map - The instance properties for the reservation. Structure is documented below.
- source
Instance StringTemplate - Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field.
ReservationSpecificReservationInstanceProperties, ReservationSpecificReservationInstancePropertiesArgs
- Machine
Type string - The name of the machine type to reserve.
- Guest
Accelerators List<ReservationSpecific Reservation Instance Properties Guest Accelerator> - Guest accelerator type and count. Structure is documented below.
- Local
Ssds List<ReservationSpecific Reservation Instance Properties Local Ssd> - The amount of local ssd to reserve with each instance. This
reserves disks of type
local-ssd. Structure is documented below. - Location
Hint string - (Output) 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.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events.
Possible values are:
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.
- Machine
Type string - The name of the machine type to reserve.
- Guest
Accelerators []ReservationSpecific Reservation Instance Properties Guest Accelerator - Guest accelerator type and count. Structure is documented below.
- Local
Ssds []ReservationSpecific Reservation Instance Properties Local Ssd - The amount of local ssd to reserve with each instance. This
reserves disks of type
local-ssd. Structure is documented below. - Location
Hint string - (Output) 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.
- Maintenance
Interval string - Specifies the frequency of planned maintenance events.
Possible values are:
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.
- machine
Type String - The name of the machine type to reserve.
- guest
Accelerators List<ReservationSpecific Reservation Instance Properties Guest Accelerator> - Guest accelerator type and count. Structure is documented below.
- local
Ssds List<ReservationSpecific Reservation Instance Properties Local Ssd> - The amount of local ssd to reserve with each instance. This
reserves disks of type
local-ssd. Structure is documented below. - location
Hint String - (Output) 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.
- maintenance
Interval String - Specifies the frequency of planned maintenance events.
Possible values are:
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.
- machine
Type string - The name of the machine type to reserve.
- guest
Accelerators ReservationSpecific Reservation Instance Properties Guest Accelerator[] - Guest accelerator type and count. Structure is documented below.
- local
Ssds ReservationSpecific Reservation Instance Properties Local Ssd[] - The amount of local ssd to reserve with each instance. This
reserves disks of type
local-ssd. Structure is documented below. - location
Hint string - (Output) 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.
- maintenance
Interval string - Specifies the frequency of planned maintenance events.
Possible values are:
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.
- machine_
type str - The name of the machine type to reserve.
- guest_
accelerators Sequence[ReservationSpecific Reservation Instance Properties Guest Accelerator] - Guest accelerator type and count. Structure is documented below.
- local_
ssds Sequence[ReservationSpecific Reservation Instance Properties Local Ssd] - The amount of local ssd to reserve with each instance. This
reserves disks of type
local-ssd. Structure is documented below. - location_
hint str - (Output) 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.
- maintenance_
interval str - Specifies the frequency of planned maintenance events.
Possible values are:
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.
- machine
Type String - The name of the machine type to reserve.
- guest
Accelerators List<Property Map> - Guest accelerator type and count. Structure is documented below.
- local
Ssds List<Property Map> - The amount of local ssd to reserve with each instance. This
reserves disks of type
local-ssd. Structure is documented below. - location
Hint String - (Output) 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.
- maintenance
Interval String - Specifies the frequency of planned maintenance events.
Possible values are:
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.
ReservationSpecificReservationInstancePropertiesGuestAccelerator, ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs
- 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-p100If 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-p100If 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-p100If 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-p100If 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-p100If 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-p100If you are creating an instance template, specify only the accelerator name.
ReservationSpecificReservationInstancePropertiesLocalSsd, ReservationSpecificReservationInstancePropertiesLocalSsdArgs
- 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 is
SCSI. Possible values are: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 is
SCSI. Possible values are: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 is
SCSI. Possible values are: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 is
SCSI. Possible values are: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 is
SCSI. Possible values are: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 is
SCSI. Possible values are:SCSI,NVME.
Import
Reservation can be imported using any of these accepted formats:
projects/{{project}}/zones/{{zone}}/reservations/{{name}}{{project}}/{{zone}}/{{name}}{{zone}}/{{name}}{{name}}
When using the pulumi import command, Reservation can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/reservation:Reservation default projects/{{project}}/zones/{{zone}}/reservations/{{name}}
$ pulumi import gcp:compute/reservation:Reservation default {{project}}/{{zone}}/{{name}}
$ pulumi import gcp:compute/reservation:Reservation default {{zone}}/{{name}}
$ pulumi import gcp:compute/reservation:Reservation default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
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.
