An imperative resource that triggers a GCBDR restoration event. Creating this resource will initiate a restore operation from a specified backup. The resource represents the restore operation and its result.
Example Usage
Backup Dr Restore Workload Compute Instance Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const restoreComputeBasic = new gcp.backupdisasterrecovery.RestoreWorkload("restore_compute_basic", {
location: "us-central1",
backupVaultId: "backup-vault",
dataSourceId: "data-source",
backupId: "backup",
name: "projects/my-project/locations/us-central1/backups/my-backup",
computeInstanceTargetEnvironment: {
project: "my-project-name",
zone: "us-central1-a",
},
computeInstanceRestoreProperties: {
name: "restored-instance",
machineType: "e2-medium",
},
});
import pulumi
import pulumi_gcp as gcp
restore_compute_basic = gcp.backupdisasterrecovery.RestoreWorkload("restore_compute_basic",
location="us-central1",
backup_vault_id="backup-vault",
data_source_id="data-source",
backup_id="backup",
name="projects/my-project/locations/us-central1/backups/my-backup",
compute_instance_target_environment={
"project": "my-project-name",
"zone": "us-central1-a",
},
compute_instance_restore_properties={
"name": "restored-instance",
"machine_type": "e2-medium",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.NewRestoreWorkload(ctx, "restore_compute_basic", &backupdisasterrecovery.RestoreWorkloadArgs{
Location: pulumi.String("us-central1"),
BackupVaultId: pulumi.String("backup-vault"),
DataSourceId: pulumi.String("data-source"),
BackupId: pulumi.String("backup"),
Name: pulumi.String("projects/my-project/locations/us-central1/backups/my-backup"),
ComputeInstanceTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadComputeInstanceTargetEnvironmentArgs{
Project: pulumi.String("my-project-name"),
Zone: pulumi.String("us-central1-a"),
},
ComputeInstanceRestoreProperties: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesArgs{
Name: pulumi.String("restored-instance"),
MachineType: pulumi.String("e2-medium"),
},
})
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 restoreComputeBasic = new Gcp.BackupDisasterRecovery.RestoreWorkload("restore_compute_basic", new()
{
Location = "us-central1",
BackupVaultId = "backup-vault",
DataSourceId = "data-source",
BackupId = "backup",
Name = "projects/my-project/locations/us-central1/backups/my-backup",
ComputeInstanceTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceTargetEnvironmentArgs
{
Project = "my-project-name",
Zone = "us-central1-a",
},
ComputeInstanceRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesArgs
{
Name = "restored-instance",
MachineType = "e2-medium",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkload;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkloadArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceTargetEnvironmentArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesArgs;
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 restoreComputeBasic = new RestoreWorkload("restoreComputeBasic", RestoreWorkloadArgs.builder()
.location("us-central1")
.backupVaultId("backup-vault")
.dataSourceId("data-source")
.backupId("backup")
.name("projects/my-project/locations/us-central1/backups/my-backup")
.computeInstanceTargetEnvironment(RestoreWorkloadComputeInstanceTargetEnvironmentArgs.builder()
.project("my-project-name")
.zone("us-central1-a")
.build())
.computeInstanceRestoreProperties(RestoreWorkloadComputeInstanceRestorePropertiesArgs.builder()
.name("restored-instance")
.machineType("e2-medium")
.build())
.build());
}
}
resources:
restoreComputeBasic:
type: gcp:backupdisasterrecovery:RestoreWorkload
name: restore_compute_basic
properties:
location: us-central1
backupVaultId: backup-vault
dataSourceId: data-source
backupId: backup
name: projects/my-project/locations/us-central1/backups/my-backup
computeInstanceTargetEnvironment:
project: my-project-name
zone: us-central1-a
computeInstanceRestoreProperties:
name: restored-instance
machineType: e2-medium
Backup Dr Restore Workload Compute Instance Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const restoreComputeFull = new gcp.backupdisasterrecovery.RestoreWorkload("restore_compute_full", {
location: "us-central1",
backupVaultId: "backup-vault",
dataSourceId: "data-source",
backupId: "backup",
name: "projects/my-project/locations/us-central1/backups/my-backup",
computeInstanceTargetEnvironment: {
project: "my-project-name",
zone: "us-central1-a",
},
computeInstanceRestoreProperties: {
name: "restored-instance-full",
machineType: "e2-medium",
description: "Restored compute instance with advanced configuration",
canIpForward: true,
deletionProtection: false,
labels: {
environment: "production",
restored: "true",
team: "infrastructure",
},
tags: {
items: [
"web",
"https-server",
"restored",
],
},
networkInterfaces: [{
network: "default",
subnetwork: "projects/my-project-name/regions/us-central1/subnetworks/default",
accessConfigs: [{
name: "External NAT",
networkTier: "PREMIUM",
}],
}],
scheduling: {
automaticRestart: true,
onHostMaintenance: "MIGRATE",
preemptible: false,
provisioningModel: "STANDARD",
},
serviceAccounts: [{
email: "default",
scopes: [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
],
}],
shieldedInstanceConfig: {
enableSecureBoot: true,
enableVtpm: true,
enableIntegrityMonitoring: true,
},
advancedMachineFeatures: {
enableNestedVirtualization: false,
threadsPerCore: 1,
},
metadata: {
items: [
{
key: "startup-script",
value: `#!/bin/bash
echo 'Instance restored' > /tmp/restored.txt`,
},
{
key: "enable-oslogin",
value: "TRUE",
},
],
},
},
});
import pulumi
import pulumi_gcp as gcp
restore_compute_full = gcp.backupdisasterrecovery.RestoreWorkload("restore_compute_full",
location="us-central1",
backup_vault_id="backup-vault",
data_source_id="data-source",
backup_id="backup",
name="projects/my-project/locations/us-central1/backups/my-backup",
compute_instance_target_environment={
"project": "my-project-name",
"zone": "us-central1-a",
},
compute_instance_restore_properties={
"name": "restored-instance-full",
"machine_type": "e2-medium",
"description": "Restored compute instance with advanced configuration",
"can_ip_forward": True,
"deletion_protection": False,
"labels": {
"environment": "production",
"restored": "true",
"team": "infrastructure",
},
"tags": {
"items": [
"web",
"https-server",
"restored",
],
},
"network_interfaces": [{
"network": "default",
"subnetwork": "projects/my-project-name/regions/us-central1/subnetworks/default",
"access_configs": [{
"name": "External NAT",
"network_tier": "PREMIUM",
}],
}],
"scheduling": {
"automatic_restart": True,
"on_host_maintenance": "MIGRATE",
"preemptible": False,
"provisioning_model": "STANDARD",
},
"service_accounts": [{
"email": "default",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
],
}],
"shielded_instance_config": {
"enable_secure_boot": True,
"enable_vtpm": True,
"enable_integrity_monitoring": True,
},
"advanced_machine_features": {
"enable_nested_virtualization": False,
"threads_per_core": 1,
},
"metadata": {
"items": [
{
"key": "startup-script",
"value": """#!/bin/bash
echo 'Instance restored' > /tmp/restored.txt""",
},
{
"key": "enable-oslogin",
"value": "TRUE",
},
],
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.NewRestoreWorkload(ctx, "restore_compute_full", &backupdisasterrecovery.RestoreWorkloadArgs{
Location: pulumi.String("us-central1"),
BackupVaultId: pulumi.String("backup-vault"),
DataSourceId: pulumi.String("data-source"),
BackupId: pulumi.String("backup"),
Name: pulumi.String("projects/my-project/locations/us-central1/backups/my-backup"),
ComputeInstanceTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadComputeInstanceTargetEnvironmentArgs{
Project: pulumi.String("my-project-name"),
Zone: pulumi.String("us-central1-a"),
},
ComputeInstanceRestoreProperties: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesArgs{
Name: pulumi.String("restored-instance-full"),
MachineType: pulumi.String("e2-medium"),
Description: pulumi.String("Restored compute instance with advanced configuration"),
CanIpForward: pulumi.Bool(true),
DeletionProtection: pulumi.Bool(false),
Labels: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesLabelArray{
Environment: "production",
Restored: "true",
Team: "infrastructure",
},
Tags: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs{
Items: pulumi.StringArray{
pulumi.String("web"),
pulumi.String("https-server"),
pulumi.String("restored"),
},
},
NetworkInterfaces: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs{
Network: pulumi.String("default"),
Subnetwork: pulumi.String("projects/my-project-name/regions/us-central1/subnetworks/default"),
AccessConfigs: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs{
Name: pulumi.String("External NAT"),
NetworkTier: pulumi.String("PREMIUM"),
},
},
},
},
Scheduling: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs{
AutomaticRestart: pulumi.Bool(true),
OnHostMaintenance: pulumi.String("MIGRATE"),
Preemptible: pulumi.Bool(false),
ProvisioningModel: pulumi.String("STANDARD"),
},
ServiceAccounts: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs{
Email: pulumi.String("default"),
Scopes: pulumi.StringArray{
pulumi.String("https://www.googleapis.com/auth/cloud-platform"),
pulumi.String("https://www.googleapis.com/auth/compute"),
},
},
},
ShieldedInstanceConfig: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs{
EnableSecureBoot: pulumi.Bool(true),
EnableVtpm: pulumi.Bool(true),
EnableIntegrityMonitoring: pulumi.Bool(true),
},
AdvancedMachineFeatures: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs{
EnableNestedVirtualization: pulumi.Bool(false),
ThreadsPerCore: pulumi.Int(1),
},
Metadata: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs{
Items: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs{
Key: pulumi.String("startup-script"),
Value: pulumi.String("#!/bin/bash\necho 'Instance restored' > /tmp/restored.txt"),
},
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs{
Key: pulumi.String("enable-oslogin"),
Value: pulumi.String("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 restoreComputeFull = new Gcp.BackupDisasterRecovery.RestoreWorkload("restore_compute_full", new()
{
Location = "us-central1",
BackupVaultId = "backup-vault",
DataSourceId = "data-source",
BackupId = "backup",
Name = "projects/my-project/locations/us-central1/backups/my-backup",
ComputeInstanceTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceTargetEnvironmentArgs
{
Project = "my-project-name",
Zone = "us-central1-a",
},
ComputeInstanceRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesArgs
{
Name = "restored-instance-full",
MachineType = "e2-medium",
Description = "Restored compute instance with advanced configuration",
CanIpForward = true,
DeletionProtection = false,
Labels =
{
{ "environment", "production" },
{ "restored", "true" },
{ "team", "infrastructure" },
},
Tags = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs
{
Items = new[]
{
"web",
"https-server",
"restored",
},
},
NetworkInterfaces = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs
{
Network = "default",
Subnetwork = "projects/my-project-name/regions/us-central1/subnetworks/default",
AccessConfigs = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs
{
Name = "External NAT",
NetworkTier = "PREMIUM",
},
},
},
},
Scheduling = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs
{
AutomaticRestart = true,
OnHostMaintenance = "MIGRATE",
Preemptible = false,
ProvisioningModel = "STANDARD",
},
ServiceAccounts = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs
{
Email = "default",
Scopes = new[]
{
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
},
},
},
ShieldedInstanceConfig = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs
{
EnableSecureBoot = true,
EnableVtpm = true,
EnableIntegrityMonitoring = true,
},
AdvancedMachineFeatures = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs
{
EnableNestedVirtualization = false,
ThreadsPerCore = 1,
},
Metadata = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs
{
Items = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs
{
Key = "startup-script",
Value = @"#!/bin/bash
echo 'Instance restored' > /tmp/restored.txt",
},
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs
{
Key = "enable-oslogin",
Value = "TRUE",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkload;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkloadArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceTargetEnvironmentArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs;
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 restoreComputeFull = new RestoreWorkload("restoreComputeFull", RestoreWorkloadArgs.builder()
.location("us-central1")
.backupVaultId("backup-vault")
.dataSourceId("data-source")
.backupId("backup")
.name("projects/my-project/locations/us-central1/backups/my-backup")
.computeInstanceTargetEnvironment(RestoreWorkloadComputeInstanceTargetEnvironmentArgs.builder()
.project("my-project-name")
.zone("us-central1-a")
.build())
.computeInstanceRestoreProperties(RestoreWorkloadComputeInstanceRestorePropertiesArgs.builder()
.name("restored-instance-full")
.machineType("e2-medium")
.description("Restored compute instance with advanced configuration")
.canIpForward(true)
.deletionProtection(false)
.labels(RestoreWorkloadComputeInstanceRestorePropertiesLabelArgs.builder()
.environment("production")
.restored("true")
.team("infrastructure")
.build())
.tags(RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs.builder()
.items(
"web",
"https-server",
"restored")
.build())
.networkInterfaces(RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs.builder()
.network("default")
.subnetwork("projects/my-project-name/regions/us-central1/subnetworks/default")
.accessConfigs(RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs.builder()
.name("External NAT")
.networkTier("PREMIUM")
.build())
.build())
.scheduling(RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs.builder()
.automaticRestart(true)
.onHostMaintenance("MIGRATE")
.preemptible(false)
.provisioningModel("STANDARD")
.build())
.serviceAccounts(RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs.builder()
.email("default")
.scopes(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute")
.build())
.shieldedInstanceConfig(RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs.builder()
.enableSecureBoot(true)
.enableVtpm(true)
.enableIntegrityMonitoring(true)
.build())
.advancedMachineFeatures(RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs.builder()
.enableNestedVirtualization(false)
.threadsPerCore(1)
.build())
.metadata(RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs.builder()
.items(
RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs.builder()
.key("startup-script")
.value("""
#!/bin/bash
echo 'Instance restored' > /tmp/restored.txt """)
.build(),
RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs.builder()
.key("enable-oslogin")
.value("TRUE")
.build())
.build())
.build())
.build());
}
}
resources:
restoreComputeFull:
type: gcp:backupdisasterrecovery:RestoreWorkload
name: restore_compute_full
properties:
location: us-central1
backupVaultId: backup-vault
dataSourceId: data-source
backupId: backup
name: projects/my-project/locations/us-central1/backups/my-backup
computeInstanceTargetEnvironment:
project: my-project-name
zone: us-central1-a
computeInstanceRestoreProperties:
name: restored-instance-full
machineType: e2-medium
description: Restored compute instance with advanced configuration
canIpForward: true
deletionProtection: false
labels:
environment: production
restored: 'true'
team: infrastructure
tags:
items:
- web
- https-server
- restored
networkInterfaces:
- network: default
subnetwork: projects/my-project-name/regions/us-central1/subnetworks/default
accessConfigs:
- name: External NAT
networkTier: PREMIUM
scheduling:
automaticRestart: true
onHostMaintenance: MIGRATE
preemptible: false
provisioningModel: STANDARD
serviceAccounts:
- email: default
scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/compute
shieldedInstanceConfig:
enableSecureBoot: true
enableVtpm: true
enableIntegrityMonitoring: true
advancedMachineFeatures:
enableNestedVirtualization: false
threadsPerCore: 1
metadata:
items:
- key: startup-script
value: |-
#!/bin/bash
echo 'Instance restored' > /tmp/restored.txt
- key: enable-oslogin
value: TRUE
Backup Dr Restore Workload Disk Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const restoreDiskBasic = new gcp.backupdisasterrecovery.RestoreWorkload("restore_disk_basic", {
location: "us-central1",
backupVaultId: "backup-vault",
dataSourceId: "data-source",
backupId: "backup",
name: "projects/my-project/locations/us-central1/backups/my-backup",
diskTargetEnvironment: {
project: "my-project-name",
zone: "us-central1-a",
},
diskRestoreProperties: {
name: "restored-disk",
sizeGb: 100,
type: "pd-standard",
description: "Restored persistent disk from backup",
labels: {
environment: "production",
restored: "true",
},
},
});
import pulumi
import pulumi_gcp as gcp
restore_disk_basic = gcp.backupdisasterrecovery.RestoreWorkload("restore_disk_basic",
location="us-central1",
backup_vault_id="backup-vault",
data_source_id="data-source",
backup_id="backup",
name="projects/my-project/locations/us-central1/backups/my-backup",
disk_target_environment={
"project": "my-project-name",
"zone": "us-central1-a",
},
disk_restore_properties={
"name": "restored-disk",
"size_gb": 100,
"type": "pd-standard",
"description": "Restored persistent disk from backup",
"labels": {
"environment": "production",
"restored": "true",
},
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.NewRestoreWorkload(ctx, "restore_disk_basic", &backupdisasterrecovery.RestoreWorkloadArgs{
Location: pulumi.String("us-central1"),
BackupVaultId: pulumi.String("backup-vault"),
DataSourceId: pulumi.String("data-source"),
BackupId: pulumi.String("backup"),
Name: pulumi.String("projects/my-project/locations/us-central1/backups/my-backup"),
DiskTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadDiskTargetEnvironmentArgs{
Project: pulumi.String("my-project-name"),
Zone: pulumi.String("us-central1-a"),
},
DiskRestoreProperties: &backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesArgs{
Name: pulumi.String("restored-disk"),
SizeGb: pulumi.Int(100),
Type: pulumi.String("pd-standard"),
Description: pulumi.String("Restored persistent disk from backup"),
Labels: backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesLabelArray{
Environment: "production",
Restored: "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 restoreDiskBasic = new Gcp.BackupDisasterRecovery.RestoreWorkload("restore_disk_basic", new()
{
Location = "us-central1",
BackupVaultId = "backup-vault",
DataSourceId = "data-source",
BackupId = "backup",
Name = "projects/my-project/locations/us-central1/backups/my-backup",
DiskTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskTargetEnvironmentArgs
{
Project = "my-project-name",
Zone = "us-central1-a",
},
DiskRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesArgs
{
Name = "restored-disk",
SizeGb = 100,
Type = "pd-standard",
Description = "Restored persistent disk from backup",
Labels =
{
{ "environment", "production" },
{ "restored", "true" },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkload;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkloadArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadDiskTargetEnvironmentArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadDiskRestorePropertiesArgs;
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 restoreDiskBasic = new RestoreWorkload("restoreDiskBasic", RestoreWorkloadArgs.builder()
.location("us-central1")
.backupVaultId("backup-vault")
.dataSourceId("data-source")
.backupId("backup")
.name("projects/my-project/locations/us-central1/backups/my-backup")
.diskTargetEnvironment(RestoreWorkloadDiskTargetEnvironmentArgs.builder()
.project("my-project-name")
.zone("us-central1-a")
.build())
.diskRestoreProperties(RestoreWorkloadDiskRestorePropertiesArgs.builder()
.name("restored-disk")
.sizeGb(100)
.type("pd-standard")
.description("Restored persistent disk from backup")
.labels(RestoreWorkloadDiskRestorePropertiesLabelArgs.builder()
.environment("production")
.restored("true")
.build())
.build())
.build());
}
}
resources:
restoreDiskBasic:
type: gcp:backupdisasterrecovery:RestoreWorkload
name: restore_disk_basic
properties:
location: us-central1
backupVaultId: backup-vault
dataSourceId: data-source
backupId: backup
name: projects/my-project/locations/us-central1/backups/my-backup
diskTargetEnvironment:
project: my-project-name
zone: us-central1-a
diskRestoreProperties:
name: restored-disk
sizeGb: 100
type: pd-standard
description: Restored persistent disk from backup
labels:
environment: production
restored: 'true'
Backup Dr Restore Workload Regional Disk
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const restoreRegionalDisk = new gcp.backupdisasterrecovery.RestoreWorkload("restore_regional_disk", {
location: "us-central1",
backupVaultId: "backup-vault",
dataSourceId: "data-source",
backupId: "backup",
name: "projects/my-project/locations/us-central1/backups/my-backup",
regionDiskTargetEnvironment: {
project: "my-project-name",
region: "us-central1",
replicaZones: [
"us-central1-a",
"us-central1-b",
],
},
diskRestoreProperties: {
name: "restored-regional-disk",
sizeGb: 200,
type: "pd-balanced",
description: "Restored regional persistent disk",
labels: {
type: "regional",
environment: "production",
},
provisionedIops: 3000,
provisionedThroughput: 140,
},
});
import pulumi
import pulumi_gcp as gcp
restore_regional_disk = gcp.backupdisasterrecovery.RestoreWorkload("restore_regional_disk",
location="us-central1",
backup_vault_id="backup-vault",
data_source_id="data-source",
backup_id="backup",
name="projects/my-project/locations/us-central1/backups/my-backup",
region_disk_target_environment={
"project": "my-project-name",
"region": "us-central1",
"replica_zones": [
"us-central1-a",
"us-central1-b",
],
},
disk_restore_properties={
"name": "restored-regional-disk",
"size_gb": 200,
"type": "pd-balanced",
"description": "Restored regional persistent disk",
"labels": {
"type": "regional",
"environment": "production",
},
"provisioned_iops": 3000,
"provisioned_throughput": 140,
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.NewRestoreWorkload(ctx, "restore_regional_disk", &backupdisasterrecovery.RestoreWorkloadArgs{
Location: pulumi.String("us-central1"),
BackupVaultId: pulumi.String("backup-vault"),
DataSourceId: pulumi.String("data-source"),
BackupId: pulumi.String("backup"),
Name: pulumi.String("projects/my-project/locations/us-central1/backups/my-backup"),
RegionDiskTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadRegionDiskTargetEnvironmentArgs{
Project: pulumi.String("my-project-name"),
Region: pulumi.String("us-central1"),
ReplicaZones: pulumi.StringArray{
pulumi.String("us-central1-a"),
pulumi.String("us-central1-b"),
},
},
DiskRestoreProperties: &backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesArgs{
Name: pulumi.String("restored-regional-disk"),
SizeGb: pulumi.Int(200),
Type: pulumi.String("pd-balanced"),
Description: pulumi.String("Restored regional persistent disk"),
Labels: backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesLabelArray{
Type: "regional",
Environment: "production",
},
ProvisionedIops: pulumi.Int(3000),
ProvisionedThroughput: pulumi.Int(140),
},
})
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 restoreRegionalDisk = new Gcp.BackupDisasterRecovery.RestoreWorkload("restore_regional_disk", new()
{
Location = "us-central1",
BackupVaultId = "backup-vault",
DataSourceId = "data-source",
BackupId = "backup",
Name = "projects/my-project/locations/us-central1/backups/my-backup",
RegionDiskTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadRegionDiskTargetEnvironmentArgs
{
Project = "my-project-name",
Region = "us-central1",
ReplicaZones = new[]
{
"us-central1-a",
"us-central1-b",
},
},
DiskRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesArgs
{
Name = "restored-regional-disk",
SizeGb = 200,
Type = "pd-balanced",
Description = "Restored regional persistent disk",
Labels =
{
{ "type", "regional" },
{ "environment", "production" },
},
ProvisionedIops = 3000,
ProvisionedThroughput = 140,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkload;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkloadArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadRegionDiskTargetEnvironmentArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadDiskRestorePropertiesArgs;
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 restoreRegionalDisk = new RestoreWorkload("restoreRegionalDisk", RestoreWorkloadArgs.builder()
.location("us-central1")
.backupVaultId("backup-vault")
.dataSourceId("data-source")
.backupId("backup")
.name("projects/my-project/locations/us-central1/backups/my-backup")
.regionDiskTargetEnvironment(RestoreWorkloadRegionDiskTargetEnvironmentArgs.builder()
.project("my-project-name")
.region("us-central1")
.replicaZones(
"us-central1-a",
"us-central1-b")
.build())
.diskRestoreProperties(RestoreWorkloadDiskRestorePropertiesArgs.builder()
.name("restored-regional-disk")
.sizeGb(200)
.type("pd-balanced")
.description("Restored regional persistent disk")
.labels(RestoreWorkloadDiskRestorePropertiesLabelArgs.builder()
.type("regional")
.environment("production")
.build())
.provisionedIops(3000)
.provisionedThroughput(140)
.build())
.build());
}
}
resources:
restoreRegionalDisk:
type: gcp:backupdisasterrecovery:RestoreWorkload
name: restore_regional_disk
properties:
location: us-central1
backupVaultId: backup-vault
dataSourceId: data-source
backupId: backup
name: projects/my-project/locations/us-central1/backups/my-backup
regionDiskTargetEnvironment:
project: my-project-name
region: us-central1
replicaZones:
- us-central1-a
- us-central1-b
diskRestoreProperties:
name: restored-regional-disk
sizeGb: 200
type: pd-balanced
description: Restored regional persistent disk
labels:
type: regional
environment: production
provisionedIops: 3000
provisionedThroughput: 140
Backup Dr Restore Workload Without Delete
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const restoreWithoutDelete = new gcp.backupdisasterrecovery.RestoreWorkload("restore_without_delete", {
location: "us-central1",
backupVaultId: "backup-vault",
dataSourceId: "data-source",
backupId: "backup",
name: "projects/my-project/locations/us-central1/backups/my-backup",
deleteRestoredInstance: false,
diskTargetEnvironment: {
project: "my-project-name",
zone: "us-central1-a",
},
diskRestoreProperties: {
name: "persistent-disk",
sizeGb: 50,
type: "pd-standard",
},
});
import pulumi
import pulumi_gcp as gcp
restore_without_delete = gcp.backupdisasterrecovery.RestoreWorkload("restore_without_delete",
location="us-central1",
backup_vault_id="backup-vault",
data_source_id="data-source",
backup_id="backup",
name="projects/my-project/locations/us-central1/backups/my-backup",
delete_restored_instance=False,
disk_target_environment={
"project": "my-project-name",
"zone": "us-central1-a",
},
disk_restore_properties={
"name": "persistent-disk",
"size_gb": 50,
"type": "pd-standard",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.NewRestoreWorkload(ctx, "restore_without_delete", &backupdisasterrecovery.RestoreWorkloadArgs{
Location: pulumi.String("us-central1"),
BackupVaultId: pulumi.String("backup-vault"),
DataSourceId: pulumi.String("data-source"),
BackupId: pulumi.String("backup"),
Name: pulumi.String("projects/my-project/locations/us-central1/backups/my-backup"),
DeleteRestoredInstance: pulumi.Bool(false),
DiskTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadDiskTargetEnvironmentArgs{
Project: pulumi.String("my-project-name"),
Zone: pulumi.String("us-central1-a"),
},
DiskRestoreProperties: &backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesArgs{
Name: pulumi.String("persistent-disk"),
SizeGb: pulumi.Int(50),
Type: pulumi.String("pd-standard"),
},
})
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 restoreWithoutDelete = new Gcp.BackupDisasterRecovery.RestoreWorkload("restore_without_delete", new()
{
Location = "us-central1",
BackupVaultId = "backup-vault",
DataSourceId = "data-source",
BackupId = "backup",
Name = "projects/my-project/locations/us-central1/backups/my-backup",
DeleteRestoredInstance = false,
DiskTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskTargetEnvironmentArgs
{
Project = "my-project-name",
Zone = "us-central1-a",
},
DiskRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesArgs
{
Name = "persistent-disk",
SizeGb = 50,
Type = "pd-standard",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkload;
import com.pulumi.gcp.backupdisasterrecovery.RestoreWorkloadArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadDiskTargetEnvironmentArgs;
import com.pulumi.gcp.backupdisasterrecovery.inputs.RestoreWorkloadDiskRestorePropertiesArgs;
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 restoreWithoutDelete = new RestoreWorkload("restoreWithoutDelete", RestoreWorkloadArgs.builder()
.location("us-central1")
.backupVaultId("backup-vault")
.dataSourceId("data-source")
.backupId("backup")
.name("projects/my-project/locations/us-central1/backups/my-backup")
.deleteRestoredInstance(false)
.diskTargetEnvironment(RestoreWorkloadDiskTargetEnvironmentArgs.builder()
.project("my-project-name")
.zone("us-central1-a")
.build())
.diskRestoreProperties(RestoreWorkloadDiskRestorePropertiesArgs.builder()
.name("persistent-disk")
.sizeGb(50)
.type("pd-standard")
.build())
.build());
}
}
resources:
restoreWithoutDelete:
type: gcp:backupdisasterrecovery:RestoreWorkload
name: restore_without_delete
properties:
location: us-central1
backupVaultId: backup-vault
dataSourceId: data-source
backupId: backup
name: projects/my-project/locations/us-central1/backups/my-backup
deleteRestoredInstance: false
diskTargetEnvironment:
project: my-project-name
zone: us-central1-a
diskRestoreProperties:
name: persistent-disk
sizeGb: 50
type: pd-standard
Create RestoreWorkload Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RestoreWorkload(name: string, args: RestoreWorkloadArgs, opts?: CustomResourceOptions);@overload
def RestoreWorkload(resource_name: str,
args: RestoreWorkloadArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RestoreWorkload(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_source_id: Optional[str] = None,
backup_vault_id: Optional[str] = None,
location: Optional[str] = None,
backup_id: Optional[str] = None,
compute_instance_restore_properties: Optional[RestoreWorkloadComputeInstanceRestorePropertiesArgs] = None,
compute_instance_target_environment: Optional[RestoreWorkloadComputeInstanceTargetEnvironmentArgs] = None,
delete_restored_instance: Optional[bool] = None,
disk_restore_properties: Optional[RestoreWorkloadDiskRestorePropertiesArgs] = None,
disk_target_environment: Optional[RestoreWorkloadDiskTargetEnvironmentArgs] = None,
clear_overrides_field_mask: Optional[str] = None,
name: Optional[str] = None,
region_disk_target_environment: Optional[RestoreWorkloadRegionDiskTargetEnvironmentArgs] = None,
request_id: Optional[str] = None)func NewRestoreWorkload(ctx *Context, name string, args RestoreWorkloadArgs, opts ...ResourceOption) (*RestoreWorkload, error)public RestoreWorkload(string name, RestoreWorkloadArgs args, CustomResourceOptions? opts = null)
public RestoreWorkload(String name, RestoreWorkloadArgs args)
public RestoreWorkload(String name, RestoreWorkloadArgs args, CustomResourceOptions options)
type: gcp:backupdisasterrecovery:RestoreWorkload
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 RestoreWorkloadArgs
- 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 RestoreWorkloadArgs
- 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 RestoreWorkloadArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RestoreWorkloadArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RestoreWorkloadArgs
- 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 restoreWorkloadResource = new Gcp.BackupDisasterRecovery.RestoreWorkload("restoreWorkloadResource", new()
{
DataSourceId = "string",
BackupVaultId = "string",
Location = "string",
BackupId = "string",
ComputeInstanceRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesArgs
{
Name = "string",
Labels = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesLabelArgs
{
Key = "string",
Value = "string",
},
},
Scheduling = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs
{
AutomaticRestart = false,
InstanceTerminationAction = "string",
LocalSsdRecoveryTimeout = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingLocalSsdRecoveryTimeoutArgs
{
Nanos = 0,
Seconds = 0,
},
MaxRunDuration = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingMaxRunDurationArgs
{
Nanos = 0,
Seconds = 0,
},
MinNodeCpus = 0,
NodeAffinities = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingNodeAffinityArgs
{
Key = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
OnHostMaintenance = "string",
Preemptible = false,
ProvisioningModel = "string",
TerminationTime = "string",
},
ConfidentialInstanceConfig = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesConfidentialInstanceConfigArgs
{
EnableConfidentialCompute = false,
},
DeletionProtection = false,
Description = "string",
Disks = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesDiskArgs
{
AutoDelete = false,
Boot = false,
DeviceName = "string",
DiskEncryptionKey = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesDiskDiskEncryptionKeyArgs
{
KmsKeyName = "string",
KmsKeyServiceAccount = "string",
RawKey = "string",
RsaEncryptedKey = "string",
},
DiskInterface = "string",
DiskSizeGb = 0,
DiskType = "string",
GuestOsFeatures = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesDiskGuestOsFeatureArgs
{
Type = "string",
},
},
Index = 0,
InitializeParams = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesDiskInitializeParamsArgs
{
DiskName = "string",
ReplicaZones = new[]
{
"string",
},
},
Kind = "string",
Licenses = new[]
{
"string",
},
Mode = "string",
SavedState = "string",
Source = "string",
Type = "string",
},
},
DisplayDevice = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesDisplayDeviceArgs
{
EnableDisplay = false,
},
GuestAccelerators = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesGuestAcceleratorArgs
{
AcceleratorCount = 0,
AcceleratorType = "string",
},
},
Hostname = "string",
InstanceEncryptionKey = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesInstanceEncryptionKeyArgs
{
KmsKeyName = "string",
KmsKeyServiceAccount = "string",
RawKey = "string",
RsaEncryptedKey = "string",
},
KeyRevocationActionType = "string",
AdvancedMachineFeatures = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs
{
EnableNestedVirtualization = false,
EnableUefiNetworking = false,
ThreadsPerCore = 0,
VisibleCoreCount = 0,
},
CanIpForward = false,
MinCpuPlatform = "string",
MachineType = "string",
AllocationAffinity = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesAllocationAffinityArgs
{
ConsumeAllocationType = "string",
Key = "string",
Values = new[]
{
"string",
},
},
NetworkInterfaces = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs
{
AccessConfigs = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs
{
ExternalIp = "string",
ExternalIpv6 = "string",
ExternalIpv6PrefixLength = 0,
Name = "string",
NetworkTier = "string",
PublicPtrDomainName = "string",
SetPublicPtr = false,
Type = "string",
},
},
AliasIpRanges = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAliasIpRangeArgs
{
IpCidrRange = "string",
SubnetworkRangeName = "string",
},
},
InternalIpv6PrefixLength = 0,
IpAddress = "string",
Ipv6AccessConfigs = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceIpv6AccessConfigArgs
{
ExternalIp = "string",
ExternalIpv6 = "string",
ExternalIpv6PrefixLength = 0,
Name = "string",
NetworkTier = "string",
PublicPtrDomainName = "string",
SetPublicPtr = false,
Type = "string",
},
},
Ipv6AccessType = "string",
Ipv6Address = "string",
Network = "string",
NetworkAttachment = "string",
NicType = "string",
QueueCount = 0,
StackType = "string",
Subnetwork = "string",
},
},
NetworkPerformanceConfig = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesNetworkPerformanceConfigArgs
{
TotalEgressBandwidthTier = "string",
},
Params = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesParamsArgs
{
ResourceManagerTags = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesParamsResourceManagerTagArgs
{
Key = "string",
Value = "string",
},
},
},
PrivateIpv6GoogleAccess = "string",
ResourcePolicies = new[]
{
"string",
},
Metadata = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs
{
Items = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs
{
Key = "string",
Value = "string",
},
},
},
ServiceAccounts = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs
{
Email = "string",
Scopes = new[]
{
"string",
},
},
},
ShieldedInstanceConfig = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs
{
EnableIntegrityMonitoring = false,
EnableSecureBoot = false,
EnableVtpm = false,
},
Tags = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs
{
Items = new[]
{
"string",
},
},
},
ComputeInstanceTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadComputeInstanceTargetEnvironmentArgs
{
Project = "string",
Zone = "string",
},
DeleteRestoredInstance = false,
DiskRestoreProperties = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesArgs
{
Name = "string",
Type = "string",
SizeGb = 0,
EnableConfidentialCompute = false,
ProvisionedIops = 0,
GuestOsFeatures = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesGuestOsFeatureArgs
{
Type = "string",
},
},
Labels = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesLabelArgs
{
Key = "string",
Value = "string",
},
},
Licenses = new[]
{
"string",
},
DiskEncryptionKey = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesDiskEncryptionKeyArgs
{
KmsKeyName = "string",
KmsKeyServiceAccount = "string",
RawKey = "string",
RsaEncryptedKey = "string",
},
PhysicalBlockSizeBytes = 0,
AccessMode = "string",
ProvisionedThroughput = 0,
ResourceManagerTags = new[]
{
new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskRestorePropertiesResourceManagerTagArgs
{
Key = "string",
Value = "string",
},
},
ResourcePolicies = new[]
{
"string",
},
Description = "string",
StoragePool = "string",
Architecture = "string",
},
DiskTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadDiskTargetEnvironmentArgs
{
Project = "string",
Zone = "string",
},
ClearOverridesFieldMask = "string",
Name = "string",
RegionDiskTargetEnvironment = new Gcp.BackupDisasterRecovery.Inputs.RestoreWorkloadRegionDiskTargetEnvironmentArgs
{
Project = "string",
Region = "string",
ReplicaZones = new[]
{
"string",
},
},
RequestId = "string",
});
example, err := backupdisasterrecovery.NewRestoreWorkload(ctx, "restoreWorkloadResource", &backupdisasterrecovery.RestoreWorkloadArgs{
DataSourceId: pulumi.String("string"),
BackupVaultId: pulumi.String("string"),
Location: pulumi.String("string"),
BackupId: pulumi.String("string"),
ComputeInstanceRestoreProperties: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesArgs{
Name: pulumi.String("string"),
Labels: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesLabelArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Scheduling: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs{
AutomaticRestart: pulumi.Bool(false),
InstanceTerminationAction: pulumi.String("string"),
LocalSsdRecoveryTimeout: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingLocalSsdRecoveryTimeoutArgs{
Nanos: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
MaxRunDuration: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingMaxRunDurationArgs{
Nanos: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
MinNodeCpus: pulumi.Int(0),
NodeAffinities: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingNodeAffinityArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesSchedulingNodeAffinityArgs{
Key: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
OnHostMaintenance: pulumi.String("string"),
Preemptible: pulumi.Bool(false),
ProvisioningModel: pulumi.String("string"),
TerminationTime: pulumi.String("string"),
},
ConfidentialInstanceConfig: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesConfidentialInstanceConfigArgs{
EnableConfidentialCompute: pulumi.Bool(false),
},
DeletionProtection: pulumi.Bool(false),
Description: pulumi.String("string"),
Disks: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDiskArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDiskArgs{
AutoDelete: pulumi.Bool(false),
Boot: pulumi.Bool(false),
DeviceName: pulumi.String("string"),
DiskEncryptionKey: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDiskDiskEncryptionKeyArgs{
KmsKeyName: pulumi.String("string"),
KmsKeyServiceAccount: pulumi.String("string"),
RawKey: pulumi.String("string"),
RsaEncryptedKey: pulumi.String("string"),
},
DiskInterface: pulumi.String("string"),
DiskSizeGb: pulumi.Int(0),
DiskType: pulumi.String("string"),
GuestOsFeatures: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDiskGuestOsFeatureArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDiskGuestOsFeatureArgs{
Type: pulumi.String("string"),
},
},
Index: pulumi.Int(0),
InitializeParams: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDiskInitializeParamsArgs{
DiskName: pulumi.String("string"),
ReplicaZones: pulumi.StringArray{
pulumi.String("string"),
},
},
Kind: pulumi.String("string"),
Licenses: pulumi.StringArray{
pulumi.String("string"),
},
Mode: pulumi.String("string"),
SavedState: pulumi.String("string"),
Source: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
DisplayDevice: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesDisplayDeviceArgs{
EnableDisplay: pulumi.Bool(false),
},
GuestAccelerators: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesGuestAcceleratorArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesGuestAcceleratorArgs{
AcceleratorCount: pulumi.Int(0),
AcceleratorType: pulumi.String("string"),
},
},
Hostname: pulumi.String("string"),
InstanceEncryptionKey: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesInstanceEncryptionKeyArgs{
KmsKeyName: pulumi.String("string"),
KmsKeyServiceAccount: pulumi.String("string"),
RawKey: pulumi.String("string"),
RsaEncryptedKey: pulumi.String("string"),
},
KeyRevocationActionType: pulumi.String("string"),
AdvancedMachineFeatures: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs{
EnableNestedVirtualization: pulumi.Bool(false),
EnableUefiNetworking: pulumi.Bool(false),
ThreadsPerCore: pulumi.Int(0),
VisibleCoreCount: pulumi.Int(0),
},
CanIpForward: pulumi.Bool(false),
MinCpuPlatform: pulumi.String("string"),
MachineType: pulumi.String("string"),
AllocationAffinity: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesAllocationAffinityArgs{
ConsumeAllocationType: pulumi.String("string"),
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
NetworkInterfaces: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs{
AccessConfigs: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs{
ExternalIp: pulumi.String("string"),
ExternalIpv6: pulumi.String("string"),
ExternalIpv6PrefixLength: pulumi.Int(0),
Name: pulumi.String("string"),
NetworkTier: pulumi.String("string"),
PublicPtrDomainName: pulumi.String("string"),
SetPublicPtr: pulumi.Bool(false),
Type: pulumi.String("string"),
},
},
AliasIpRanges: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAliasIpRangeArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAliasIpRangeArgs{
IpCidrRange: pulumi.String("string"),
SubnetworkRangeName: pulumi.String("string"),
},
},
InternalIpv6PrefixLength: pulumi.Int(0),
IpAddress: pulumi.String("string"),
Ipv6AccessConfigs: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceIpv6AccessConfigArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceIpv6AccessConfigArgs{
ExternalIp: pulumi.String("string"),
ExternalIpv6: pulumi.String("string"),
ExternalIpv6PrefixLength: pulumi.Int(0),
Name: pulumi.String("string"),
NetworkTier: pulumi.String("string"),
PublicPtrDomainName: pulumi.String("string"),
SetPublicPtr: pulumi.Bool(false),
Type: pulumi.String("string"),
},
},
Ipv6AccessType: pulumi.String("string"),
Ipv6Address: pulumi.String("string"),
Network: pulumi.String("string"),
NetworkAttachment: pulumi.String("string"),
NicType: pulumi.String("string"),
QueueCount: pulumi.Int(0),
StackType: pulumi.String("string"),
Subnetwork: pulumi.String("string"),
},
},
NetworkPerformanceConfig: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesNetworkPerformanceConfigArgs{
TotalEgressBandwidthTier: pulumi.String("string"),
},
Params: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesParamsArgs{
ResourceManagerTags: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesParamsResourceManagerTagArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesParamsResourceManagerTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
PrivateIpv6GoogleAccess: pulumi.String("string"),
ResourcePolicies: pulumi.StringArray{
pulumi.String("string"),
},
Metadata: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs{
Items: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
ServiceAccounts: backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArray{
&backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs{
Email: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ShieldedInstanceConfig: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs{
EnableIntegrityMonitoring: pulumi.Bool(false),
EnableSecureBoot: pulumi.Bool(false),
EnableVtpm: pulumi.Bool(false),
},
Tags: &backupdisasterrecovery.RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs{
Items: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ComputeInstanceTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadComputeInstanceTargetEnvironmentArgs{
Project: pulumi.String("string"),
Zone: pulumi.String("string"),
},
DeleteRestoredInstance: pulumi.Bool(false),
DiskRestoreProperties: &backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
SizeGb: pulumi.Int(0),
EnableConfidentialCompute: pulumi.Bool(false),
ProvisionedIops: pulumi.Int(0),
GuestOsFeatures: backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesGuestOsFeatureArray{
&backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesGuestOsFeatureArgs{
Type: pulumi.String("string"),
},
},
Labels: backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesLabelArray{
&backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Licenses: pulumi.StringArray{
pulumi.String("string"),
},
DiskEncryptionKey: &backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesDiskEncryptionKeyArgs{
KmsKeyName: pulumi.String("string"),
KmsKeyServiceAccount: pulumi.String("string"),
RawKey: pulumi.String("string"),
RsaEncryptedKey: pulumi.String("string"),
},
PhysicalBlockSizeBytes: pulumi.Int(0),
AccessMode: pulumi.String("string"),
ProvisionedThroughput: pulumi.Int(0),
ResourceManagerTags: backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesResourceManagerTagArray{
&backupdisasterrecovery.RestoreWorkloadDiskRestorePropertiesResourceManagerTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ResourcePolicies: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
StoragePool: pulumi.String("string"),
Architecture: pulumi.String("string"),
},
DiskTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadDiskTargetEnvironmentArgs{
Project: pulumi.String("string"),
Zone: pulumi.String("string"),
},
ClearOverridesFieldMask: pulumi.String("string"),
Name: pulumi.String("string"),
RegionDiskTargetEnvironment: &backupdisasterrecovery.RestoreWorkloadRegionDiskTargetEnvironmentArgs{
Project: pulumi.String("string"),
Region: pulumi.String("string"),
ReplicaZones: pulumi.StringArray{
pulumi.String("string"),
},
},
RequestId: pulumi.String("string"),
})
var restoreWorkloadResource = new RestoreWorkload("restoreWorkloadResource", RestoreWorkloadArgs.builder()
.dataSourceId("string")
.backupVaultId("string")
.location("string")
.backupId("string")
.computeInstanceRestoreProperties(RestoreWorkloadComputeInstanceRestorePropertiesArgs.builder()
.name("string")
.labels(RestoreWorkloadComputeInstanceRestorePropertiesLabelArgs.builder()
.key("string")
.value("string")
.build())
.scheduling(RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs.builder()
.automaticRestart(false)
.instanceTerminationAction("string")
.localSsdRecoveryTimeout(RestoreWorkloadComputeInstanceRestorePropertiesSchedulingLocalSsdRecoveryTimeoutArgs.builder()
.nanos(0)
.seconds(0)
.build())
.maxRunDuration(RestoreWorkloadComputeInstanceRestorePropertiesSchedulingMaxRunDurationArgs.builder()
.nanos(0)
.seconds(0)
.build())
.minNodeCpus(0)
.nodeAffinities(RestoreWorkloadComputeInstanceRestorePropertiesSchedulingNodeAffinityArgs.builder()
.key("string")
.operator("string")
.values("string")
.build())
.onHostMaintenance("string")
.preemptible(false)
.provisioningModel("string")
.terminationTime("string")
.build())
.confidentialInstanceConfig(RestoreWorkloadComputeInstanceRestorePropertiesConfidentialInstanceConfigArgs.builder()
.enableConfidentialCompute(false)
.build())
.deletionProtection(false)
.description("string")
.disks(RestoreWorkloadComputeInstanceRestorePropertiesDiskArgs.builder()
.autoDelete(false)
.boot(false)
.deviceName("string")
.diskEncryptionKey(RestoreWorkloadComputeInstanceRestorePropertiesDiskDiskEncryptionKeyArgs.builder()
.kmsKeyName("string")
.kmsKeyServiceAccount("string")
.rawKey("string")
.rsaEncryptedKey("string")
.build())
.diskInterface("string")
.diskSizeGb(0)
.diskType("string")
.guestOsFeatures(RestoreWorkloadComputeInstanceRestorePropertiesDiskGuestOsFeatureArgs.builder()
.type("string")
.build())
.index(0)
.initializeParams(RestoreWorkloadComputeInstanceRestorePropertiesDiskInitializeParamsArgs.builder()
.diskName("string")
.replicaZones("string")
.build())
.kind("string")
.licenses("string")
.mode("string")
.savedState("string")
.source("string")
.type("string")
.build())
.displayDevice(RestoreWorkloadComputeInstanceRestorePropertiesDisplayDeviceArgs.builder()
.enableDisplay(false)
.build())
.guestAccelerators(RestoreWorkloadComputeInstanceRestorePropertiesGuestAcceleratorArgs.builder()
.acceleratorCount(0)
.acceleratorType("string")
.build())
.hostname("string")
.instanceEncryptionKey(RestoreWorkloadComputeInstanceRestorePropertiesInstanceEncryptionKeyArgs.builder()
.kmsKeyName("string")
.kmsKeyServiceAccount("string")
.rawKey("string")
.rsaEncryptedKey("string")
.build())
.keyRevocationActionType("string")
.advancedMachineFeatures(RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs.builder()
.enableNestedVirtualization(false)
.enableUefiNetworking(false)
.threadsPerCore(0)
.visibleCoreCount(0)
.build())
.canIpForward(false)
.minCpuPlatform("string")
.machineType("string")
.allocationAffinity(RestoreWorkloadComputeInstanceRestorePropertiesAllocationAffinityArgs.builder()
.consumeAllocationType("string")
.key("string")
.values("string")
.build())
.networkInterfaces(RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs.builder()
.accessConfigs(RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs.builder()
.externalIp("string")
.externalIpv6("string")
.externalIpv6PrefixLength(0)
.name("string")
.networkTier("string")
.publicPtrDomainName("string")
.setPublicPtr(false)
.type("string")
.build())
.aliasIpRanges(RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAliasIpRangeArgs.builder()
.ipCidrRange("string")
.subnetworkRangeName("string")
.build())
.internalIpv6PrefixLength(0)
.ipAddress("string")
.ipv6AccessConfigs(RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceIpv6AccessConfigArgs.builder()
.externalIp("string")
.externalIpv6("string")
.externalIpv6PrefixLength(0)
.name("string")
.networkTier("string")
.publicPtrDomainName("string")
.setPublicPtr(false)
.type("string")
.build())
.ipv6AccessType("string")
.ipv6Address("string")
.network("string")
.networkAttachment("string")
.nicType("string")
.queueCount(0)
.stackType("string")
.subnetwork("string")
.build())
.networkPerformanceConfig(RestoreWorkloadComputeInstanceRestorePropertiesNetworkPerformanceConfigArgs.builder()
.totalEgressBandwidthTier("string")
.build())
.params(RestoreWorkloadComputeInstanceRestorePropertiesParamsArgs.builder()
.resourceManagerTags(RestoreWorkloadComputeInstanceRestorePropertiesParamsResourceManagerTagArgs.builder()
.key("string")
.value("string")
.build())
.build())
.privateIpv6GoogleAccess("string")
.resourcePolicies("string")
.metadata(RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs.builder()
.items(RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs.builder()
.key("string")
.value("string")
.build())
.build())
.serviceAccounts(RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs.builder()
.email("string")
.scopes("string")
.build())
.shieldedInstanceConfig(RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs.builder()
.enableIntegrityMonitoring(false)
.enableSecureBoot(false)
.enableVtpm(false)
.build())
.tags(RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs.builder()
.items("string")
.build())
.build())
.computeInstanceTargetEnvironment(RestoreWorkloadComputeInstanceTargetEnvironmentArgs.builder()
.project("string")
.zone("string")
.build())
.deleteRestoredInstance(false)
.diskRestoreProperties(RestoreWorkloadDiskRestorePropertiesArgs.builder()
.name("string")
.type("string")
.sizeGb(0)
.enableConfidentialCompute(false)
.provisionedIops(0)
.guestOsFeatures(RestoreWorkloadDiskRestorePropertiesGuestOsFeatureArgs.builder()
.type("string")
.build())
.labels(RestoreWorkloadDiskRestorePropertiesLabelArgs.builder()
.key("string")
.value("string")
.build())
.licenses("string")
.diskEncryptionKey(RestoreWorkloadDiskRestorePropertiesDiskEncryptionKeyArgs.builder()
.kmsKeyName("string")
.kmsKeyServiceAccount("string")
.rawKey("string")
.rsaEncryptedKey("string")
.build())
.physicalBlockSizeBytes(0)
.accessMode("string")
.provisionedThroughput(0)
.resourceManagerTags(RestoreWorkloadDiskRestorePropertiesResourceManagerTagArgs.builder()
.key("string")
.value("string")
.build())
.resourcePolicies("string")
.description("string")
.storagePool("string")
.architecture("string")
.build())
.diskTargetEnvironment(RestoreWorkloadDiskTargetEnvironmentArgs.builder()
.project("string")
.zone("string")
.build())
.clearOverridesFieldMask("string")
.name("string")
.regionDiskTargetEnvironment(RestoreWorkloadRegionDiskTargetEnvironmentArgs.builder()
.project("string")
.region("string")
.replicaZones("string")
.build())
.requestId("string")
.build());
restore_workload_resource = gcp.backupdisasterrecovery.RestoreWorkload("restoreWorkloadResource",
data_source_id="string",
backup_vault_id="string",
location="string",
backup_id="string",
compute_instance_restore_properties={
"name": "string",
"labels": [{
"key": "string",
"value": "string",
}],
"scheduling": {
"automatic_restart": False,
"instance_termination_action": "string",
"local_ssd_recovery_timeout": {
"nanos": 0,
"seconds": 0,
},
"max_run_duration": {
"nanos": 0,
"seconds": 0,
},
"min_node_cpus": 0,
"node_affinities": [{
"key": "string",
"operator": "string",
"values": ["string"],
}],
"on_host_maintenance": "string",
"preemptible": False,
"provisioning_model": "string",
"termination_time": "string",
},
"confidential_instance_config": {
"enable_confidential_compute": False,
},
"deletion_protection": False,
"description": "string",
"disks": [{
"auto_delete": False,
"boot": False,
"device_name": "string",
"disk_encryption_key": {
"kms_key_name": "string",
"kms_key_service_account": "string",
"raw_key": "string",
"rsa_encrypted_key": "string",
},
"disk_interface": "string",
"disk_size_gb": 0,
"disk_type": "string",
"guest_os_features": [{
"type": "string",
}],
"index": 0,
"initialize_params": {
"disk_name": "string",
"replica_zones": ["string"],
},
"kind": "string",
"licenses": ["string"],
"mode": "string",
"saved_state": "string",
"source": "string",
"type": "string",
}],
"display_device": {
"enable_display": False,
},
"guest_accelerators": [{
"accelerator_count": 0,
"accelerator_type": "string",
}],
"hostname": "string",
"instance_encryption_key": {
"kms_key_name": "string",
"kms_key_service_account": "string",
"raw_key": "string",
"rsa_encrypted_key": "string",
},
"key_revocation_action_type": "string",
"advanced_machine_features": {
"enable_nested_virtualization": False,
"enable_uefi_networking": False,
"threads_per_core": 0,
"visible_core_count": 0,
},
"can_ip_forward": False,
"min_cpu_platform": "string",
"machine_type": "string",
"allocation_affinity": {
"consume_allocation_type": "string",
"key": "string",
"values": ["string"],
},
"network_interfaces": [{
"access_configs": [{
"external_ip": "string",
"external_ipv6": "string",
"external_ipv6_prefix_length": 0,
"name": "string",
"network_tier": "string",
"public_ptr_domain_name": "string",
"set_public_ptr": False,
"type": "string",
}],
"alias_ip_ranges": [{
"ip_cidr_range": "string",
"subnetwork_range_name": "string",
}],
"internal_ipv6_prefix_length": 0,
"ip_address": "string",
"ipv6_access_configs": [{
"external_ip": "string",
"external_ipv6": "string",
"external_ipv6_prefix_length": 0,
"name": "string",
"network_tier": "string",
"public_ptr_domain_name": "string",
"set_public_ptr": False,
"type": "string",
}],
"ipv6_access_type": "string",
"ipv6_address": "string",
"network": "string",
"network_attachment": "string",
"nic_type": "string",
"queue_count": 0,
"stack_type": "string",
"subnetwork": "string",
}],
"network_performance_config": {
"total_egress_bandwidth_tier": "string",
},
"params": {
"resource_manager_tags": [{
"key": "string",
"value": "string",
}],
},
"private_ipv6_google_access": "string",
"resource_policies": ["string"],
"metadata": {
"items": [{
"key": "string",
"value": "string",
}],
},
"service_accounts": [{
"email": "string",
"scopes": ["string"],
}],
"shielded_instance_config": {
"enable_integrity_monitoring": False,
"enable_secure_boot": False,
"enable_vtpm": False,
},
"tags": {
"items": ["string"],
},
},
compute_instance_target_environment={
"project": "string",
"zone": "string",
},
delete_restored_instance=False,
disk_restore_properties={
"name": "string",
"type": "string",
"size_gb": 0,
"enable_confidential_compute": False,
"provisioned_iops": 0,
"guest_os_features": [{
"type": "string",
}],
"labels": [{
"key": "string",
"value": "string",
}],
"licenses": ["string"],
"disk_encryption_key": {
"kms_key_name": "string",
"kms_key_service_account": "string",
"raw_key": "string",
"rsa_encrypted_key": "string",
},
"physical_block_size_bytes": 0,
"access_mode": "string",
"provisioned_throughput": 0,
"resource_manager_tags": [{
"key": "string",
"value": "string",
}],
"resource_policies": ["string"],
"description": "string",
"storage_pool": "string",
"architecture": "string",
},
disk_target_environment={
"project": "string",
"zone": "string",
},
clear_overrides_field_mask="string",
name="string",
region_disk_target_environment={
"project": "string",
"region": "string",
"replica_zones": ["string"],
},
request_id="string")
const restoreWorkloadResource = new gcp.backupdisasterrecovery.RestoreWorkload("restoreWorkloadResource", {
dataSourceId: "string",
backupVaultId: "string",
location: "string",
backupId: "string",
computeInstanceRestoreProperties: {
name: "string",
labels: [{
key: "string",
value: "string",
}],
scheduling: {
automaticRestart: false,
instanceTerminationAction: "string",
localSsdRecoveryTimeout: {
nanos: 0,
seconds: 0,
},
maxRunDuration: {
nanos: 0,
seconds: 0,
},
minNodeCpus: 0,
nodeAffinities: [{
key: "string",
operator: "string",
values: ["string"],
}],
onHostMaintenance: "string",
preemptible: false,
provisioningModel: "string",
terminationTime: "string",
},
confidentialInstanceConfig: {
enableConfidentialCompute: false,
},
deletionProtection: false,
description: "string",
disks: [{
autoDelete: false,
boot: false,
deviceName: "string",
diskEncryptionKey: {
kmsKeyName: "string",
kmsKeyServiceAccount: "string",
rawKey: "string",
rsaEncryptedKey: "string",
},
diskInterface: "string",
diskSizeGb: 0,
diskType: "string",
guestOsFeatures: [{
type: "string",
}],
index: 0,
initializeParams: {
diskName: "string",
replicaZones: ["string"],
},
kind: "string",
licenses: ["string"],
mode: "string",
savedState: "string",
source: "string",
type: "string",
}],
displayDevice: {
enableDisplay: false,
},
guestAccelerators: [{
acceleratorCount: 0,
acceleratorType: "string",
}],
hostname: "string",
instanceEncryptionKey: {
kmsKeyName: "string",
kmsKeyServiceAccount: "string",
rawKey: "string",
rsaEncryptedKey: "string",
},
keyRevocationActionType: "string",
advancedMachineFeatures: {
enableNestedVirtualization: false,
enableUefiNetworking: false,
threadsPerCore: 0,
visibleCoreCount: 0,
},
canIpForward: false,
minCpuPlatform: "string",
machineType: "string",
allocationAffinity: {
consumeAllocationType: "string",
key: "string",
values: ["string"],
},
networkInterfaces: [{
accessConfigs: [{
externalIp: "string",
externalIpv6: "string",
externalIpv6PrefixLength: 0,
name: "string",
networkTier: "string",
publicPtrDomainName: "string",
setPublicPtr: false,
type: "string",
}],
aliasIpRanges: [{
ipCidrRange: "string",
subnetworkRangeName: "string",
}],
internalIpv6PrefixLength: 0,
ipAddress: "string",
ipv6AccessConfigs: [{
externalIp: "string",
externalIpv6: "string",
externalIpv6PrefixLength: 0,
name: "string",
networkTier: "string",
publicPtrDomainName: "string",
setPublicPtr: false,
type: "string",
}],
ipv6AccessType: "string",
ipv6Address: "string",
network: "string",
networkAttachment: "string",
nicType: "string",
queueCount: 0,
stackType: "string",
subnetwork: "string",
}],
networkPerformanceConfig: {
totalEgressBandwidthTier: "string",
},
params: {
resourceManagerTags: [{
key: "string",
value: "string",
}],
},
privateIpv6GoogleAccess: "string",
resourcePolicies: ["string"],
metadata: {
items: [{
key: "string",
value: "string",
}],
},
serviceAccounts: [{
email: "string",
scopes: ["string"],
}],
shieldedInstanceConfig: {
enableIntegrityMonitoring: false,
enableSecureBoot: false,
enableVtpm: false,
},
tags: {
items: ["string"],
},
},
computeInstanceTargetEnvironment: {
project: "string",
zone: "string",
},
deleteRestoredInstance: false,
diskRestoreProperties: {
name: "string",
type: "string",
sizeGb: 0,
enableConfidentialCompute: false,
provisionedIops: 0,
guestOsFeatures: [{
type: "string",
}],
labels: [{
key: "string",
value: "string",
}],
licenses: ["string"],
diskEncryptionKey: {
kmsKeyName: "string",
kmsKeyServiceAccount: "string",
rawKey: "string",
rsaEncryptedKey: "string",
},
physicalBlockSizeBytes: 0,
accessMode: "string",
provisionedThroughput: 0,
resourceManagerTags: [{
key: "string",
value: "string",
}],
resourcePolicies: ["string"],
description: "string",
storagePool: "string",
architecture: "string",
},
diskTargetEnvironment: {
project: "string",
zone: "string",
},
clearOverridesFieldMask: "string",
name: "string",
regionDiskTargetEnvironment: {
project: "string",
region: "string",
replicaZones: ["string"],
},
requestId: "string",
});
type: gcp:backupdisasterrecovery:RestoreWorkload
properties:
backupId: string
backupVaultId: string
clearOverridesFieldMask: string
computeInstanceRestoreProperties:
advancedMachineFeatures:
enableNestedVirtualization: false
enableUefiNetworking: false
threadsPerCore: 0
visibleCoreCount: 0
allocationAffinity:
consumeAllocationType: string
key: string
values:
- string
canIpForward: false
confidentialInstanceConfig:
enableConfidentialCompute: false
deletionProtection: false
description: string
disks:
- autoDelete: false
boot: false
deviceName: string
diskEncryptionKey:
kmsKeyName: string
kmsKeyServiceAccount: string
rawKey: string
rsaEncryptedKey: string
diskInterface: string
diskSizeGb: 0
diskType: string
guestOsFeatures:
- type: string
index: 0
initializeParams:
diskName: string
replicaZones:
- string
kind: string
licenses:
- string
mode: string
savedState: string
source: string
type: string
displayDevice:
enableDisplay: false
guestAccelerators:
- acceleratorCount: 0
acceleratorType: string
hostname: string
instanceEncryptionKey:
kmsKeyName: string
kmsKeyServiceAccount: string
rawKey: string
rsaEncryptedKey: string
keyRevocationActionType: string
labels:
- key: string
value: string
machineType: string
metadata:
items:
- key: string
value: string
minCpuPlatform: string
name: string
networkInterfaces:
- accessConfigs:
- externalIp: string
externalIpv6: string
externalIpv6PrefixLength: 0
name: string
networkTier: string
publicPtrDomainName: string
setPublicPtr: false
type: string
aliasIpRanges:
- ipCidrRange: string
subnetworkRangeName: string
internalIpv6PrefixLength: 0
ipAddress: string
ipv6AccessConfigs:
- externalIp: string
externalIpv6: string
externalIpv6PrefixLength: 0
name: string
networkTier: string
publicPtrDomainName: string
setPublicPtr: false
type: string
ipv6AccessType: string
ipv6Address: string
network: string
networkAttachment: string
nicType: string
queueCount: 0
stackType: string
subnetwork: string
networkPerformanceConfig:
totalEgressBandwidthTier: string
params:
resourceManagerTags:
- key: string
value: string
privateIpv6GoogleAccess: string
resourcePolicies:
- string
scheduling:
automaticRestart: false
instanceTerminationAction: string
localSsdRecoveryTimeout:
nanos: 0
seconds: 0
maxRunDuration:
nanos: 0
seconds: 0
minNodeCpus: 0
nodeAffinities:
- key: string
operator: string
values:
- string
onHostMaintenance: string
preemptible: false
provisioningModel: string
terminationTime: string
serviceAccounts:
- email: string
scopes:
- string
shieldedInstanceConfig:
enableIntegrityMonitoring: false
enableSecureBoot: false
enableVtpm: false
tags:
items:
- string
computeInstanceTargetEnvironment:
project: string
zone: string
dataSourceId: string
deleteRestoredInstance: false
diskRestoreProperties:
accessMode: string
architecture: string
description: string
diskEncryptionKey:
kmsKeyName: string
kmsKeyServiceAccount: string
rawKey: string
rsaEncryptedKey: string
enableConfidentialCompute: false
guestOsFeatures:
- type: string
labels:
- key: string
value: string
licenses:
- string
name: string
physicalBlockSizeBytes: 0
provisionedIops: 0
provisionedThroughput: 0
resourceManagerTags:
- key: string
value: string
resourcePolicies:
- string
sizeGb: 0
storagePool: string
type: string
diskTargetEnvironment:
project: string
zone: string
location: string
name: string
regionDiskTargetEnvironment:
project: string
region: string
replicaZones:
- string
requestId: string
RestoreWorkload 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 RestoreWorkload resource accepts the following input properties:
- Backup
Id string - Required. The ID of the backup to restore from.
- Backup
Vault stringId - Required. The ID of the backup vault.
- Data
Source stringId - Required. The ID of the data source.
- Location string
- Required. The location for the backup vault.
- Clear
Overrides stringField Mask - Optional. A field mask used to clear server-side default values during restore.
- Compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- Compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- Delete
Restored boolInstance - Disk
Restore RestoreProperties Workload Disk Restore Properties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- Disk
Target RestoreEnvironment Workload Disk Target Environment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- Name string
- Required. The resource name of the backup instance.
- Region
Disk RestoreTarget Environment Workload Region Disk Target Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- Backup
Id string - Required. The ID of the backup to restore from.
- Backup
Vault stringId - Required. The ID of the backup vault.
- Data
Source stringId - Required. The ID of the data source.
- Location string
- Required. The location for the backup vault.
- Clear
Overrides stringField Mask - Optional. A field mask used to clear server-side default values during restore.
- Compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties Args - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- Compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment Args - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- Delete
Restored boolInstance - Disk
Restore RestoreProperties Workload Disk Restore Properties Args - Optional. Disk properties to be overridden during restore. Structure is documented below.
- Disk
Target RestoreEnvironment Workload Disk Target Environment Args - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- Name string
- Required. The resource name of the backup instance.
- Region
Disk RestoreTarget Environment Workload Region Disk Target Environment Args - Optional. The destination environment for regional disk restoration. Structure is documented below.
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- backup
Id String - Required. The ID of the backup to restore from.
- backup
Vault StringId - Required. The ID of the backup vault.
- data
Source StringId - Required. The ID of the data source.
- location String
- Required. The location for the backup vault.
- clear
Overrides StringField Mask - Optional. A field mask used to clear server-side default values during restore.
- compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- delete
Restored BooleanInstance - disk
Restore RestoreProperties Workload Disk Restore Properties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk
Target RestoreEnvironment Workload Disk Target Environment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- name String
- Required. The resource name of the backup instance.
- region
Disk RestoreTarget Environment Workload Region Disk Target Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- backup
Id string - Required. The ID of the backup to restore from.
- backup
Vault stringId - Required. The ID of the backup vault.
- data
Source stringId - Required. The ID of the data source.
- location string
- Required. The location for the backup vault.
- clear
Overrides stringField Mask - Optional. A field mask used to clear server-side default values during restore.
- compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- delete
Restored booleanInstance - disk
Restore RestoreProperties Workload Disk Restore Properties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk
Target RestoreEnvironment Workload Disk Target Environment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- name string
- Required. The resource name of the backup instance.
- region
Disk RestoreTarget Environment Workload Region Disk Target Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- backup_
id str - Required. The ID of the backup to restore from.
- backup_
vault_ strid - Required. The ID of the backup vault.
- data_
source_ strid - Required. The ID of the data source.
- location str
- Required. The location for the backup vault.
- clear_
overrides_ strfield_ mask - Optional. A field mask used to clear server-side default values during restore.
- compute_
instance_ Restorerestore_ properties Workload Compute Instance Restore Properties Args - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute_
instance_ Restoretarget_ environment Workload Compute Instance Target Environment Args - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- delete_
restored_ boolinstance - disk_
restore_ Restoreproperties Workload Disk Restore Properties Args - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk_
target_ Restoreenvironment Workload Disk Target Environment Args - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- name str
- Required. The resource name of the backup instance.
- region_
disk_ Restoretarget_ environment Workload Region Disk Target Environment Args - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request_
id str - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- backup
Id String - Required. The ID of the backup to restore from.
- backup
Vault StringId - Required. The ID of the backup vault.
- data
Source StringId - Required. The ID of the data source.
- location String
- Required. The location for the backup vault.
- clear
Overrides StringField Mask - Optional. A field mask used to clear server-side default values during restore.
- compute
Instance Property MapRestore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute
Instance Property MapTarget Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- delete
Restored BooleanInstance - disk
Restore Property MapProperties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk
Target Property MapEnvironment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- name String
- Required. The resource name of the backup instance.
- region
Disk Property MapTarget Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
Outputs
All input properties are implicitly available as output properties. Additionally, the RestoreWorkload resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Resources List<RestoreWorkload Target Resource> - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Resources []RestoreWorkload Target Resource - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- target
Resources List<RestoreWorkload Target Resource> - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- target
Resources RestoreWorkload Target Resource[] - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- target_
resources Sequence[RestoreWorkload Target Resource] - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- target
Resources List<Property Map> - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
Look up Existing RestoreWorkload Resource
Get an existing RestoreWorkload 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?: RestoreWorkloadState, opts?: CustomResourceOptions): RestoreWorkload@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_id: Optional[str] = None,
backup_vault_id: Optional[str] = None,
clear_overrides_field_mask: Optional[str] = None,
compute_instance_restore_properties: Optional[RestoreWorkloadComputeInstanceRestorePropertiesArgs] = None,
compute_instance_target_environment: Optional[RestoreWorkloadComputeInstanceTargetEnvironmentArgs] = None,
data_source_id: Optional[str] = None,
delete_restored_instance: Optional[bool] = None,
disk_restore_properties: Optional[RestoreWorkloadDiskRestorePropertiesArgs] = None,
disk_target_environment: Optional[RestoreWorkloadDiskTargetEnvironmentArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
region_disk_target_environment: Optional[RestoreWorkloadRegionDiskTargetEnvironmentArgs] = None,
request_id: Optional[str] = None,
target_resources: Optional[Sequence[RestoreWorkloadTargetResourceArgs]] = None) -> RestoreWorkloadfunc GetRestoreWorkload(ctx *Context, name string, id IDInput, state *RestoreWorkloadState, opts ...ResourceOption) (*RestoreWorkload, error)public static RestoreWorkload Get(string name, Input<string> id, RestoreWorkloadState? state, CustomResourceOptions? opts = null)public static RestoreWorkload get(String name, Output<String> id, RestoreWorkloadState state, CustomResourceOptions options)resources: _: type: gcp:backupdisasterrecovery:RestoreWorkload 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.
- Backup
Id string - Required. The ID of the backup to restore from.
- Backup
Vault stringId - Required. The ID of the backup vault.
- Clear
Overrides stringField Mask - Optional. A field mask used to clear server-side default values during restore.
- Compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- Compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- Data
Source stringId - Required. The ID of the data source.
- Delete
Restored boolInstance - Disk
Restore RestoreProperties Workload Disk Restore Properties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- Disk
Target RestoreEnvironment Workload Disk Target Environment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- Location string
- Required. The location for the backup vault.
- Name string
- Required. The resource name of the backup instance.
- Region
Disk RestoreTarget Environment Workload Region Disk Target Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- Target
Resources List<RestoreWorkload Target Resource> - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- Backup
Id string - Required. The ID of the backup to restore from.
- Backup
Vault stringId - Required. The ID of the backup vault.
- Clear
Overrides stringField Mask - Optional. A field mask used to clear server-side default values during restore.
- Compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties Args - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- Compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment Args - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- Data
Source stringId - Required. The ID of the data source.
- Delete
Restored boolInstance - Disk
Restore RestoreProperties Workload Disk Restore Properties Args - Optional. Disk properties to be overridden during restore. Structure is documented below.
- Disk
Target RestoreEnvironment Workload Disk Target Environment Args - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- Location string
- Required. The location for the backup vault.
- Name string
- Required. The resource name of the backup instance.
- Region
Disk RestoreTarget Environment Workload Region Disk Target Environment Args - Optional. The destination environment for regional disk restoration. Structure is documented below.
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- Target
Resources []RestoreWorkload Target Resource Args - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- backup
Id String - Required. The ID of the backup to restore from.
- backup
Vault StringId - Required. The ID of the backup vault.
- clear
Overrides StringField Mask - Optional. A field mask used to clear server-side default values during restore.
- compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- data
Source StringId - Required. The ID of the data source.
- delete
Restored BooleanInstance - disk
Restore RestoreProperties Workload Disk Restore Properties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk
Target RestoreEnvironment Workload Disk Target Environment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- location String
- Required. The location for the backup vault.
- name String
- Required. The resource name of the backup instance.
- region
Disk RestoreTarget Environment Workload Region Disk Target Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- target
Resources List<RestoreWorkload Target Resource> - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- backup
Id string - Required. The ID of the backup to restore from.
- backup
Vault stringId - Required. The ID of the backup vault.
- clear
Overrides stringField Mask - Optional. A field mask used to clear server-side default values during restore.
- compute
Instance RestoreRestore Properties Workload Compute Instance Restore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute
Instance RestoreTarget Environment Workload Compute Instance Target Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- data
Source stringId - Required. The ID of the data source.
- delete
Restored booleanInstance - disk
Restore RestoreProperties Workload Disk Restore Properties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk
Target RestoreEnvironment Workload Disk Target Environment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- location string
- Required. The location for the backup vault.
- name string
- Required. The resource name of the backup instance.
- region
Disk RestoreTarget Environment Workload Region Disk Target Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- target
Resources RestoreWorkload Target Resource[] - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- backup_
id str - Required. The ID of the backup to restore from.
- backup_
vault_ strid - Required. The ID of the backup vault.
- clear_
overrides_ strfield_ mask - Optional. A field mask used to clear server-side default values during restore.
- compute_
instance_ Restorerestore_ properties Workload Compute Instance Restore Properties Args - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute_
instance_ Restoretarget_ environment Workload Compute Instance Target Environment Args - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- data_
source_ strid - Required. The ID of the data source.
- delete_
restored_ boolinstance - disk_
restore_ Restoreproperties Workload Disk Restore Properties Args - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk_
target_ Restoreenvironment Workload Disk Target Environment Args - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- location str
- Required. The location for the backup vault.
- name str
- Required. The resource name of the backup instance.
- region_
disk_ Restoretarget_ environment Workload Region Disk Target Environment Args - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request_
id str - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- target_
resources Sequence[RestoreWorkload Target Resource Args] - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
- backup
Id String - Required. The ID of the backup to restore from.
- backup
Vault StringId - Required. The ID of the backup vault.
- clear
Overrides StringField Mask - Optional. A field mask used to clear server-side default values during restore.
- compute
Instance Property MapRestore Properties - Optional. Compute Engine instance properties to be overridden during restore. Structure is documented below.
- compute
Instance Property MapTarget Environment - Optional. The destination environment for GCE VM restoration. Structure is documented below.
- data
Source StringId - Required. The ID of the data source.
- delete
Restored BooleanInstance - disk
Restore Property MapProperties - Optional. Disk properties to be overridden during restore. Structure is documented below.
- disk
Target Property MapEnvironment - Optional. The destination environment for zonal disk restoration. Structure is documented below.
- location String
- Required. The location for the backup vault.
- name String
- Required. The resource name of the backup instance.
- region
Disk Property MapTarget Environment - Optional. The destination environment for regional disk restoration. Structure is documented below.
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
- target
Resources List<Property Map> - Output only. Details of the target resource created/modified as part of restore. Structure is documented below.
Supporting Types
RestoreWorkloadComputeInstanceRestoreProperties, RestoreWorkloadComputeInstanceRestorePropertiesArgs
- Name string
- Required. Name of the compute instance.
- Advanced
Machine RestoreFeatures Workload Compute Instance Restore Properties Advanced Machine Features - Optional. Controls for advanced machine-related behavior features. Structure is documented below.
- Allocation
Affinity RestoreWorkload Compute Instance Restore Properties Allocation Affinity - Optional. Specifies the reservations that this instance can consume from. Structure is documented below.
- Can
Ip boolForward - Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
- Confidential
Instance RestoreConfig Workload Compute Instance Restore Properties Confidential Instance Config - Optional. Controls Confidential compute options on the instance. Structure is documented below.
- Deletion
Protection bool - Optional. Whether the resource should be protected against deletion.
- Description string
- Optional. An optional description of this resource.
- Disks
List<Restore
Workload Compute Instance Restore Properties Disk> - Optional. Array of disks associated with this instance. Structure is documented below.
- Display
Device RestoreWorkload Compute Instance Restore Properties Display Device - Optional. Enables display device for the instance. Structure is documented below.
- Guest
Accelerators List<RestoreWorkload Compute Instance Restore Properties Guest Accelerator> - Optional. A list of the type and count of accelerator cards attached to the instance. Structure is documented below.
- Hostname string
- Optional. Specifies the hostname of the instance.
- Instance
Encryption RestoreKey Workload Compute Instance Restore Properties Instance Encryption Key - Optional. Encrypts suspended data for an instance with a customer-managed encryption key. Structure is documented below.
- Key
Revocation stringAction Type - Optional. KeyRevocationActionType of the instance.
Possible values are:
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED,NONE,STOP. - Labels
List<Restore
Workload Compute Instance Restore Properties Label> - Optional. Labels to apply to this instance. Structure is documented below.
- Machine
Type string - Optional. Full or partial URL of the machine type resource to use for this instance.
- Metadata
Restore
Workload Compute Instance Restore Properties Metadata - Optional. This includes custom metadata and predefined keys. Structure is documented below.
- Min
Cpu stringPlatform - Optional. Minimum CPU platform to use for this instance.
- Network
Interfaces List<RestoreWorkload Compute Instance Restore Properties Network Interface> - Optional. An array of network configurations for this instance. Structure is documented below.
- Network
Performance RestoreConfig Workload Compute Instance Restore Properties Network Performance Config - Optional. Configure network performance such as egress bandwidth tier. Structure is documented below.
- Params
Restore
Workload Compute Instance Restore Properties Params - Input only. Additional params passed with the request. Structure is documented below.
- Private
Ipv6Google stringAccess - Optional. The private IPv6 google access type for the VM.
Possible values are:
INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,INHERIT_FROM_SUBNETWORK,ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE. - Resource
Policies List<string> - Optional. Resource policies applied to this instance.
- Scheduling
Restore
Workload Compute Instance Restore Properties Scheduling - Optional. Sets the scheduling options for this instance. Structure is documented below.
- Service
Accounts List<RestoreWorkload Compute Instance Restore Properties Service Account> - Optional. A list of service accounts, with their specified scopes, authorized for this instance. Structure is documented below.
- Shielded
Instance RestoreConfig Workload Compute Instance Restore Properties Shielded Instance Config - Optional. Controls Shielded compute options on the instance. Structure is documented below.
-
Restore
Workload Compute Instance Restore Properties Tags - Optional. Tags to apply to this instance. Structure is documented below.
- Name string
- Required. Name of the compute instance.
- Advanced
Machine RestoreFeatures Workload Compute Instance Restore Properties Advanced Machine Features - Optional. Controls for advanced machine-related behavior features. Structure is documented below.
- Allocation
Affinity RestoreWorkload Compute Instance Restore Properties Allocation Affinity - Optional. Specifies the reservations that this instance can consume from. Structure is documented below.
- Can
Ip boolForward - Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
- Confidential
Instance RestoreConfig Workload Compute Instance Restore Properties Confidential Instance Config - Optional. Controls Confidential compute options on the instance. Structure is documented below.
- Deletion
Protection bool - Optional. Whether the resource should be protected against deletion.
- Description string
- Optional. An optional description of this resource.
- Disks
[]Restore
Workload Compute Instance Restore Properties Disk - Optional. Array of disks associated with this instance. Structure is documented below.
- Display
Device RestoreWorkload Compute Instance Restore Properties Display Device - Optional. Enables display device for the instance. Structure is documented below.
- Guest
Accelerators []RestoreWorkload Compute Instance Restore Properties Guest Accelerator - Optional. A list of the type and count of accelerator cards attached to the instance. Structure is documented below.
- Hostname string
- Optional. Specifies the hostname of the instance.
- Instance
Encryption RestoreKey Workload Compute Instance Restore Properties Instance Encryption Key - Optional. Encrypts suspended data for an instance with a customer-managed encryption key. Structure is documented below.
- Key
Revocation stringAction Type - Optional. KeyRevocationActionType of the instance.
Possible values are:
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED,NONE,STOP. - Labels
[]Restore
Workload Compute Instance Restore Properties Label - Optional. Labels to apply to this instance. Structure is documented below.
- Machine
Type string - Optional. Full or partial URL of the machine type resource to use for this instance.
- Metadata
Restore
Workload Compute Instance Restore Properties Metadata - Optional. This includes custom metadata and predefined keys. Structure is documented below.
- Min
Cpu stringPlatform - Optional. Minimum CPU platform to use for this instance.
- Network
Interfaces []RestoreWorkload Compute Instance Restore Properties Network Interface - Optional. An array of network configurations for this instance. Structure is documented below.
- Network
Performance RestoreConfig Workload Compute Instance Restore Properties Network Performance Config - Optional. Configure network performance such as egress bandwidth tier. Structure is documented below.
- Params
Restore
Workload Compute Instance Restore Properties Params - Input only. Additional params passed with the request. Structure is documented below.
- Private
Ipv6Google stringAccess - Optional. The private IPv6 google access type for the VM.
Possible values are:
INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,INHERIT_FROM_SUBNETWORK,ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE. - Resource
Policies []string - Optional. Resource policies applied to this instance.
- Scheduling
Restore
Workload Compute Instance Restore Properties Scheduling - Optional. Sets the scheduling options for this instance. Structure is documented below.
- Service
Accounts []RestoreWorkload Compute Instance Restore Properties Service Account - Optional. A list of service accounts, with their specified scopes, authorized for this instance. Structure is documented below.
- Shielded
Instance RestoreConfig Workload Compute Instance Restore Properties Shielded Instance Config - Optional. Controls Shielded compute options on the instance. Structure is documented below.
-
Restore
Workload Compute Instance Restore Properties Tags - Optional. Tags to apply to this instance. Structure is documented below.
- name String
- Required. Name of the compute instance.
- advanced
Machine RestoreFeatures Workload Compute Instance Restore Properties Advanced Machine Features - Optional. Controls for advanced machine-related behavior features. Structure is documented below.
- allocation
Affinity RestoreWorkload Compute Instance Restore Properties Allocation Affinity - Optional. Specifies the reservations that this instance can consume from. Structure is documented below.
- can
Ip BooleanForward - Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
- confidential
Instance RestoreConfig Workload Compute Instance Restore Properties Confidential Instance Config - Optional. Controls Confidential compute options on the instance. Structure is documented below.
- deletion
Protection Boolean - Optional. Whether the resource should be protected against deletion.
- description String
- Optional. An optional description of this resource.
- disks
List<Restore
Workload Compute Instance Restore Properties Disk> - Optional. Array of disks associated with this instance. Structure is documented below.
- display
Device RestoreWorkload Compute Instance Restore Properties Display Device - Optional. Enables display device for the instance. Structure is documented below.
- guest
Accelerators List<RestoreWorkload Compute Instance Restore Properties Guest Accelerator> - Optional. A list of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname String
- Optional. Specifies the hostname of the instance.
- instance
Encryption RestoreKey Workload Compute Instance Restore Properties Instance Encryption Key - Optional. Encrypts suspended data for an instance with a customer-managed encryption key. Structure is documented below.
- key
Revocation StringAction Type - Optional. KeyRevocationActionType of the instance.
Possible values are:
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED,NONE,STOP. - labels
List<Restore
Workload Compute Instance Restore Properties Label> - Optional. Labels to apply to this instance. Structure is documented below.
- machine
Type String - Optional. Full or partial URL of the machine type resource to use for this instance.
- metadata
Restore
Workload Compute Instance Restore Properties Metadata - Optional. This includes custom metadata and predefined keys. Structure is documented below.
- min
Cpu StringPlatform - Optional. Minimum CPU platform to use for this instance.
- network
Interfaces List<RestoreWorkload Compute Instance Restore Properties Network Interface> - Optional. An array of network configurations for this instance. Structure is documented below.
- network
Performance RestoreConfig Workload Compute Instance Restore Properties Network Performance Config - Optional. Configure network performance such as egress bandwidth tier. Structure is documented below.
- params
Restore
Workload Compute Instance Restore Properties Params - Input only. Additional params passed with the request. Structure is documented below.
- private
Ipv6Google StringAccess - Optional. The private IPv6 google access type for the VM.
Possible values are:
INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,INHERIT_FROM_SUBNETWORK,ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE. - resource
Policies List<String> - Optional. Resource policies applied to this instance.
- scheduling
Restore
Workload Compute Instance Restore Properties Scheduling - Optional. Sets the scheduling options for this instance. Structure is documented below.
- service
Accounts List<RestoreWorkload Compute Instance Restore Properties Service Account> - Optional. A list of service accounts, with their specified scopes, authorized for this instance. Structure is documented below.
- shielded
Instance RestoreConfig Workload Compute Instance Restore Properties Shielded Instance Config - Optional. Controls Shielded compute options on the instance. Structure is documented below.
-
Restore
Workload Compute Instance Restore Properties Tags - Optional. Tags to apply to this instance. Structure is documented below.
- name string
- Required. Name of the compute instance.
- advanced
Machine RestoreFeatures Workload Compute Instance Restore Properties Advanced Machine Features - Optional. Controls for advanced machine-related behavior features. Structure is documented below.
- allocation
Affinity RestoreWorkload Compute Instance Restore Properties Allocation Affinity - Optional. Specifies the reservations that this instance can consume from. Structure is documented below.
- can
Ip booleanForward - Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
- confidential
Instance RestoreConfig Workload Compute Instance Restore Properties Confidential Instance Config - Optional. Controls Confidential compute options on the instance. Structure is documented below.
- deletion
Protection boolean - Optional. Whether the resource should be protected against deletion.
- description string
- Optional. An optional description of this resource.
- disks
Restore
Workload Compute Instance Restore Properties Disk[] - Optional. Array of disks associated with this instance. Structure is documented below.
- display
Device RestoreWorkload Compute Instance Restore Properties Display Device - Optional. Enables display device for the instance. Structure is documented below.
- guest
Accelerators RestoreWorkload Compute Instance Restore Properties Guest Accelerator[] - Optional. A list of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname string
- Optional. Specifies the hostname of the instance.
- instance
Encryption RestoreKey Workload Compute Instance Restore Properties Instance Encryption Key - Optional. Encrypts suspended data for an instance with a customer-managed encryption key. Structure is documented below.
- key
Revocation stringAction Type - Optional. KeyRevocationActionType of the instance.
Possible values are:
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED,NONE,STOP. - labels
Restore
Workload Compute Instance Restore Properties Label[] - Optional. Labels to apply to this instance. Structure is documented below.
- machine
Type string - Optional. Full or partial URL of the machine type resource to use for this instance.
- metadata
Restore
Workload Compute Instance Restore Properties Metadata - Optional. This includes custom metadata and predefined keys. Structure is documented below.
- min
Cpu stringPlatform - Optional. Minimum CPU platform to use for this instance.
- network
Interfaces RestoreWorkload Compute Instance Restore Properties Network Interface[] - Optional. An array of network configurations for this instance. Structure is documented below.
- network
Performance RestoreConfig Workload Compute Instance Restore Properties Network Performance Config - Optional. Configure network performance such as egress bandwidth tier. Structure is documented below.
- params
Restore
Workload Compute Instance Restore Properties Params - Input only. Additional params passed with the request. Structure is documented below.
- private
Ipv6Google stringAccess - Optional. The private IPv6 google access type for the VM.
Possible values are:
INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,INHERIT_FROM_SUBNETWORK,ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE. - resource
Policies string[] - Optional. Resource policies applied to this instance.
- scheduling
Restore
Workload Compute Instance Restore Properties Scheduling - Optional. Sets the scheduling options for this instance. Structure is documented below.
- service
Accounts RestoreWorkload Compute Instance Restore Properties Service Account[] - Optional. A list of service accounts, with their specified scopes, authorized for this instance. Structure is documented below.
- shielded
Instance RestoreConfig Workload Compute Instance Restore Properties Shielded Instance Config - Optional. Controls Shielded compute options on the instance. Structure is documented below.
-
Restore
Workload Compute Instance Restore Properties Tags - Optional. Tags to apply to this instance. Structure is documented below.
- name str
- Required. Name of the compute instance.
- advanced_
machine_ Restorefeatures Workload Compute Instance Restore Properties Advanced Machine Features - Optional. Controls for advanced machine-related behavior features. Structure is documented below.
- allocation_
affinity RestoreWorkload Compute Instance Restore Properties Allocation Affinity - Optional. Specifies the reservations that this instance can consume from. Structure is documented below.
- can_
ip_ boolforward - Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
- confidential_
instance_ Restoreconfig Workload Compute Instance Restore Properties Confidential Instance Config - Optional. Controls Confidential compute options on the instance. Structure is documented below.
- deletion_
protection bool - Optional. Whether the resource should be protected against deletion.
- description str
- Optional. An optional description of this resource.
- disks
Sequence[Restore
Workload Compute Instance Restore Properties Disk] - Optional. Array of disks associated with this instance. Structure is documented below.
- display_
device RestoreWorkload Compute Instance Restore Properties Display Device - Optional. Enables display device for the instance. Structure is documented below.
- guest_
accelerators Sequence[RestoreWorkload Compute Instance Restore Properties Guest Accelerator] - Optional. A list of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname str
- Optional. Specifies the hostname of the instance.
- instance_
encryption_ Restorekey Workload Compute Instance Restore Properties Instance Encryption Key - Optional. Encrypts suspended data for an instance with a customer-managed encryption key. Structure is documented below.
- key_
revocation_ straction_ type - Optional. KeyRevocationActionType of the instance.
Possible values are:
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED,NONE,STOP. - labels
Sequence[Restore
Workload Compute Instance Restore Properties Label] - Optional. Labels to apply to this instance. Structure is documented below.
- machine_
type str - Optional. Full or partial URL of the machine type resource to use for this instance.
- metadata
Restore
Workload Compute Instance Restore Properties Metadata - Optional. This includes custom metadata and predefined keys. Structure is documented below.
- min_
cpu_ strplatform - Optional. Minimum CPU platform to use for this instance.
- network_
interfaces Sequence[RestoreWorkload Compute Instance Restore Properties Network Interface] - Optional. An array of network configurations for this instance. Structure is documented below.
- network_
performance_ Restoreconfig Workload Compute Instance Restore Properties Network Performance Config - Optional. Configure network performance such as egress bandwidth tier. Structure is documented below.
- params
Restore
Workload Compute Instance Restore Properties Params - Input only. Additional params passed with the request. Structure is documented below.
- private_
ipv6_ strgoogle_ access - Optional. The private IPv6 google access type for the VM.
Possible values are:
INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,INHERIT_FROM_SUBNETWORK,ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE. - resource_
policies Sequence[str] - Optional. Resource policies applied to this instance.
- scheduling
Restore
Workload Compute Instance Restore Properties Scheduling - Optional. Sets the scheduling options for this instance. Structure is documented below.
- service_
accounts Sequence[RestoreWorkload Compute Instance Restore Properties Service Account] - Optional. A list of service accounts, with their specified scopes, authorized for this instance. Structure is documented below.
- shielded_
instance_ Restoreconfig Workload Compute Instance Restore Properties Shielded Instance Config - Optional. Controls Shielded compute options on the instance. Structure is documented below.
-
Restore
Workload Compute Instance Restore Properties Tags - Optional. Tags to apply to this instance. Structure is documented below.
- name String
- Required. Name of the compute instance.
- advanced
Machine Property MapFeatures - Optional. Controls for advanced machine-related behavior features. Structure is documented below.
- allocation
Affinity Property Map - Optional. Specifies the reservations that this instance can consume from. Structure is documented below.
- can
Ip BooleanForward - Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
- confidential
Instance Property MapConfig - Optional. Controls Confidential compute options on the instance. Structure is documented below.
- deletion
Protection Boolean - Optional. Whether the resource should be protected against deletion.
- description String
- Optional. An optional description of this resource.
- disks List<Property Map>
- Optional. Array of disks associated with this instance. Structure is documented below.
- display
Device Property Map - Optional. Enables display device for the instance. Structure is documented below.
- guest
Accelerators List<Property Map> - Optional. A list of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname String
- Optional. Specifies the hostname of the instance.
- instance
Encryption Property MapKey - Optional. Encrypts suspended data for an instance with a customer-managed encryption key. Structure is documented below.
- key
Revocation StringAction Type - Optional. KeyRevocationActionType of the instance.
Possible values are:
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED,NONE,STOP. - labels List<Property Map>
- Optional. Labels to apply to this instance. Structure is documented below.
- machine
Type String - Optional. Full or partial URL of the machine type resource to use for this instance.
- metadata Property Map
- Optional. This includes custom metadata and predefined keys. Structure is documented below.
- min
Cpu StringPlatform - Optional. Minimum CPU platform to use for this instance.
- network
Interfaces List<Property Map> - Optional. An array of network configurations for this instance. Structure is documented below.
- network
Performance Property MapConfig - Optional. Configure network performance such as egress bandwidth tier. Structure is documented below.
- params Property Map
- Input only. Additional params passed with the request. Structure is documented below.
- private
Ipv6Google StringAccess - Optional. The private IPv6 google access type for the VM.
Possible values are:
INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED,INHERIT_FROM_SUBNETWORK,ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE,ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE. - resource
Policies List<String> - Optional. Resource policies applied to this instance.
- scheduling Property Map
- Optional. Sets the scheduling options for this instance. Structure is documented below.
- service
Accounts List<Property Map> - Optional. A list of service accounts, with their specified scopes, authorized for this instance. Structure is documented below.
- shielded
Instance Property MapConfig - Optional. Controls Shielded compute options on the instance. Structure is documented below.
- Property Map
- Optional. Tags to apply to this instance. Structure is documented below.
RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeatures, RestoreWorkloadComputeInstanceRestorePropertiesAdvancedMachineFeaturesArgs
- Enable
Nested boolVirtualization - Optional. Whether to enable nested virtualization or not (default is false).
- Enable
Uefi boolNetworking - Optional. Whether to enable UEFI networking for instance creation.
- Threads
Per intCore - Optional. The number of threads per physical core.
- Visible
Core intCount - Optional. The number of physical cores to expose to an instance.
- Enable
Nested boolVirtualization - Optional. Whether to enable nested virtualization or not (default is false).
- Enable
Uefi boolNetworking - Optional. Whether to enable UEFI networking for instance creation.
- Threads
Per intCore - Optional. The number of threads per physical core.
- Visible
Core intCount - Optional. The number of physical cores to expose to an instance.
- enable
Nested BooleanVirtualization - Optional. Whether to enable nested virtualization or not (default is false).
- enable
Uefi BooleanNetworking - Optional. Whether to enable UEFI networking for instance creation.
- threads
Per IntegerCore - Optional. The number of threads per physical core.
- visible
Core IntegerCount - Optional. The number of physical cores to expose to an instance.
- enable
Nested booleanVirtualization - Optional. Whether to enable nested virtualization or not (default is false).
- enable
Uefi booleanNetworking - Optional. Whether to enable UEFI networking for instance creation.
- threads
Per numberCore - Optional. The number of threads per physical core.
- visible
Core numberCount - Optional. The number of physical cores to expose to an instance.
- enable_
nested_ boolvirtualization - Optional. Whether to enable nested virtualization or not (default is false).
- enable_
uefi_ boolnetworking - Optional. Whether to enable UEFI networking for instance creation.
- threads_
per_ intcore - Optional. The number of threads per physical core.
- visible_
core_ intcount - Optional. The number of physical cores to expose to an instance.
- enable
Nested BooleanVirtualization - Optional. Whether to enable nested virtualization or not (default is false).
- enable
Uefi BooleanNetworking - Optional. Whether to enable UEFI networking for instance creation.
- threads
Per NumberCore - Optional. The number of threads per physical core.
- visible
Core NumberCount - Optional. The number of physical cores to expose to an instance.
RestoreWorkloadComputeInstanceRestorePropertiesAllocationAffinity, RestoreWorkloadComputeInstanceRestorePropertiesAllocationAffinityArgs
- Consume
Allocation stringType - Possible values are:
TYPE_UNSPECIFIED,NO_RESERVATION,ANY_RESERVATION,SPECIFIC_RESERVATION. - Key string
- (Optional)
- Values List<string>
- (Optional)
- Consume
Allocation stringType - Possible values are:
TYPE_UNSPECIFIED,NO_RESERVATION,ANY_RESERVATION,SPECIFIC_RESERVATION. - Key string
- (Optional)
- Values []string
- (Optional)
- consume
Allocation StringType - Possible values are:
TYPE_UNSPECIFIED,NO_RESERVATION,ANY_RESERVATION,SPECIFIC_RESERVATION. - key String
- (Optional)
- values List<String>
- (Optional)
- consume
Allocation stringType - Possible values are:
TYPE_UNSPECIFIED,NO_RESERVATION,ANY_RESERVATION,SPECIFIC_RESERVATION. - key string
- (Optional)
- values string[]
- (Optional)
- consume_
allocation_ strtype - Possible values are:
TYPE_UNSPECIFIED,NO_RESERVATION,ANY_RESERVATION,SPECIFIC_RESERVATION. - key str
- (Optional)
- values Sequence[str]
- (Optional)
- consume
Allocation StringType - Possible values are:
TYPE_UNSPECIFIED,NO_RESERVATION,ANY_RESERVATION,SPECIFIC_RESERVATION. - key String
- (Optional)
- values List<String>
- (Optional)
RestoreWorkloadComputeInstanceRestorePropertiesConfidentialInstanceConfig, RestoreWorkloadComputeInstanceRestorePropertiesConfidentialInstanceConfigArgs
- Enable
Confidential boolCompute - Optional. Defines whether the instance should have confidential compute enabled.
- Enable
Confidential boolCompute - Optional. Defines whether the instance should have confidential compute enabled.
- enable
Confidential BooleanCompute - Optional. Defines whether the instance should have confidential compute enabled.
- enable
Confidential booleanCompute - Optional. Defines whether the instance should have confidential compute enabled.
- enable_
confidential_ boolcompute - Optional. Defines whether the instance should have confidential compute enabled.
- enable
Confidential BooleanCompute - Optional. Defines whether the instance should have confidential compute enabled.
RestoreWorkloadComputeInstanceRestorePropertiesDisk, RestoreWorkloadComputeInstanceRestorePropertiesDiskArgs
- Auto
Delete bool - Optional. Specifies whether the disk will be auto-deleted when the instance is deleted.
- Boot bool
- Optional. Indicates that this is a boot disk.
- Device
Name string - Optional. This is used as an identifier for the disks.
- Disk
Encryption RestoreKey Workload Compute Instance Restore Properties Disk Disk Encryption Key - Optional. Encrypts or decrypts a disk using a customer-supplied encryption key. Structure is documented below.
- Disk
Interface string - Optional. Specifies the disk interface to use for attaching this disk.
Possible values are:
DISK_INTERFACE_UNSPECIFIED,SCSI,NVME,NVDIMM,ISCSI. - Disk
Size intGb - Optional. The size of the disk in GB.
- Disk
Type string - Output only. The URI of the disk type resource.
- Guest
Os List<RestoreFeatures Workload Compute Instance Restore Properties Disk Guest Os Feature> - Optional. A list of features to enable on the guest operating system. Structure is documented below.
- Index int
- Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
- Initialize
Params RestoreWorkload Compute Instance Restore Properties Disk Initialize Params - Optional. Specifies the parameters to initialize this disk. Structure is documented below.
- Kind string
- Optional. Type of the resource.
- Licenses List<string>
- Optional. Any valid publicly visible licenses.
- Mode string
- Optional. The mode in which to attach this disk.
Possible values are:
DISK_MODE_UNSPECIFIED,READ_WRITE,READ_ONLY,LOCKED. - Saved
State string - Optional. Specifies the saved state of the disk.
Possible values are:
DISK_SAVED_STATE_UNSPECIFIED,PRESERVED. - Source string
- Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
- Type string
- Optional. Specifies the type of the disk.
Possible values are:
DISK_TYPE_UNSPECIFIED,SCRATCH,PERSISTENT.
- Auto
Delete bool - Optional. Specifies whether the disk will be auto-deleted when the instance is deleted.
- Boot bool
- Optional. Indicates that this is a boot disk.
- Device
Name string - Optional. This is used as an identifier for the disks.
- Disk
Encryption RestoreKey Workload Compute Instance Restore Properties Disk Disk Encryption Key - Optional. Encrypts or decrypts a disk using a customer-supplied encryption key. Structure is documented below.
- Disk
Interface string - Optional. Specifies the disk interface to use for attaching this disk.
Possible values are:
DISK_INTERFACE_UNSPECIFIED,SCSI,NVME,NVDIMM,ISCSI. - Disk
Size intGb - Optional. The size of the disk in GB.
- Disk
Type string - Output only. The URI of the disk type resource.
- Guest
Os []RestoreFeatures Workload Compute Instance Restore Properties Disk Guest Os Feature - Optional. A list of features to enable on the guest operating system. Structure is documented below.
- Index int
- Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
- Initialize
Params RestoreWorkload Compute Instance Restore Properties Disk Initialize Params - Optional. Specifies the parameters to initialize this disk. Structure is documented below.
- Kind string
- Optional. Type of the resource.
- Licenses []string
- Optional. Any valid publicly visible licenses.
- Mode string
- Optional. The mode in which to attach this disk.
Possible values are:
DISK_MODE_UNSPECIFIED,READ_WRITE,READ_ONLY,LOCKED. - Saved
State string - Optional. Specifies the saved state of the disk.
Possible values are:
DISK_SAVED_STATE_UNSPECIFIED,PRESERVED. - Source string
- Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
- Type string
- Optional. Specifies the type of the disk.
Possible values are:
DISK_TYPE_UNSPECIFIED,SCRATCH,PERSISTENT.
- auto
Delete Boolean - Optional. Specifies whether the disk will be auto-deleted when the instance is deleted.
- boot Boolean
- Optional. Indicates that this is a boot disk.
- device
Name String - Optional. This is used as an identifier for the disks.
- disk
Encryption RestoreKey Workload Compute Instance Restore Properties Disk Disk Encryption Key - Optional. Encrypts or decrypts a disk using a customer-supplied encryption key. Structure is documented below.
- disk
Interface String - Optional. Specifies the disk interface to use for attaching this disk.
Possible values are:
DISK_INTERFACE_UNSPECIFIED,SCSI,NVME,NVDIMM,ISCSI. - disk
Size IntegerGb - Optional. The size of the disk in GB.
- disk
Type String - Output only. The URI of the disk type resource.
- guest
Os List<RestoreFeatures Workload Compute Instance Restore Properties Disk Guest Os Feature> - Optional. A list of features to enable on the guest operating system. Structure is documented below.
- index Integer
- Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
- initialize
Params RestoreWorkload Compute Instance Restore Properties Disk Initialize Params - Optional. Specifies the parameters to initialize this disk. Structure is documented below.
- kind String
- Optional. Type of the resource.
- licenses List<String>
- Optional. Any valid publicly visible licenses.
- mode String
- Optional. The mode in which to attach this disk.
Possible values are:
DISK_MODE_UNSPECIFIED,READ_WRITE,READ_ONLY,LOCKED. - saved
State String - Optional. Specifies the saved state of the disk.
Possible values are:
DISK_SAVED_STATE_UNSPECIFIED,PRESERVED. - source String
- Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type String
- Optional. Specifies the type of the disk.
Possible values are:
DISK_TYPE_UNSPECIFIED,SCRATCH,PERSISTENT.
- auto
Delete boolean - Optional. Specifies whether the disk will be auto-deleted when the instance is deleted.
- boot boolean
- Optional. Indicates that this is a boot disk.
- device
Name string - Optional. This is used as an identifier for the disks.
- disk
Encryption RestoreKey Workload Compute Instance Restore Properties Disk Disk Encryption Key - Optional. Encrypts or decrypts a disk using a customer-supplied encryption key. Structure is documented below.
- disk
Interface string - Optional. Specifies the disk interface to use for attaching this disk.
Possible values are:
DISK_INTERFACE_UNSPECIFIED,SCSI,NVME,NVDIMM,ISCSI. - disk
Size numberGb - Optional. The size of the disk in GB.
- disk
Type string - Output only. The URI of the disk type resource.
- guest
Os RestoreFeatures Workload Compute Instance Restore Properties Disk Guest Os Feature[] - Optional. A list of features to enable on the guest operating system. Structure is documented below.
- index number
- Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
- initialize
Params RestoreWorkload Compute Instance Restore Properties Disk Initialize Params - Optional. Specifies the parameters to initialize this disk. Structure is documented below.
- kind string
- Optional. Type of the resource.
- licenses string[]
- Optional. Any valid publicly visible licenses.
- mode string
- Optional. The mode in which to attach this disk.
Possible values are:
DISK_MODE_UNSPECIFIED,READ_WRITE,READ_ONLY,LOCKED. - saved
State string - Optional. Specifies the saved state of the disk.
Possible values are:
DISK_SAVED_STATE_UNSPECIFIED,PRESERVED. - source string
- Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type string
- Optional. Specifies the type of the disk.
Possible values are:
DISK_TYPE_UNSPECIFIED,SCRATCH,PERSISTENT.
- auto_
delete bool - Optional. Specifies whether the disk will be auto-deleted when the instance is deleted.
- boot bool
- Optional. Indicates that this is a boot disk.
- device_
name str - Optional. This is used as an identifier for the disks.
- disk_
encryption_ Restorekey Workload Compute Instance Restore Properties Disk Disk Encryption Key - Optional. Encrypts or decrypts a disk using a customer-supplied encryption key. Structure is documented below.
- disk_
interface str - Optional. Specifies the disk interface to use for attaching this disk.
Possible values are:
DISK_INTERFACE_UNSPECIFIED,SCSI,NVME,NVDIMM,ISCSI. - disk_
size_ intgb - Optional. The size of the disk in GB.
- disk_
type str - Output only. The URI of the disk type resource.
- guest_
os_ Sequence[Restorefeatures Workload Compute Instance Restore Properties Disk Guest Os Feature] - Optional. A list of features to enable on the guest operating system. Structure is documented below.
- index int
- Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
- initialize_
params RestoreWorkload Compute Instance Restore Properties Disk Initialize Params - Optional. Specifies the parameters to initialize this disk. Structure is documented below.
- kind str
- Optional. Type of the resource.
- licenses Sequence[str]
- Optional. Any valid publicly visible licenses.
- mode str
- Optional. The mode in which to attach this disk.
Possible values are:
DISK_MODE_UNSPECIFIED,READ_WRITE,READ_ONLY,LOCKED. - saved_
state str - Optional. Specifies the saved state of the disk.
Possible values are:
DISK_SAVED_STATE_UNSPECIFIED,PRESERVED. - source str
- Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type str
- Optional. Specifies the type of the disk.
Possible values are:
DISK_TYPE_UNSPECIFIED,SCRATCH,PERSISTENT.
- auto
Delete Boolean - Optional. Specifies whether the disk will be auto-deleted when the instance is deleted.
- boot Boolean
- Optional. Indicates that this is a boot disk.
- device
Name String - Optional. This is used as an identifier for the disks.
- disk
Encryption Property MapKey - Optional. Encrypts or decrypts a disk using a customer-supplied encryption key. Structure is documented below.
- disk
Interface String - Optional. Specifies the disk interface to use for attaching this disk.
Possible values are:
DISK_INTERFACE_UNSPECIFIED,SCSI,NVME,NVDIMM,ISCSI. - disk
Size NumberGb - Optional. The size of the disk in GB.
- disk
Type String - Output only. The URI of the disk type resource.
- guest
Os List<Property Map>Features - Optional. A list of features to enable on the guest operating system. Structure is documented below.
- index Number
- Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
- initialize
Params Property Map - Optional. Specifies the parameters to initialize this disk. Structure is documented below.
- kind String
- Optional. Type of the resource.
- licenses List<String>
- Optional. Any valid publicly visible licenses.
- mode String
- Optional. The mode in which to attach this disk.
Possible values are:
DISK_MODE_UNSPECIFIED,READ_WRITE,READ_ONLY,LOCKED. - saved
State String - Optional. Specifies the saved state of the disk.
Possible values are:
DISK_SAVED_STATE_UNSPECIFIED,PRESERVED. - source String
- Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
- type String
- Optional. Specifies the type of the disk.
Possible values are:
DISK_TYPE_UNSPECIFIED,SCRATCH,PERSISTENT.
RestoreWorkloadComputeInstanceRestorePropertiesDiskDiskEncryptionKey, RestoreWorkloadComputeInstanceRestorePropertiesDiskDiskEncryptionKeyArgs
- Kms
Key stringName - (Optional)
- Kms
Key stringService Account - (Optional)
- Raw
Key string - (Optional)
- Rsa
Encrypted stringKey - (Optional)
- Kms
Key stringName - (Optional)
- Kms
Key stringService Account - (Optional)
- Raw
Key string - (Optional)
- Rsa
Encrypted stringKey - (Optional)
- kms
Key StringName - (Optional)
- kms
Key StringService Account - (Optional)
- raw
Key String - (Optional)
- rsa
Encrypted StringKey - (Optional)
- kms
Key stringName - (Optional)
- kms
Key stringService Account - (Optional)
- raw
Key string - (Optional)
- rsa
Encrypted stringKey - (Optional)
- kms_
key_ strname - (Optional)
- kms_
key_ strservice_ account - (Optional)
- raw_
key str - (Optional)
- rsa_
encrypted_ strkey - (Optional)
- kms
Key StringName - (Optional)
- kms
Key StringService Account - (Optional)
- raw
Key String - (Optional)
- rsa
Encrypted StringKey - (Optional)
RestoreWorkloadComputeInstanceRestorePropertiesDiskGuestOsFeature, RestoreWorkloadComputeInstanceRestorePropertiesDiskGuestOsFeatureArgs
- Type string
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- Type string
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type String
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type string
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type str
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type String
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
RestoreWorkloadComputeInstanceRestorePropertiesDiskInitializeParams, RestoreWorkloadComputeInstanceRestorePropertiesDiskInitializeParamsArgs
- Disk
Name string - Optional. Specifies the disk name.
- Replica
Zones List<string> - Optional. URL of the zone where the disk should be created.
- Disk
Name string - Optional. Specifies the disk name.
- Replica
Zones []string - Optional. URL of the zone where the disk should be created.
- disk
Name String - Optional. Specifies the disk name.
- replica
Zones List<String> - Optional. URL of the zone where the disk should be created.
- disk
Name string - Optional. Specifies the disk name.
- replica
Zones string[] - Optional. URL of the zone where the disk should be created.
- disk_
name str - Optional. Specifies the disk name.
- replica_
zones Sequence[str] - Optional. URL of the zone where the disk should be created.
- disk
Name String - Optional. Specifies the disk name.
- replica
Zones List<String> - Optional. URL of the zone where the disk should be created.
RestoreWorkloadComputeInstanceRestorePropertiesDisplayDevice, RestoreWorkloadComputeInstanceRestorePropertiesDisplayDeviceArgs
- Enable
Display bool - Optional. Enables display for the Compute Engine VM.
- Enable
Display bool - Optional. Enables display for the Compute Engine VM.
- enable
Display Boolean - Optional. Enables display for the Compute Engine VM.
- enable
Display boolean - Optional. Enables display for the Compute Engine VM.
- enable_
display bool - Optional. Enables display for the Compute Engine VM.
- enable
Display Boolean - Optional. Enables display for the Compute Engine VM.
RestoreWorkloadComputeInstanceRestorePropertiesGuestAccelerator, RestoreWorkloadComputeInstanceRestorePropertiesGuestAcceleratorArgs
- Accelerator
Count int - Optional. The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type string - Optional. Full or partial URL of the accelerator type resource.
- Accelerator
Count int - Optional. The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type string - Optional. Full or partial URL of the accelerator type resource.
- accelerator
Count Integer - Optional. The number of the guest accelerator cards exposed to this instance.
- accelerator
Type String - Optional. Full or partial URL of the accelerator type resource.
- accelerator
Count number - Optional. The number of the guest accelerator cards exposed to this instance.
- accelerator
Type string - Optional. Full or partial URL of the accelerator type resource.
- accelerator_
count int - Optional. The number of the guest accelerator cards exposed to this instance.
- accelerator_
type str - Optional. Full or partial URL of the accelerator type resource.
- accelerator
Count Number - Optional. The number of the guest accelerator cards exposed to this instance.
- accelerator
Type String - Optional. Full or partial URL of the accelerator type resource.
RestoreWorkloadComputeInstanceRestorePropertiesInstanceEncryptionKey, RestoreWorkloadComputeInstanceRestorePropertiesInstanceEncryptionKeyArgs
- Kms
Key stringName - (Optional)
- Kms
Key stringService Account - (Optional)
- Raw
Key string - (Optional)
- Rsa
Encrypted stringKey - (Optional)
- Kms
Key stringName - (Optional)
- Kms
Key stringService Account - (Optional)
- Raw
Key string - (Optional)
- Rsa
Encrypted stringKey - (Optional)
- kms
Key StringName - (Optional)
- kms
Key StringService Account - (Optional)
- raw
Key String - (Optional)
- rsa
Encrypted StringKey - (Optional)
- kms
Key stringName - (Optional)
- kms
Key stringService Account - (Optional)
- raw
Key string - (Optional)
- rsa
Encrypted stringKey - (Optional)
- kms_
key_ strname - (Optional)
- kms_
key_ strservice_ account - (Optional)
- raw_
key str - (Optional)
- rsa_
encrypted_ strkey - (Optional)
- kms
Key StringName - (Optional)
- kms
Key StringService Account - (Optional)
- raw
Key String - (Optional)
- rsa
Encrypted StringKey - (Optional)
RestoreWorkloadComputeInstanceRestorePropertiesLabel, RestoreWorkloadComputeInstanceRestorePropertiesLabelArgs
RestoreWorkloadComputeInstanceRestorePropertiesMetadata, RestoreWorkloadComputeInstanceRestorePropertiesMetadataArgs
- Items
List<Restore
Workload Compute Instance Restore Properties Metadata Item> - Structure is documented below.
- Items
[]Restore
Workload Compute Instance Restore Properties Metadata Item - Structure is documented below.
- items
List<Restore
Workload Compute Instance Restore Properties Metadata Item> - Structure is documented below.
- items
Restore
Workload Compute Instance Restore Properties Metadata Item[] - Structure is documented below.
- items
Sequence[Restore
Workload Compute Instance Restore Properties Metadata Item] - Structure is documented below.
- items List<Property Map>
- Structure is documented below.
RestoreWorkloadComputeInstanceRestorePropertiesMetadataItem, RestoreWorkloadComputeInstanceRestorePropertiesMetadataItemArgs
RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterface, RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceArgs
- Access
Configs List<RestoreWorkload Compute Instance Restore Properties Network Interface Access Config> - Structure is documented below.
- Alias
Ip List<RestoreRanges Workload Compute Instance Restore Properties Network Interface Alias Ip Range> - Structure is documented below.
- Internal
Ipv6Prefix intLength - Optional. The prefix length of the primary internal IPv6 range.
- Ip
Address string - Optional. An IPv4 internal IP address to assign to the instance.
- Ipv6Access
Configs List<RestoreWorkload Compute Instance Restore Properties Network Interface Ipv6Access Config> - Structure is documented below.
- Ipv6Access
Type string - Possible values are:
UNSPECIFIED_IPV6_ACCESS_TYPE,INTERNAL,EXTERNAL. - Ipv6Address string
- Optional. An IPv6 internal network address for this network interface.
- Network string
- Optional. URL of the VPC network resource for this instance.
- Network
Attachment string - (Optional)
- Nic
Type string - Possible values are:
NIC_TYPE_UNSPECIFIED,VIRTIO_NET,GVNIC. - Queue
Count int - (Optional)
- Stack
Type string - Possible values are:
STACK_TYPE_UNSPECIFIED,IPV4_ONLY,IPV4_IPV6. - Subnetwork string
- Optional. The URL of the Subnetwork resource for this instance.
- Access
Configs []RestoreWorkload Compute Instance Restore Properties Network Interface Access Config - Structure is documented below.
- Alias
Ip []RestoreRanges Workload Compute Instance Restore Properties Network Interface Alias Ip Range - Structure is documented below.
- Internal
Ipv6Prefix intLength - Optional. The prefix length of the primary internal IPv6 range.
- Ip
Address string - Optional. An IPv4 internal IP address to assign to the instance.
- Ipv6Access
Configs []RestoreWorkload Compute Instance Restore Properties Network Interface Ipv6Access Config - Structure is documented below.
- Ipv6Access
Type string - Possible values are:
UNSPECIFIED_IPV6_ACCESS_TYPE,INTERNAL,EXTERNAL. - Ipv6Address string
- Optional. An IPv6 internal network address for this network interface.
- Network string
- Optional. URL of the VPC network resource for this instance.
- Network
Attachment string - (Optional)
- Nic
Type string - Possible values are:
NIC_TYPE_UNSPECIFIED,VIRTIO_NET,GVNIC. - Queue
Count int - (Optional)
- Stack
Type string - Possible values are:
STACK_TYPE_UNSPECIFIED,IPV4_ONLY,IPV4_IPV6. - Subnetwork string
- Optional. The URL of the Subnetwork resource for this instance.
- access
Configs List<RestoreWorkload Compute Instance Restore Properties Network Interface Access Config> - Structure is documented below.
- alias
Ip List<RestoreRanges Workload Compute Instance Restore Properties Network Interface Alias Ip Range> - Structure is documented below.
- internal
Ipv6Prefix IntegerLength - Optional. The prefix length of the primary internal IPv6 range.
- ip
Address String - Optional. An IPv4 internal IP address to assign to the instance.
- ipv6Access
Configs List<RestoreWorkload Compute Instance Restore Properties Network Interface Ipv6Access Config> - Structure is documented below.
- ipv6Access
Type String - Possible values are:
UNSPECIFIED_IPV6_ACCESS_TYPE,INTERNAL,EXTERNAL. - ipv6Address String
- Optional. An IPv6 internal network address for this network interface.
- network String
- Optional. URL of the VPC network resource for this instance.
- network
Attachment String - (Optional)
- nic
Type String - Possible values are:
NIC_TYPE_UNSPECIFIED,VIRTIO_NET,GVNIC. - queue
Count Integer - (Optional)
- stack
Type String - Possible values are:
STACK_TYPE_UNSPECIFIED,IPV4_ONLY,IPV4_IPV6. - subnetwork String
- Optional. The URL of the Subnetwork resource for this instance.
- access
Configs RestoreWorkload Compute Instance Restore Properties Network Interface Access Config[] - Structure is documented below.
- alias
Ip RestoreRanges Workload Compute Instance Restore Properties Network Interface Alias Ip Range[] - Structure is documented below.
- internal
Ipv6Prefix numberLength - Optional. The prefix length of the primary internal IPv6 range.
- ip
Address string - Optional. An IPv4 internal IP address to assign to the instance.
- ipv6Access
Configs RestoreWorkload Compute Instance Restore Properties Network Interface Ipv6Access Config[] - Structure is documented below.
- ipv6Access
Type string - Possible values are:
UNSPECIFIED_IPV6_ACCESS_TYPE,INTERNAL,EXTERNAL. - ipv6Address string
- Optional. An IPv6 internal network address for this network interface.
- network string
- Optional. URL of the VPC network resource for this instance.
- network
Attachment string - (Optional)
- nic
Type string - Possible values are:
NIC_TYPE_UNSPECIFIED,VIRTIO_NET,GVNIC. - queue
Count number - (Optional)
- stack
Type string - Possible values are:
STACK_TYPE_UNSPECIFIED,IPV4_ONLY,IPV4_IPV6. - subnetwork string
- Optional. The URL of the Subnetwork resource for this instance.
- access_
configs Sequence[RestoreWorkload Compute Instance Restore Properties Network Interface Access Config] - Structure is documented below.
- alias_
ip_ Sequence[Restoreranges Workload Compute Instance Restore Properties Network Interface Alias Ip Range] - Structure is documented below.
- internal_
ipv6_ intprefix_ length - Optional. The prefix length of the primary internal IPv6 range.
- ip_
address str - Optional. An IPv4 internal IP address to assign to the instance.
- ipv6_
access_ Sequence[Restoreconfigs Workload Compute Instance Restore Properties Network Interface Ipv6Access Config] - Structure is documented below.
- ipv6_
access_ strtype - Possible values are:
UNSPECIFIED_IPV6_ACCESS_TYPE,INTERNAL,EXTERNAL. - ipv6_
address str - Optional. An IPv6 internal network address for this network interface.
- network str
- Optional. URL of the VPC network resource for this instance.
- network_
attachment str - (Optional)
- nic_
type str - Possible values are:
NIC_TYPE_UNSPECIFIED,VIRTIO_NET,GVNIC. - queue_
count int - (Optional)
- stack_
type str - Possible values are:
STACK_TYPE_UNSPECIFIED,IPV4_ONLY,IPV4_IPV6. - subnetwork str
- Optional. The URL of the Subnetwork resource for this instance.
- access
Configs List<Property Map> - Structure is documented below.
- alias
Ip List<Property Map>Ranges - Structure is documented below.
- internal
Ipv6Prefix NumberLength - Optional. The prefix length of the primary internal IPv6 range.
- ip
Address String - Optional. An IPv4 internal IP address to assign to the instance.
- ipv6Access
Configs List<Property Map> - Structure is documented below.
- ipv6Access
Type String - Possible values are:
UNSPECIFIED_IPV6_ACCESS_TYPE,INTERNAL,EXTERNAL. - ipv6Address String
- Optional. An IPv6 internal network address for this network interface.
- network String
- Optional. URL of the VPC network resource for this instance.
- network
Attachment String - (Optional)
- nic
Type String - Possible values are:
NIC_TYPE_UNSPECIFIED,VIRTIO_NET,GVNIC. - queue
Count Number - (Optional)
- stack
Type String - Possible values are:
STACK_TYPE_UNSPECIFIED,IPV4_ONLY,IPV4_IPV6. - subnetwork String
- Optional. The URL of the Subnetwork resource for this instance.
RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfig, RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAccessConfigArgs
- External
Ip string - (Optional)
- External
Ipv6 string - (Optional)
- External
Ipv6Prefix intLength - (Optional)
- Name string
- Optional. The name of this access configuration.
- Network
Tier string - Possible values are:
NETWORK_TIER_UNSPECIFIED,PREMIUM,STANDARD. - Public
Ptr stringDomain Name - (Optional)
- Set
Public boolPtr - (Optional)
- Type string
- Optional. The type of configuration.
Possible values are:
ACCESS_TYPE_UNSPECIFIED,ONE_TO_ONE_NAT,DIRECT_IPV6.
- External
Ip string - (Optional)
- External
Ipv6 string - (Optional)
- External
Ipv6Prefix intLength - (Optional)
- Name string
- Optional. The name of this access configuration.
- Network
Tier string - Possible values are:
NETWORK_TIER_UNSPECIFIED,PREMIUM,STANDARD. - Public
Ptr stringDomain Name - (Optional)
- Set
Public boolPtr - (Optional)
- Type string
- Optional. The type of configuration.
Possible values are:
ACCESS_TYPE_UNSPECIFIED,ONE_TO_ONE_NAT,DIRECT_IPV6.
- external
Ip String - (Optional)
- external
Ipv6 String - (Optional)
- external
Ipv6Prefix IntegerLength - (Optional)
- name String
- Optional. The name of this access configuration.
- network
Tier String - Possible values are:
NETWORK_TIER_UNSPECIFIED,PREMIUM,STANDARD. - public
Ptr StringDomain Name - (Optional)
- set
Public BooleanPtr - (Optional)
- type String
- Optional. The type of configuration.
Possible values are:
ACCESS_TYPE_UNSPECIFIED,ONE_TO_ONE_NAT,DIRECT_IPV6.
- external
Ip string - (Optional)
- external
Ipv6 string - (Optional)
- external
Ipv6Prefix numberLength - (Optional)
- name string
- Optional. The name of this access configuration.
- network
Tier string - Possible values are:
NETWORK_TIER_UNSPECIFIED,PREMIUM,STANDARD. - public
Ptr stringDomain Name - (Optional)
- set
Public booleanPtr - (Optional)
- type string
- Optional. The type of configuration.
Possible values are:
ACCESS_TYPE_UNSPECIFIED,ONE_TO_ONE_NAT,DIRECT_IPV6.
- external_
ip str - (Optional)
- external_
ipv6 str - (Optional)
- external_
ipv6_ intprefix_ length - (Optional)
- name str
- Optional. The name of this access configuration.
- network_
tier str - Possible values are:
NETWORK_TIER_UNSPECIFIED,PREMIUM,STANDARD. - public_
ptr_ strdomain_ name - (Optional)
- set_
public_ boolptr - (Optional)
- type str
- Optional. The type of configuration.
Possible values are:
ACCESS_TYPE_UNSPECIFIED,ONE_TO_ONE_NAT,DIRECT_IPV6.
- external
Ip String - (Optional)
- external
Ipv6 String - (Optional)
- external
Ipv6Prefix NumberLength - (Optional)
- name String
- Optional. The name of this access configuration.
- network
Tier String - Possible values are:
NETWORK_TIER_UNSPECIFIED,PREMIUM,STANDARD. - public
Ptr StringDomain Name - (Optional)
- set
Public BooleanPtr - (Optional)
- type String
- Optional. The type of configuration.
Possible values are:
ACCESS_TYPE_UNSPECIFIED,ONE_TO_ONE_NAT,DIRECT_IPV6.
RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAliasIpRange, RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceAliasIpRangeArgs
- Ip
Cidr stringRange - (Optional)
- Subnetwork
Range stringName - (Optional)
- Ip
Cidr stringRange - (Optional)
- Subnetwork
Range stringName - (Optional)
- ip
Cidr StringRange - (Optional)
- subnetwork
Range StringName - (Optional)
- ip
Cidr stringRange - (Optional)
- subnetwork
Range stringName - (Optional)
- ip_
cidr_ strrange - (Optional)
- subnetwork_
range_ strname - (Optional)
- ip
Cidr StringRange - (Optional)
- subnetwork
Range StringName - (Optional)
RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceIpv6AccessConfig, RestoreWorkloadComputeInstanceRestorePropertiesNetworkInterfaceIpv6AccessConfigArgs
- External
Ip string - (Optional)
- External
Ipv6 string - (Optional)
- External
Ipv6Prefix intLength - (Optional)
- Name string
- Required. The resource name of the backup instance.
- Network
Tier string - Possible values: ["NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD"]
- Public
Ptr stringDomain Name - (Optional)
- Set
Public boolPtr - (Optional)
- Type string
- Output only. Type of the resource.
- External
Ip string - (Optional)
- External
Ipv6 string - (Optional)
- External
Ipv6Prefix intLength - (Optional)
- Name string
- Required. The resource name of the backup instance.
- Network
Tier string - Possible values: ["NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD"]
- Public
Ptr stringDomain Name - (Optional)
- Set
Public boolPtr - (Optional)
- Type string
- Output only. Type of the resource.
- external
Ip String - (Optional)
- external
Ipv6 String - (Optional)
- external
Ipv6Prefix IntegerLength - (Optional)
- name String
- Required. The resource name of the backup instance.
- network
Tier String - Possible values: ["NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD"]
- public
Ptr StringDomain Name - (Optional)
- set
Public BooleanPtr - (Optional)
- type String
- Output only. Type of the resource.
- external
Ip string - (Optional)
- external
Ipv6 string - (Optional)
- external
Ipv6Prefix numberLength - (Optional)
- name string
- Required. The resource name of the backup instance.
- network
Tier string - Possible values: ["NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD"]
- public
Ptr stringDomain Name - (Optional)
- set
Public booleanPtr - (Optional)
- type string
- Output only. Type of the resource.
- external_
ip str - (Optional)
- external_
ipv6 str - (Optional)
- external_
ipv6_ intprefix_ length - (Optional)
- name str
- Required. The resource name of the backup instance.
- network_
tier str - Possible values: ["NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD"]
- public_
ptr_ strdomain_ name - (Optional)
- set_
public_ boolptr - (Optional)
- type str
- Output only. Type of the resource.
- external
Ip String - (Optional)
- external
Ipv6 String - (Optional)
- external
Ipv6Prefix NumberLength - (Optional)
- name String
- Required. The resource name of the backup instance.
- network
Tier String - Possible values: ["NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD"]
- public
Ptr StringDomain Name - (Optional)
- set
Public BooleanPtr - (Optional)
- type String
- Output only. Type of the resource.
RestoreWorkloadComputeInstanceRestorePropertiesNetworkPerformanceConfig, RestoreWorkloadComputeInstanceRestorePropertiesNetworkPerformanceConfigArgs
- Total
Egress stringBandwidth Tier - Possible values are:
TIER_UNSPECIFIED,DEFAULT,TIER_1.
- Total
Egress stringBandwidth Tier - Possible values are:
TIER_UNSPECIFIED,DEFAULT,TIER_1.
- total
Egress StringBandwidth Tier - Possible values are:
TIER_UNSPECIFIED,DEFAULT,TIER_1.
- total
Egress stringBandwidth Tier - Possible values are:
TIER_UNSPECIFIED,DEFAULT,TIER_1.
- total_
egress_ strbandwidth_ tier - Possible values are:
TIER_UNSPECIFIED,DEFAULT,TIER_1.
- total
Egress StringBandwidth Tier - Possible values are:
TIER_UNSPECIFIED,DEFAULT,TIER_1.
RestoreWorkloadComputeInstanceRestorePropertiesParams, RestoreWorkloadComputeInstanceRestorePropertiesParamsArgs
-
List<Restore
Workload Compute Instance Restore Properties Params Resource Manager Tag> - Structure is documented below.
-
[]Restore
Workload Compute Instance Restore Properties Params Resource Manager Tag - Structure is documented below.
-
List<Restore
Workload Compute Instance Restore Properties Params Resource Manager Tag> - Structure is documented below.
-
Restore
Workload Compute Instance Restore Properties Params Resource Manager Tag[] - Structure is documented below.
-
Sequence[Restore
Workload Compute Instance Restore Properties Params Resource Manager Tag] - Structure is documented below.
- List<Property Map>
- Structure is documented below.
RestoreWorkloadComputeInstanceRestorePropertiesParamsResourceManagerTag, RestoreWorkloadComputeInstanceRestorePropertiesParamsResourceManagerTagArgs
RestoreWorkloadComputeInstanceRestorePropertiesScheduling, RestoreWorkloadComputeInstanceRestorePropertiesSchedulingArgs
- Automatic
Restart bool - (Optional)
- Instance
Termination stringAction - Possible values are:
INSTANCE_TERMINATION_ACTION_UNSPECIFIED,DELETE,STOP. - Local
Ssd RestoreRecovery Timeout Workload Compute Instance Restore Properties Scheduling Local Ssd Recovery Timeout - A nested object resource. Structure is documented below.
- Max
Run RestoreDuration Workload Compute Instance Restore Properties Scheduling Max Run Duration - A nested object resource. Structure is documented below.
- Min
Node intCpus - (Optional)
- Node
Affinities List<RestoreWorkload Compute Instance Restore Properties Scheduling Node Affinity> - Structure is documented below.
- On
Host stringMaintenance - Possible values are:
ON_HOST_MAINTENANCE_UNSPECIFIED,TERMINATE,MIGRATE. - Preemptible bool
- (Optional)
- Provisioning
Model string - Possible values are:
PROVISIONING_MODEL_UNSPECIFIED,STANDARD,SPOT. - Termination
Time string - (Optional)
- Automatic
Restart bool - (Optional)
- Instance
Termination stringAction - Possible values are:
INSTANCE_TERMINATION_ACTION_UNSPECIFIED,DELETE,STOP. - Local
Ssd RestoreRecovery Timeout Workload Compute Instance Restore Properties Scheduling Local Ssd Recovery Timeout - A nested object resource. Structure is documented below.
- Max
Run RestoreDuration Workload Compute Instance Restore Properties Scheduling Max Run Duration - A nested object resource. Structure is documented below.
- Min
Node intCpus - (Optional)
- Node
Affinities []RestoreWorkload Compute Instance Restore Properties Scheduling Node Affinity - Structure is documented below.
- On
Host stringMaintenance - Possible values are:
ON_HOST_MAINTENANCE_UNSPECIFIED,TERMINATE,MIGRATE. - Preemptible bool
- (Optional)
- Provisioning
Model string - Possible values are:
PROVISIONING_MODEL_UNSPECIFIED,STANDARD,SPOT. - Termination
Time string - (Optional)
- automatic
Restart Boolean - (Optional)
- instance
Termination StringAction - Possible values are:
INSTANCE_TERMINATION_ACTION_UNSPECIFIED,DELETE,STOP. - local
Ssd RestoreRecovery Timeout Workload Compute Instance Restore Properties Scheduling Local Ssd Recovery Timeout - A nested object resource. Structure is documented below.
- max
Run RestoreDuration Workload Compute Instance Restore Properties Scheduling Max Run Duration - A nested object resource. Structure is documented below.
- min
Node IntegerCpus - (Optional)
- node
Affinities List<RestoreWorkload Compute Instance Restore Properties Scheduling Node Affinity> - Structure is documented below.
- on
Host StringMaintenance - Possible values are:
ON_HOST_MAINTENANCE_UNSPECIFIED,TERMINATE,MIGRATE. - preemptible Boolean
- (Optional)
- provisioning
Model String - Possible values are:
PROVISIONING_MODEL_UNSPECIFIED,STANDARD,SPOT. - termination
Time String - (Optional)
- automatic
Restart boolean - (Optional)
- instance
Termination stringAction - Possible values are:
INSTANCE_TERMINATION_ACTION_UNSPECIFIED,DELETE,STOP. - local
Ssd RestoreRecovery Timeout Workload Compute Instance Restore Properties Scheduling Local Ssd Recovery Timeout - A nested object resource. Structure is documented below.
- max
Run RestoreDuration Workload Compute Instance Restore Properties Scheduling Max Run Duration - A nested object resource. Structure is documented below.
- min
Node numberCpus - (Optional)
- node
Affinities RestoreWorkload Compute Instance Restore Properties Scheduling Node Affinity[] - Structure is documented below.
- on
Host stringMaintenance - Possible values are:
ON_HOST_MAINTENANCE_UNSPECIFIED,TERMINATE,MIGRATE. - preemptible boolean
- (Optional)
- provisioning
Model string - Possible values are:
PROVISIONING_MODEL_UNSPECIFIED,STANDARD,SPOT. - termination
Time string - (Optional)
- automatic_
restart bool - (Optional)
- instance_
termination_ straction - Possible values are:
INSTANCE_TERMINATION_ACTION_UNSPECIFIED,DELETE,STOP. - local_
ssd_ Restorerecovery_ timeout Workload Compute Instance Restore Properties Scheduling Local Ssd Recovery Timeout - A nested object resource. Structure is documented below.
- max_
run_ Restoreduration Workload Compute Instance Restore Properties Scheduling Max Run Duration - A nested object resource. Structure is documented below.
- min_
node_ intcpus - (Optional)
- node_
affinities Sequence[RestoreWorkload Compute Instance Restore Properties Scheduling Node Affinity] - Structure is documented below.
- on_
host_ strmaintenance - Possible values are:
ON_HOST_MAINTENANCE_UNSPECIFIED,TERMINATE,MIGRATE. - preemptible bool
- (Optional)
- provisioning_
model str - Possible values are:
PROVISIONING_MODEL_UNSPECIFIED,STANDARD,SPOT. - termination_
time str - (Optional)
- automatic
Restart Boolean - (Optional)
- instance
Termination StringAction - Possible values are:
INSTANCE_TERMINATION_ACTION_UNSPECIFIED,DELETE,STOP. - local
Ssd Property MapRecovery Timeout - A nested object resource. Structure is documented below.
- max
Run Property MapDuration - A nested object resource. Structure is documented below.
- min
Node NumberCpus - (Optional)
- node
Affinities List<Property Map> - Structure is documented below.
- on
Host StringMaintenance - Possible values are:
ON_HOST_MAINTENANCE_UNSPECIFIED,TERMINATE,MIGRATE. - preemptible Boolean
- (Optional)
- provisioning
Model String - Possible values are:
PROVISIONING_MODEL_UNSPECIFIED,STANDARD,SPOT. - termination
Time String - (Optional)
RestoreWorkloadComputeInstanceRestorePropertiesSchedulingLocalSsdRecoveryTimeout, RestoreWorkloadComputeInstanceRestorePropertiesSchedulingLocalSsdRecoveryTimeoutArgs
RestoreWorkloadComputeInstanceRestorePropertiesSchedulingMaxRunDuration, RestoreWorkloadComputeInstanceRestorePropertiesSchedulingMaxRunDurationArgs
RestoreWorkloadComputeInstanceRestorePropertiesSchedulingNodeAffinity, RestoreWorkloadComputeInstanceRestorePropertiesSchedulingNodeAffinityArgs
RestoreWorkloadComputeInstanceRestorePropertiesServiceAccount, RestoreWorkloadComputeInstanceRestorePropertiesServiceAccountArgs
RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfig, RestoreWorkloadComputeInstanceRestorePropertiesShieldedInstanceConfigArgs
- Enable
Integrity boolMonitoring - (Optional)
- Enable
Secure boolBoot - (Optional)
- Enable
Vtpm bool - (Optional)
- Enable
Integrity boolMonitoring - (Optional)
- Enable
Secure boolBoot - (Optional)
- Enable
Vtpm bool - (Optional)
- enable
Integrity BooleanMonitoring - (Optional)
- enable
Secure BooleanBoot - (Optional)
- enable
Vtpm Boolean - (Optional)
- enable
Integrity booleanMonitoring - (Optional)
- enable
Secure booleanBoot - (Optional)
- enable
Vtpm boolean - (Optional)
- enable_
integrity_ boolmonitoring - (Optional)
- enable_
secure_ boolboot - (Optional)
- enable_
vtpm bool - (Optional)
- enable
Integrity BooleanMonitoring - (Optional)
- enable
Secure BooleanBoot - (Optional)
- enable
Vtpm Boolean - (Optional)
RestoreWorkloadComputeInstanceRestorePropertiesTags, RestoreWorkloadComputeInstanceRestorePropertiesTagsArgs
- Items List<string>
- (Optional)
- Items []string
- (Optional)
- items List<String>
- (Optional)
- items string[]
- (Optional)
- items Sequence[str]
- (Optional)
- items List<String>
- (Optional)
RestoreWorkloadComputeInstanceTargetEnvironment, RestoreWorkloadComputeInstanceTargetEnvironmentArgs
RestoreWorkloadDiskRestoreProperties, RestoreWorkloadDiskRestorePropertiesArgs
- Name string
- Required. Name of the disk.
- Size
Gb int - Required. The size of the disk in GB.
- Type string
- Required. URL of the disk type resource describing which disk type to use.
- Access
Mode string - Optional. The access mode of the disk.
Possible values are:
READ_WRITE_SINGLE,READ_WRITE_MANY,READ_ONLY_MANY. - Architecture string
- Optional. The architecture of the source disk.
Possible values are:
ARCHITECTURE_UNSPECIFIED,X86_64,ARM64. - Description string
- Optional. An optional description of this resource.
- Disk
Encryption RestoreKey Workload Disk Restore Properties Disk Encryption Key - Optional. Encrypts the disk using a customer-supplied encryption key. Structure is documented below.
- Enable
Confidential boolCompute - Optional. Indicates whether this disk is using confidential compute mode.
- Guest
Os List<RestoreFeatures Workload Disk Restore Properties Guest Os Feature> - Optional. A list of features to enable in the guest operating system. Structure is documented below.
- Labels
List<Restore
Workload Disk Restore Properties Label> - Optional. Labels to apply to this disk. Structure is documented below.
- Licenses List<string>
- Optional. A list of publicly available licenses that are applicable to this backup.
- Physical
Block intSize Bytes - Optional. Physical block size of the persistent disk, in bytes.
- Provisioned
Iops int - Optional. Indicates how many IOPS to provision for the disk.
- Provisioned
Throughput int - Optional. Indicates how much throughput to provision for the disk.
-
List<Restore
Workload Disk Restore Properties Resource Manager Tag> - Optional. Resource manager tags to be bound to the disk. Structure is documented below.
- Resource
Policies List<string> - Optional. Resource policies applied to this disk.
- Storage
Pool string - Optional. The storage pool in which the new disk is created.
- Name string
- Required. Name of the disk.
- Size
Gb int - Required. The size of the disk in GB.
- Type string
- Required. URL of the disk type resource describing which disk type to use.
- Access
Mode string - Optional. The access mode of the disk.
Possible values are:
READ_WRITE_SINGLE,READ_WRITE_MANY,READ_ONLY_MANY. - Architecture string
- Optional. The architecture of the source disk.
Possible values are:
ARCHITECTURE_UNSPECIFIED,X86_64,ARM64. - Description string
- Optional. An optional description of this resource.
- Disk
Encryption RestoreKey Workload Disk Restore Properties Disk Encryption Key - Optional. Encrypts the disk using a customer-supplied encryption key. Structure is documented below.
- Enable
Confidential boolCompute - Optional. Indicates whether this disk is using confidential compute mode.
- Guest
Os []RestoreFeatures Workload Disk Restore Properties Guest Os Feature - Optional. A list of features to enable in the guest operating system. Structure is documented below.
- Labels
[]Restore
Workload Disk Restore Properties Label - Optional. Labels to apply to this disk. Structure is documented below.
- Licenses []string
- Optional. A list of publicly available licenses that are applicable to this backup.
- Physical
Block intSize Bytes - Optional. Physical block size of the persistent disk, in bytes.
- Provisioned
Iops int - Optional. Indicates how many IOPS to provision for the disk.
- Provisioned
Throughput int - Optional. Indicates how much throughput to provision for the disk.
-
[]Restore
Workload Disk Restore Properties Resource Manager Tag - Optional. Resource manager tags to be bound to the disk. Structure is documented below.
- Resource
Policies []string - Optional. Resource policies applied to this disk.
- Storage
Pool string - Optional. The storage pool in which the new disk is created.
- name String
- Required. Name of the disk.
- size
Gb Integer - Required. The size of the disk in GB.
- type String
- Required. URL of the disk type resource describing which disk type to use.
- access
Mode String - Optional. The access mode of the disk.
Possible values are:
READ_WRITE_SINGLE,READ_WRITE_MANY,READ_ONLY_MANY. - architecture String
- Optional. The architecture of the source disk.
Possible values are:
ARCHITECTURE_UNSPECIFIED,X86_64,ARM64. - description String
- Optional. An optional description of this resource.
- disk
Encryption RestoreKey Workload Disk Restore Properties Disk Encryption Key - Optional. Encrypts the disk using a customer-supplied encryption key. Structure is documented below.
- enable
Confidential BooleanCompute - Optional. Indicates whether this disk is using confidential compute mode.
- guest
Os List<RestoreFeatures Workload Disk Restore Properties Guest Os Feature> - Optional. A list of features to enable in the guest operating system. Structure is documented below.
- labels
List<Restore
Workload Disk Restore Properties Label> - Optional. Labels to apply to this disk. Structure is documented below.
- licenses List<String>
- Optional. A list of publicly available licenses that are applicable to this backup.
- physical
Block IntegerSize Bytes - Optional. Physical block size of the persistent disk, in bytes.
- provisioned
Iops Integer - Optional. Indicates how many IOPS to provision for the disk.
- provisioned
Throughput Integer - Optional. Indicates how much throughput to provision for the disk.
-
List<Restore
Workload Disk Restore Properties Resource Manager Tag> - Optional. Resource manager tags to be bound to the disk. Structure is documented below.
- resource
Policies List<String> - Optional. Resource policies applied to this disk.
- storage
Pool String - Optional. The storage pool in which the new disk is created.
- name string
- Required. Name of the disk.
- size
Gb number - Required. The size of the disk in GB.
- type string
- Required. URL of the disk type resource describing which disk type to use.
- access
Mode string - Optional. The access mode of the disk.
Possible values are:
READ_WRITE_SINGLE,READ_WRITE_MANY,READ_ONLY_MANY. - architecture string
- Optional. The architecture of the source disk.
Possible values are:
ARCHITECTURE_UNSPECIFIED,X86_64,ARM64. - description string
- Optional. An optional description of this resource.
- disk
Encryption RestoreKey Workload Disk Restore Properties Disk Encryption Key - Optional. Encrypts the disk using a customer-supplied encryption key. Structure is documented below.
- enable
Confidential booleanCompute - Optional. Indicates whether this disk is using confidential compute mode.
- guest
Os RestoreFeatures Workload Disk Restore Properties Guest Os Feature[] - Optional. A list of features to enable in the guest operating system. Structure is documented below.
- labels
Restore
Workload Disk Restore Properties Label[] - Optional. Labels to apply to this disk. Structure is documented below.
- licenses string[]
- Optional. A list of publicly available licenses that are applicable to this backup.
- physical
Block numberSize Bytes - Optional. Physical block size of the persistent disk, in bytes.
- provisioned
Iops number - Optional. Indicates how many IOPS to provision for the disk.
- provisioned
Throughput number - Optional. Indicates how much throughput to provision for the disk.
-
Restore
Workload Disk Restore Properties Resource Manager Tag[] - Optional. Resource manager tags to be bound to the disk. Structure is documented below.
- resource
Policies string[] - Optional. Resource policies applied to this disk.
- storage
Pool string - Optional. The storage pool in which the new disk is created.
- name str
- Required. Name of the disk.
- size_
gb int - Required. The size of the disk in GB.
- type str
- Required. URL of the disk type resource describing which disk type to use.
- access_
mode str - Optional. The access mode of the disk.
Possible values are:
READ_WRITE_SINGLE,READ_WRITE_MANY,READ_ONLY_MANY. - architecture str
- Optional. The architecture of the source disk.
Possible values are:
ARCHITECTURE_UNSPECIFIED,X86_64,ARM64. - description str
- Optional. An optional description of this resource.
- disk_
encryption_ Restorekey Workload Disk Restore Properties Disk Encryption Key - Optional. Encrypts the disk using a customer-supplied encryption key. Structure is documented below.
- enable_
confidential_ boolcompute - Optional. Indicates whether this disk is using confidential compute mode.
- guest_
os_ Sequence[Restorefeatures Workload Disk Restore Properties Guest Os Feature] - Optional. A list of features to enable in the guest operating system. Structure is documented below.
- labels
Sequence[Restore
Workload Disk Restore Properties Label] - Optional. Labels to apply to this disk. Structure is documented below.
- licenses Sequence[str]
- Optional. A list of publicly available licenses that are applicable to this backup.
- physical_
block_ intsize_ bytes - Optional. Physical block size of the persistent disk, in bytes.
- provisioned_
iops int - Optional. Indicates how many IOPS to provision for the disk.
- provisioned_
throughput int - Optional. Indicates how much throughput to provision for the disk.
-
Sequence[Restore
Workload Disk Restore Properties Resource Manager Tag] - Optional. Resource manager tags to be bound to the disk. Structure is documented below.
- resource_
policies Sequence[str] - Optional. Resource policies applied to this disk.
- storage_
pool str - Optional. The storage pool in which the new disk is created.
- name String
- Required. Name of the disk.
- size
Gb Number - Required. The size of the disk in GB.
- type String
- Required. URL of the disk type resource describing which disk type to use.
- access
Mode String - Optional. The access mode of the disk.
Possible values are:
READ_WRITE_SINGLE,READ_WRITE_MANY,READ_ONLY_MANY. - architecture String
- Optional. The architecture of the source disk.
Possible values are:
ARCHITECTURE_UNSPECIFIED,X86_64,ARM64. - description String
- Optional. An optional description of this resource.
- disk
Encryption Property MapKey - Optional. Encrypts the disk using a customer-supplied encryption key. Structure is documented below.
- enable
Confidential BooleanCompute - Optional. Indicates whether this disk is using confidential compute mode.
- guest
Os List<Property Map>Features - Optional. A list of features to enable in the guest operating system. Structure is documented below.
- labels List<Property Map>
- Optional. Labels to apply to this disk. Structure is documented below.
- licenses List<String>
- Optional. A list of publicly available licenses that are applicable to this backup.
- physical
Block NumberSize Bytes - Optional. Physical block size of the persistent disk, in bytes.
- provisioned
Iops Number - Optional. Indicates how many IOPS to provision for the disk.
- provisioned
Throughput Number - Optional. Indicates how much throughput to provision for the disk.
- List<Property Map>
- Optional. Resource manager tags to be bound to the disk. Structure is documented below.
- resource
Policies List<String> - Optional. Resource policies applied to this disk.
- storage
Pool String - Optional. The storage pool in which the new disk is created.
RestoreWorkloadDiskRestorePropertiesDiskEncryptionKey, RestoreWorkloadDiskRestorePropertiesDiskEncryptionKeyArgs
- Kms
Key stringName - (Optional)
- Kms
Key stringService Account - (Optional)
- Raw
Key string - (Optional)
- Rsa
Encrypted stringKey - (Optional)
- Kms
Key stringName - (Optional)
- Kms
Key stringService Account - (Optional)
- Raw
Key string - (Optional)
- Rsa
Encrypted stringKey - (Optional)
- kms
Key StringName - (Optional)
- kms
Key StringService Account - (Optional)
- raw
Key String - (Optional)
- rsa
Encrypted StringKey - (Optional)
- kms
Key stringName - (Optional)
- kms
Key stringService Account - (Optional)
- raw
Key string - (Optional)
- rsa
Encrypted stringKey - (Optional)
- kms_
key_ strname - (Optional)
- kms_
key_ strservice_ account - (Optional)
- raw_
key str - (Optional)
- rsa_
encrypted_ strkey - (Optional)
- kms
Key StringName - (Optional)
- kms
Key StringService Account - (Optional)
- raw
Key String - (Optional)
- rsa
Encrypted StringKey - (Optional)
RestoreWorkloadDiskRestorePropertiesGuestOsFeature, RestoreWorkloadDiskRestorePropertiesGuestOsFeatureArgs
- Type string
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- Type string
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type String
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type string
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type str
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
- type String
- Possible values are:
FEATURE_TYPE_UNSPECIFIED,VIRTIO_SCSI_MULTIQUEUE,WINDOWS,MULTI_IP_SUBNET,UEFI_COMPATIBLE,SECURE_BOOT,GVNIC,SEV_CAPABLE,BARE_METAL_LINUX_COMPATIBLE,SUSPEND_RESUME_COMPATIBLE,SEV_LIVE_MIGRATABLE,SEV_SNP_CAPABLE,TDX_CAPABLE,IDPF,SEV_LIVE_MIGRATABLE_V2.
RestoreWorkloadDiskRestorePropertiesLabel, RestoreWorkloadDiskRestorePropertiesLabelArgs
RestoreWorkloadDiskRestorePropertiesResourceManagerTag, RestoreWorkloadDiskRestorePropertiesResourceManagerTagArgs
RestoreWorkloadDiskTargetEnvironment, RestoreWorkloadDiskTargetEnvironmentArgs
RestoreWorkloadRegionDiskTargetEnvironment, RestoreWorkloadRegionDiskTargetEnvironmentArgs
- Project string
- Required. Target project for the disk.
- Region string
- Required. Target region for the disk.
- Replica
Zones List<string> - Required. Target URLs of the replica zones for the disk.
- Project string
- Required. Target project for the disk.
- Region string
- Required. Target region for the disk.
- Replica
Zones []string - Required. Target URLs of the replica zones for the disk.
- project String
- Required. Target project for the disk.
- region String
- Required. Target region for the disk.
- replica
Zones List<String> - Required. Target URLs of the replica zones for the disk.
- project string
- Required. Target project for the disk.
- region string
- Required. Target region for the disk.
- replica
Zones string[] - Required. Target URLs of the replica zones for the disk.
- project str
- Required. Target project for the disk.
- region str
- Required. Target region for the disk.
- replica_
zones Sequence[str] - Required. Target URLs of the replica zones for the disk.
- project String
- Required. Target project for the disk.
- region String
- Required. Target region for the disk.
- replica
Zones List<String> - Required. Target URLs of the replica zones for the disk.
RestoreWorkloadTargetResource, RestoreWorkloadTargetResourceArgs
- Gcp
Resource RestoreWorkload Target Resource Gcp Resource - Output only. Details of the native Google Cloud resource created as part of restore. Structure is documented below.
- Gcp
Resource RestoreWorkload Target Resource Gcp Resource - Output only. Details of the native Google Cloud resource created as part of restore. Structure is documented below.
- gcp
Resource RestoreWorkload Target Resource Gcp Resource - Output only. Details of the native Google Cloud resource created as part of restore. Structure is documented below.
- gcp
Resource RestoreWorkload Target Resource Gcp Resource - Output only. Details of the native Google Cloud resource created as part of restore. Structure is documented below.
- gcp_
resource RestoreWorkload Target Resource Gcp Resource - Output only. Details of the native Google Cloud resource created as part of restore. Structure is documented below.
- gcp
Resource Property Map - Output only. Details of the native Google Cloud resource created as part of restore. Structure is documented below.
RestoreWorkloadTargetResourceGcpResource, RestoreWorkloadTargetResourceGcpResourceArgs
- Gcp
Resourcename string - Output only. Name of the Google Cloud resource.
- Location string
- Required. The location for the backup vault.
- Type string
- Output only. Type of the resource.
- Gcp
Resourcename string - Output only. Name of the Google Cloud resource.
- Location string
- Required. The location for the backup vault.
- Type string
- Output only. Type of the resource.
- gcp
Resourcename String - Output only. Name of the Google Cloud resource.
- location String
- Required. The location for the backup vault.
- type String
- Output only. Type of the resource.
- gcp
Resourcename string - Output only. Name of the Google Cloud resource.
- location string
- Required. The location for the backup vault.
- type string
- Output only. Type of the resource.
- gcp_
resourcename str - Output only. Name of the Google Cloud resource.
- location str
- Required. The location for the backup vault.
- type str
- Output only. Type of the resource.
- gcp
Resourcename String - Output only. Name of the Google Cloud resource.
- location String
- Required. The location for the backup vault.
- type String
- Output only. Type of the resource.
Import
RestoreWorkload can be imported using any of these accepted formats:
/{{name}}{{name}}
When using the pulumi import command, RestoreWorkload can be imported using one of the formats above. For example:
$ pulumi import gcp:backupdisasterrecovery/restoreWorkload:RestoreWorkload default /{{name}}
$ pulumi import gcp:backupdisasterrecovery/restoreWorkload:RestoreWorkload 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.
