Google Cloud (GCP) Classic
getInstance
Get information about a VM instance resource within GCE. For more information see the official documentation and API.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var appserver = Output.Create(Gcp.Compute.GetInstance.InvokeAsync(new Gcp.Compute.GetInstanceArgs
{
Name = "primary-application-server",
Zone = "us-central1-a",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupInstance(ctx, &compute.LookupInstanceArgs{
Name: pulumi.StringRef("primary-application-server"),
Zone: pulumi.StringRef("us-central1-a"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var appserver = Output.of(ComputeFunctions.getInstance(GetInstanceArgs.builder()
.name("primary-application-server")
.zone("us-central1-a")
.build()));
}
}
import pulumi
import pulumi_gcp as gcp
appserver = gcp.compute.get_instance(name="primary-application-server",
zone="us-central1-a")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const appserver = pulumi.output(gcp.compute.getInstance({
name: "primary-application-server",
zone: "us-central1-a",
}));
variables:
appserver:
Fn::Invoke:
Function: gcp:compute:getInstance
Arguments:
name: primary-application-server
zone: us-central1-a
Using getInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>
def get_instance(name: Optional[str] = None,
project: Optional[str] = None,
self_link: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
self_link: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput
> Note: This function is named LookupInstance
in the Go SDK.
public static class GetInstance
{
public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: gcp:compute/getInstance:getInstance
Arguments:
# Arguments dictionary
The following arguments are supported:
- Name string
The name of the instance. One of
name
orself_link
must be provided.- Project string
The ID of the project in which the resource belongs. If
self_link
is provided, this value is ignored. If neitherself_link
norproject
are provided, the provider project is used.- Self
Link string The self link of the instance. One of
name
orself_link
must be provided.- Zone string
The zone of the instance. If
self_link
is provided, this value is ignored. If neitherself_link
norzone
are provided, the provider zone is used.
- Name string
The name of the instance. One of
name
orself_link
must be provided.- Project string
The ID of the project in which the resource belongs. If
self_link
is provided, this value is ignored. If neitherself_link
norproject
are provided, the provider project is used.- Self
Link string The self link of the instance. One of
name
orself_link
must be provided.- Zone string
The zone of the instance. If
self_link
is provided, this value is ignored. If neitherself_link
norzone
are provided, the provider zone is used.
- name String
The name of the instance. One of
name
orself_link
must be provided.- project String
The ID of the project in which the resource belongs. If
self_link
is provided, this value is ignored. If neitherself_link
norproject
are provided, the provider project is used.- self
Link String The self link of the instance. One of
name
orself_link
must be provided.- zone String
The zone of the instance. If
self_link
is provided, this value is ignored. If neitherself_link
norzone
are provided, the provider zone is used.
- name string
The name of the instance. One of
name
orself_link
must be provided.- project string
The ID of the project in which the resource belongs. If
self_link
is provided, this value is ignored. If neitherself_link
norproject
are provided, the provider project is used.- self
Link string The self link of the instance. One of
name
orself_link
must be provided.- zone string
The zone of the instance. If
self_link
is provided, this value is ignored. If neitherself_link
norzone
are provided, the provider zone is used.
- name str
The name of the instance. One of
name
orself_link
must be provided.- project str
The ID of the project in which the resource belongs. If
self_link
is provided, this value is ignored. If neitherself_link
norproject
are provided, the provider project is used.- self_
link str The self link of the instance. One of
name
orself_link
must be provided.- zone str
The zone of the instance. If
self_link
is provided, this value is ignored. If neitherself_link
norzone
are provided, the provider zone is used.
- name String
The name of the instance. One of
name
orself_link
must be provided.- project String
The ID of the project in which the resource belongs. If
self_link
is provided, this value is ignored. If neitherself_link
norproject
are provided, the provider project is used.- self
Link String The self link of the instance. One of
name
orself_link
must be provided.- zone String
The zone of the instance. If
self_link
is provided, this value is ignored. If neitherself_link
norzone
are provided, the provider zone is used.
getInstance Result
The following output properties are available:
- Advanced
Machine List<GetFeatures Instance Advanced Machine Feature> - Allow
Stopping boolFor Update - Attached
Disks List<GetInstance Attached Disk> List of disks attached to the instance. Structure is documented below.
- Boot
Disks List<GetInstance Boot Disk> The boot disk for the instance. Structure is documented below.
- Can
Ip boolForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance List<GetConfigs Instance Confidential Instance Config> - Cpu
Platform string The CPU platform used by this instance.
- Current
Status string - Deletion
Protection bool Whether deletion protection is enabled on this instance.
- Description string
A brief description of the resource.
- Desired
Status string - Enable
Display bool - Guest
Accelerators List<GetInstance Guest Accelerator> List of the type and count of accelerator cards attached to the instance. Structure is documented below.
- Hostname string
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string The server-assigned unique identifier of this instance.
- Label
Fingerprint string The unique fingerprint of the labels.
- Labels Dictionary<string, string>
A set of key/value label pairs assigned to the instance.
- Machine
Type string The machine type to create.
- Metadata Dictionary<string, string>
Metadata key/value pairs made available within the instance.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Metadata
Startup stringScript - Min
Cpu stringPlatform The minimum CPU platform specified for the VM instance.
- Network
Interfaces List<GetInstance Network Interface> The networks attached to the instance. Structure is documented below.
- Network
Performance List<GetConfigs Instance Network Performance Config> The network performance configuration setting for the instance, if set. Structure is documented below.
- Reservation
Affinities List<GetInstance Reservation Affinity> - Resource
Policies List<string> - Schedulings
List<Get
Instance Scheduling> The scheduling strategy being used by the instance. Structure is documented below
- Scratch
Disks List<GetInstance Scratch Disk> The scratch disks attached to the instance. Structure is documented below.
- Service
Accounts List<GetInstance Service Account> The service account to attach to the instance. Structure is documented below.
- Shielded
Instance List<GetConfigs Instance Shielded Instance Config> The shielded vm config being used by the instance. Structure is documented below.
- List<string>
The list of tags attached to the instance.
- string
The unique fingerprint of the tags.
- Name string
- Project string
- Self
Link string The URI of the created resource.
- Zone string
- Advanced
Machine []GetFeatures Instance Advanced Machine Feature - Allow
Stopping boolFor Update - Attached
Disks []GetInstance Attached Disk List of disks attached to the instance. Structure is documented below.
- Boot
Disks []GetInstance Boot Disk The boot disk for the instance. Structure is documented below.
- Can
Ip boolForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance []GetConfigs Instance Confidential Instance Config - Cpu
Platform string The CPU platform used by this instance.
- Current
Status string - Deletion
Protection bool Whether deletion protection is enabled on this instance.
- Description string
A brief description of the resource.
- Desired
Status string - Enable
Display bool - Guest
Accelerators []GetInstance Guest Accelerator List of the type and count of accelerator cards attached to the instance. Structure is documented below.
- Hostname string
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string The server-assigned unique identifier of this instance.
- Label
Fingerprint string The unique fingerprint of the labels.
- Labels map[string]string
A set of key/value label pairs assigned to the instance.
- Machine
Type string The machine type to create.
- Metadata map[string]string
Metadata key/value pairs made available within the instance.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Metadata
Startup stringScript - Min
Cpu stringPlatform The minimum CPU platform specified for the VM instance.
- Network
Interfaces []GetInstance Network Interface The networks attached to the instance. Structure is documented below.
- Network
Performance []GetConfigs Instance Network Performance Config The network performance configuration setting for the instance, if set. Structure is documented below.
- Reservation
Affinities []GetInstance Reservation Affinity - Resource
Policies []string - Schedulings
[]Get
Instance Scheduling The scheduling strategy being used by the instance. Structure is documented below
- Scratch
Disks []GetInstance Scratch Disk The scratch disks attached to the instance. Structure is documented below.
- Service
Accounts []GetInstance Service Account The service account to attach to the instance. Structure is documented below.
- Shielded
Instance []GetConfigs Instance Shielded Instance Config The shielded vm config being used by the instance. Structure is documented below.
- []string
The list of tags attached to the instance.
- string
The unique fingerprint of the tags.
- Name string
- Project string
- Self
Link string The URI of the created resource.
- Zone string
- advanced
Machine List<GetFeatures Instance Advanced Machine Feature> - allow
Stopping BooleanFor Update - attached
Disks List<GetInstance Attached Disk> List of disks attached to the instance. Structure is documented below.
- boot
Disks List<GetInstance Boot Disk> The boot disk for the instance. Structure is documented below.
- can
Ip BooleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance List<GetConfigs Instance Confidential Instance Config> - cpu
Platform String The CPU platform used by this instance.
- current
Status String - deletion
Protection Boolean Whether deletion protection is enabled on this instance.
- description String
A brief description of the resource.
- desired
Status String - enable
Display Boolean - guest
Accelerators List<GetInstance Guest Accelerator> List of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname String
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String The server-assigned unique identifier of this instance.
- label
Fingerprint String The unique fingerprint of the labels.
- labels Map<String,String>
A set of key/value label pairs assigned to the instance.
- machine
Type String The machine type to create.
- metadata Map<String,String>
Metadata key/value pairs made available within the instance.
- metadata
Fingerprint String The unique fingerprint of the metadata.
- metadata
Startup StringScript - min
Cpu StringPlatform The minimum CPU platform specified for the VM instance.
- network
Interfaces List<GetInstance Network Interface> The networks attached to the instance. Structure is documented below.
- network
Performance List<GetConfigs Instance Network Performance Config> The network performance configuration setting for the instance, if set. Structure is documented below.
- reservation
Affinities List<GetInstance Reservation Affinity> - resource
Policies List<String> - schedulings
List<Get
Instance Scheduling> The scheduling strategy being used by the instance. Structure is documented below
- scratch
Disks List<GetInstance Scratch Disk> The scratch disks attached to the instance. Structure is documented below.
- service
Accounts List<GetInstance Service Account> The service account to attach to the instance. Structure is documented below.
- shielded
Instance List<GetConfigs Instance Shielded Instance Config> The shielded vm config being used by the instance. Structure is documented below.
- List<String>
The list of tags attached to the instance.
- String
The unique fingerprint of the tags.
- name String
- project String
- self
Link String The URI of the created resource.
- zone String
- advanced
Machine GetFeatures Instance Advanced Machine Feature[] - allow
Stopping booleanFor Update - attached
Disks GetInstance Attached Disk[] List of disks attached to the instance. Structure is documented below.
- boot
Disks GetInstance Boot Disk[] The boot disk for the instance. Structure is documented below.
- can
Ip booleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance GetConfigs Instance Confidential Instance Config[] - cpu
Platform string The CPU platform used by this instance.
- current
Status string - deletion
Protection boolean Whether deletion protection is enabled on this instance.
- description string
A brief description of the resource.
- desired
Status string - enable
Display boolean - guest
Accelerators GetInstance Guest Accelerator[] List of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname string
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string The server-assigned unique identifier of this instance.
- label
Fingerprint string The unique fingerprint of the labels.
- labels {[key: string]: string}
A set of key/value label pairs assigned to the instance.
- machine
Type string The machine type to create.
- metadata {[key: string]: string}
Metadata key/value pairs made available within the instance.
- metadata
Fingerprint string The unique fingerprint of the metadata.
- metadata
Startup stringScript - min
Cpu stringPlatform The minimum CPU platform specified for the VM instance.
- network
Interfaces GetInstance Network Interface[] The networks attached to the instance. Structure is documented below.
- network
Performance GetConfigs Instance Network Performance Config[] The network performance configuration setting for the instance, if set. Structure is documented below.
- reservation
Affinities GetInstance Reservation Affinity[] - resource
Policies string[] - schedulings
Get
Instance Scheduling[] The scheduling strategy being used by the instance. Structure is documented below
- scratch
Disks GetInstance Scratch Disk[] The scratch disks attached to the instance. Structure is documented below.
- service
Accounts GetInstance Service Account[] The service account to attach to the instance. Structure is documented below.
- shielded
Instance GetConfigs Instance Shielded Instance Config[] The shielded vm config being used by the instance. Structure is documented below.
- string[]
The list of tags attached to the instance.
- string
The unique fingerprint of the tags.
- name string
- project string
- self
Link string The URI of the created resource.
- zone string
- advanced_
machine_ Sequence[Getfeatures Instance Advanced Machine Feature] - allow_
stopping_ boolfor_ update - attached_
disks Sequence[GetInstance Attached Disk] List of disks attached to the instance. Structure is documented below.
- boot_
disks Sequence[GetInstance Boot Disk] The boot disk for the instance. Structure is documented below.
- can_
ip_ boolforward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential_
instance_ Sequence[Getconfigs Instance Confidential Instance Config] - cpu_
platform str The CPU platform used by this instance.
- current_
status str - deletion_
protection bool Whether deletion protection is enabled on this instance.
- description str
A brief description of the resource.
- desired_
status str - enable_
display bool - guest_
accelerators Sequence[GetInstance Guest Accelerator] List of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname str
- id str
The provider-assigned unique ID for this managed resource.
- instance_
id str The server-assigned unique identifier of this instance.
- label_
fingerprint str The unique fingerprint of the labels.
- labels Mapping[str, str]
A set of key/value label pairs assigned to the instance.
- machine_
type str The machine type to create.
- metadata Mapping[str, str]
Metadata key/value pairs made available within the instance.
- metadata_
fingerprint str The unique fingerprint of the metadata.
- metadata_
startup_ strscript - min_
cpu_ strplatform The minimum CPU platform specified for the VM instance.
- network_
interfaces Sequence[GetInstance Network Interface] The networks attached to the instance. Structure is documented below.
- network_
performance_ Sequence[Getconfigs Instance Network Performance Config] The network performance configuration setting for the instance, if set. Structure is documented below.
- reservation_
affinities Sequence[GetInstance Reservation Affinity] - resource_
policies Sequence[str] - schedulings
Sequence[Get
Instance Scheduling] The scheduling strategy being used by the instance. Structure is documented below
- scratch_
disks Sequence[GetInstance Scratch Disk] The scratch disks attached to the instance. Structure is documented below.
- service_
accounts Sequence[GetInstance Service Account] The service account to attach to the instance. Structure is documented below.
- shielded_
instance_ Sequence[Getconfigs Instance Shielded Instance Config] The shielded vm config being used by the instance. Structure is documented below.
- Sequence[str]
The list of tags attached to the instance.
- str
The unique fingerprint of the tags.
- name str
- project str
- self_
link str The URI of the created resource.
- zone str
- advanced
Machine List<Property Map>Features - allow
Stopping BooleanFor Update - attached
Disks List<Property Map> List of disks attached to the instance. Structure is documented below.
- boot
Disks List<Property Map> The boot disk for the instance. Structure is documented below.
- can
Ip BooleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance List<Property Map>Configs - cpu
Platform String The CPU platform used by this instance.
- current
Status String - deletion
Protection Boolean Whether deletion protection is enabled on this instance.
- description String
A brief description of the resource.
- desired
Status String - enable
Display Boolean - guest
Accelerators List<Property Map> List of the type and count of accelerator cards attached to the instance. Structure is documented below.
- hostname String
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String The server-assigned unique identifier of this instance.
- label
Fingerprint String The unique fingerprint of the labels.
- labels Map<String>
A set of key/value label pairs assigned to the instance.
- machine
Type String The machine type to create.
- metadata Map<String>
Metadata key/value pairs made available within the instance.
- metadata
Fingerprint String The unique fingerprint of the metadata.
- metadata
Startup StringScript - min
Cpu StringPlatform The minimum CPU platform specified for the VM instance.
- network
Interfaces List<Property Map> The networks attached to the instance. Structure is documented below.
- network
Performance List<Property Map>Configs The network performance configuration setting for the instance, if set. Structure is documented below.
- reservation
Affinities List<Property Map> - resource
Policies List<String> - schedulings List<Property Map>
The scheduling strategy being used by the instance. Structure is documented below
- scratch
Disks List<Property Map> The scratch disks attached to the instance. Structure is documented below.
- service
Accounts List<Property Map> The service account to attach to the instance. Structure is documented below.
- shielded
Instance List<Property Map>Configs The shielded vm config being used by the instance. Structure is documented below.
- List<String>
The list of tags attached to the instance.
- String
The unique fingerprint of the tags.
- name String
- project String
- self
Link String The URI of the created resource.
- zone String
Supporting Types
GetInstanceAdvancedMachineFeature
- enable
Nested BooleanVirtualization - threads
Per IntegerCore
- enable
Nested booleanVirtualization - threads
Per numberCore
- enable
Nested BooleanVirtualization - threads
Per NumberCore
GetInstanceAttachedDisk
- Device
Name string Name with which the attached disk is accessible under
/dev/disk/by-id/
- Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Kms
Key stringSelf Link - Mode string
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- Source string
The name or self_link of the disk attached to this instance.
- Device
Name string Name with which the attached disk is accessible under
/dev/disk/by-id/
- Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Kms
Key stringSelf Link - Mode string
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- Source string
The name or self_link of the disk attached to this instance.
- device
Name String Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - kms
Key StringSelf Link - mode String
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source String
The name or self_link of the disk attached to this instance.
- device
Name string Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk
Encryption stringKey Raw - disk
Encryption stringKey Sha256 - kms
Key stringSelf Link - mode string
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source string
The name or self_link of the disk attached to this instance.
- device_
name str Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk_
encryption_ strkey_ raw - disk_
encryption_ strkey_ sha256 - kms_
key_ strself_ link - mode str
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source str
The name or self_link of the disk attached to this instance.
- device
Name String Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - kms
Key StringSelf Link - mode String
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source String
The name or self_link of the disk attached to this instance.
GetInstanceBootDisk
- Auto
Delete bool Whether the disk will be auto-deleted when the instance is deleted.
- Device
Name string Name with which the attached disk is accessible under
/dev/disk/by-id/
- Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Initialize
Params List<GetInstance Boot Disk Initialize Param> Parameters with which a disk was created alongside the instance. Structure is documented below.
- Kms
Key stringSelf Link - Mode string
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- Source string
The name or self_link of the disk attached to this instance.
- Auto
Delete bool Whether the disk will be auto-deleted when the instance is deleted.
- Device
Name string Name with which the attached disk is accessible under
/dev/disk/by-id/
- Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Initialize
Params []GetInstance Boot Disk Initialize Param Parameters with which a disk was created alongside the instance. Structure is documented below.
- Kms
Key stringSelf Link - Mode string
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- Source string
The name or self_link of the disk attached to this instance.
- auto
Delete Boolean Whether the disk will be auto-deleted when the instance is deleted.
- device
Name String Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - initialize
Params List<GetInstance Boot Disk Initialize Param> Parameters with which a disk was created alongside the instance. Structure is documented below.
- kms
Key StringSelf Link - mode String
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source String
The name or self_link of the disk attached to this instance.
- auto
Delete boolean Whether the disk will be auto-deleted when the instance is deleted.
- device
Name string Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk
Encryption stringKey Raw - disk
Encryption stringKey Sha256 - initialize
Params GetInstance Boot Disk Initialize Param[] Parameters with which a disk was created alongside the instance. Structure is documented below.
- kms
Key stringSelf Link - mode string
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source string
The name or self_link of the disk attached to this instance.
- auto_
delete bool Whether the disk will be auto-deleted when the instance is deleted.
- device_
name str Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk_
encryption_ strkey_ raw - disk_
encryption_ strkey_ sha256 - initialize_
params Sequence[GetInstance Boot Disk Initialize Param] Parameters with which a disk was created alongside the instance. Structure is documented below.
- kms_
key_ strself_ link - mode str
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source str
The name or self_link of the disk attached to this instance.
- auto
Delete Boolean Whether the disk will be auto-deleted when the instance is deleted.
- device
Name String Name with which the attached disk is accessible under
/dev/disk/by-id/
- disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - initialize
Params List<Property Map> Parameters with which a disk was created alongside the instance. Structure is documented below.
- kms
Key StringSelf Link - mode String
Read/write mode for the disk. One of
"READ_ONLY"
or"READ_WRITE"
.- source String
The name or self_link of the disk attached to this instance.
GetInstanceBootDiskInitializeParam
GetInstanceConfidentialInstanceConfig
- enable
Confidential BooleanCompute
- enable
Confidential booleanCompute
- enable
Confidential BooleanCompute
GetInstanceGuestAccelerator
GetInstanceNetworkInterface
- Access
Configs List<GetInstance Network Interface Access Config> Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Structure documented below.
- Alias
Ip List<GetRanges Instance Network Interface Alias Ip Range> An array of alias IP ranges for this network interface. Structure documented below.
- Ipv6Access
Configs List<GetInstance Network Interface Ipv6Access Config> - Ipv6Access
Type string - Name string
The name of the instance. One of
name
orself_link
must be provided.- Network string
The name or self_link of the network attached to this interface.
- Network
Ip string The private IP address assigned to the instance.
- Nic
Type string - Queue
Count int - Stack
Type string - Subnetwork string
The name or self_link of the subnetwork attached to this interface.
- Subnetwork
Project string The project in which the subnetwork belongs.
- Access
Configs []GetInstance Network Interface Access Config Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Structure documented below.
- Alias
Ip []GetRanges Instance Network Interface Alias Ip Range An array of alias IP ranges for this network interface. Structure documented below.
- Ipv6Access
Configs []GetInstance Network Interface Ipv6Access Config - Ipv6Access
Type string - Name string
The name of the instance. One of
name
orself_link
must be provided.- Network string
The name or self_link of the network attached to this interface.
- Network
Ip string The private IP address assigned to the instance.
- Nic
Type string - Queue
Count int - Stack
Type string - Subnetwork string
The name or self_link of the subnetwork attached to this interface.
- Subnetwork
Project string The project in which the subnetwork belongs.
- access
Configs List<GetInstance Network Interface Access Config> Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Structure documented below.
- alias
Ip List<GetRanges Instance Network Interface Alias Ip Range> An array of alias IP ranges for this network interface. Structure documented below.
- ipv6Access
Configs List<GetInstance Network Interface Ipv6Access Config> - ipv6Access
Type String - name String
The name of the instance. One of
name
orself_link
must be provided.- network String
The name or self_link of the network attached to this interface.
- network
Ip String The private IP address assigned to the instance.
- nic
Type String - queue
Count Integer - stack
Type String - subnetwork String
The name or self_link of the subnetwork attached to this interface.
- subnetwork
Project String The project in which the subnetwork belongs.
- access
Configs GetInstance Network Interface Access Config[] Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Structure documented below.
- alias
Ip GetRanges Instance Network Interface Alias Ip Range[] An array of alias IP ranges for this network interface. Structure documented below.
- ipv6Access
Configs GetInstance Network Interface Ipv6Access Config[] - ipv6Access
Type string - name string
The name of the instance. One of
name
orself_link
must be provided.- network string
The name or self_link of the network attached to this interface.
- network
Ip string The private IP address assigned to the instance.
- nic
Type string - queue
Count number - stack
Type string - subnetwork string
The name or self_link of the subnetwork attached to this interface.
- subnetwork
Project string The project in which the subnetwork belongs.
- access_
configs Sequence[GetInstance Network Interface Access Config] Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Structure documented below.
- alias_
ip_ Sequence[Getranges Instance Network Interface Alias Ip Range] An array of alias IP ranges for this network interface. Structure documented below.
- ipv6_
access_ Sequence[Getconfigs Instance Network Interface Ipv6Access Config] - ipv6_
access_ strtype - name str
The name of the instance. One of
name
orself_link
must be provided.- network str
The name or self_link of the network attached to this interface.
- network_
ip str The private IP address assigned to the instance.
- nic_
type str - queue_
count int - stack_
type str - subnetwork str
The name or self_link of the subnetwork attached to this interface.
- subnetwork_
project str The project in which the subnetwork belongs.
- access
Configs List<Property Map> Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Structure documented below.
- alias
Ip List<Property Map>Ranges An array of alias IP ranges for this network interface. Structure documented below.
- ipv6Access
Configs List<Property Map> - ipv6Access
Type String - name String
The name of the instance. One of
name
orself_link
must be provided.- network String
The name or self_link of the network attached to this interface.
- network
Ip String The private IP address assigned to the instance.
- nic
Type String - queue
Count Number - stack
Type String - subnetwork String
The name or self_link of the subnetwork attached to this interface.
- subnetwork
Project String The project in which the subnetwork belongs.
GetInstanceNetworkInterfaceAccessConfig
- Nat
Ip string The IP address that is be 1:1 mapped to the instance's network ip.
- Network
Tier string The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- Public
Ptr stringDomain Name The DNS domain name for the public PTR record.
- Nat
Ip string The IP address that is be 1:1 mapped to the instance's network ip.
- Network
Tier string The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- Public
Ptr stringDomain Name The DNS domain name for the public PTR record.
- nat
Ip String The IP address that is be 1:1 mapped to the instance's network ip.
- network
Tier String The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public
Ptr StringDomain Name The DNS domain name for the public PTR record.
- nat
Ip string The IP address that is be 1:1 mapped to the instance's network ip.
- network
Tier string The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public
Ptr stringDomain Name The DNS domain name for the public PTR record.
- nat_
ip str The IP address that is be 1:1 mapped to the instance's network ip.
- network_
tier str The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public_
ptr_ strdomain_ name The DNS domain name for the public PTR record.
- nat
Ip String The IP address that is be 1:1 mapped to the instance's network ip.
- network
Tier String The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public
Ptr StringDomain Name The DNS domain name for the public PTR record.
GetInstanceNetworkInterfaceAliasIpRange
- Ip
Cidr stringRange The IP CIDR range represented by this alias IP range.
- Subnetwork
Range stringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- Ip
Cidr stringRange The IP CIDR range represented by this alias IP range.
- Subnetwork
Range stringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip
Cidr StringRange The IP CIDR range represented by this alias IP range.
- subnetwork
Range StringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip
Cidr stringRange The IP CIDR range represented by this alias IP range.
- subnetwork
Range stringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip_
cidr_ strrange The IP CIDR range represented by this alias IP range.
- subnetwork_
range_ strname The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
- ip
Cidr StringRange The IP CIDR range represented by this alias IP range.
- subnetwork
Range StringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
GetInstanceNetworkInterfaceIpv6AccessConfig
- External
Ipv6 string - External
Ipv6Prefix stringLength - Network
Tier string The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- Public
Ptr stringDomain Name The DNS domain name for the public PTR record.
- External
Ipv6 string - External
Ipv6Prefix stringLength - Network
Tier string The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- Public
Ptr stringDomain Name The DNS domain name for the public PTR record.
- external
Ipv6 String - external
Ipv6Prefix StringLength - network
Tier String The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public
Ptr StringDomain Name The DNS domain name for the public PTR record.
- external
Ipv6 string - external
Ipv6Prefix stringLength - network
Tier string The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public
Ptr stringDomain Name The DNS domain name for the public PTR record.
- external_
ipv6 str - external_
ipv6_ strprefix_ length - network_
tier str The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public_
ptr_ strdomain_ name The DNS domain name for the public PTR record.
- external
Ipv6 String - external
Ipv6Prefix StringLength - network
Tier String The [networking tier][network-tier] used for configuring this instance. One of
PREMIUM
orSTANDARD
.- public
Ptr StringDomain Name The DNS domain name for the public PTR record.
GetInstanceNetworkPerformanceConfig
- Total
Egress stringBandwidth Tier The egress bandwidth tier for the instance.
- Total
Egress stringBandwidth Tier The egress bandwidth tier for the instance.
- total
Egress StringBandwidth Tier The egress bandwidth tier for the instance.
- total
Egress stringBandwidth Tier The egress bandwidth tier for the instance.
- total_
egress_ strbandwidth_ tier The egress bandwidth tier for the instance.
- total
Egress StringBandwidth Tier The egress bandwidth tier for the instance.
GetInstanceReservationAffinity
- Specific
Reservations List<GetInstance Reservation Affinity Specific Reservation> - Type string
The accelerator type resource exposed to this instance. E.g.
nvidia-tesla-k80
.
- Specific
Reservations []GetInstance Reservation Affinity Specific Reservation - Type string
The accelerator type resource exposed to this instance. E.g.
nvidia-tesla-k80
.
- specific
Reservations List<GetInstance Reservation Affinity Specific Reservation> - type String
The accelerator type resource exposed to this instance. E.g.
nvidia-tesla-k80
.
- specific
Reservations GetInstance Reservation Affinity Specific Reservation[] - type string
The accelerator type resource exposed to this instance. E.g.
nvidia-tesla-k80
.
- specific_
reservations Sequence[GetInstance Reservation Affinity Specific Reservation] - type str
The accelerator type resource exposed to this instance. E.g.
nvidia-tesla-k80
.
- specific
Reservations List<Property Map> - type String
The accelerator type resource exposed to this instance. E.g.
nvidia-tesla-k80
.
GetInstanceReservationAffinitySpecificReservation
GetInstanceScheduling
- Automatic
Restart bool Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- Min
Node intCpus - Node
Affinities List<GetInstance Scheduling Node Affinity> - On
Host stringMaintenance Describes maintenance behavior for the instance. One of
MIGRATE
orTERMINATE
, for more info, read here- Preemptible bool
Whether the instance is preemptible.
- Provisioning
Model string (Beta) Describe the type of preemptible VM.
- Automatic
Restart bool Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- Min
Node intCpus - Node
Affinities []GetInstance Scheduling Node Affinity - On
Host stringMaintenance Describes maintenance behavior for the instance. One of
MIGRATE
orTERMINATE
, for more info, read here- Preemptible bool
Whether the instance is preemptible.
- Provisioning
Model string (Beta) Describe the type of preemptible VM.
- automatic
Restart Boolean Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- min
Node IntegerCpus - node
Affinities List<GetInstance Scheduling Node Affinity> - on
Host StringMaintenance Describes maintenance behavior for the instance. One of
MIGRATE
orTERMINATE
, for more info, read here- preemptible Boolean
Whether the instance is preemptible.
- provisioning
Model String (Beta) Describe the type of preemptible VM.
- automatic
Restart boolean Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- min
Node numberCpus - node
Affinities GetInstance Scheduling Node Affinity[] - on
Host stringMaintenance Describes maintenance behavior for the instance. One of
MIGRATE
orTERMINATE
, for more info, read here- preemptible boolean
Whether the instance is preemptible.
- provisioning
Model string (Beta) Describe the type of preemptible VM.
- automatic_
restart bool Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- min_
node_ intcpus - node_
affinities Sequence[GetInstance Scheduling Node Affinity] - on_
host_ strmaintenance Describes maintenance behavior for the instance. One of
MIGRATE
orTERMINATE
, for more info, read here- preemptible bool
Whether the instance is preemptible.
- provisioning_
model str (Beta) Describe the type of preemptible VM.
- automatic
Restart Boolean Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
- min
Node NumberCpus - node
Affinities List<Property Map> - on
Host StringMaintenance Describes maintenance behavior for the instance. One of
MIGRATE
orTERMINATE
, for more info, read here- preemptible Boolean
Whether the instance is preemptible.
- provisioning
Model String (Beta) Describe the type of preemptible VM.
GetInstanceSchedulingNodeAffinity
GetInstanceScratchDisk
- Interface string
The disk interface used for attaching this disk. One of
SCSI
orNVME
.
- Interface string
The disk interface used for attaching this disk. One of
SCSI
orNVME
.
- interface_ String
The disk interface used for attaching this disk. One of
SCSI
orNVME
.
- interface string
The disk interface used for attaching this disk. One of
SCSI
orNVME
.
- interface str
The disk interface used for attaching this disk. One of
SCSI
orNVME
.
- interface String
The disk interface used for attaching this disk. One of
SCSI
orNVME
.
GetInstanceServiceAccount
GetInstanceShieldedInstanceConfig
- Enable
Integrity boolMonitoring - Enable
Secure boolBoot - Enable
Vtpm bool
- Enable
Integrity boolMonitoring - Enable
Secure boolBoot - Enable
Vtpm bool
- enable
Integrity BooleanMonitoring - enable
Secure BooleanBoot - enable
Vtpm Boolean
- enable
Integrity booleanMonitoring - enable
Secure booleanBoot - enable
Vtpm boolean
- enable_
integrity_ boolmonitoring - enable_
secure_ boolboot - enable_
vtpm bool
- enable
Integrity BooleanMonitoring - enable
Secure BooleanBoot - enable
Vtpm Boolean
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.