import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Returns the specified Instance resource. */ export declare function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetInstanceArgs { instance: string; project?: string; view?: string; zone: string; } export interface GetInstanceResult { /** * Controls for advanced machine-related behavior features. */ readonly advancedMachineFeatures: outputs.compute.alpha.AdvancedMachineFeaturesResponse; /** * Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding . */ readonly canIpForward: boolean; readonly confidentialInstanceConfig: outputs.compute.alpha.ConfidentialInstanceConfigResponse; /** * The CPU platform used by this instance. */ readonly cpuPlatform: string; /** * Creation timestamp in RFC3339 text format. */ readonly creationTimestamp: string; /** * Whether the resource should be protected against deletion. */ readonly deletionProtection: boolean; /** * An optional description of this resource. Provide this property when you create the resource. */ readonly description: string; /** * Array of disks associated with this instance. Persistent disks must be created before you can assign them. */ readonly disks: outputs.compute.alpha.AttachedDiskResponse[]; /** * Enables display device for the instance. */ readonly displayDevice: outputs.compute.alpha.DisplayDeviceResponse; /** * Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature. */ readonly eraseWindowsVssSignature: boolean; /** * Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance. */ readonly fingerprint: string; /** * A list of the type and count of accelerator cards attached to the instance. */ readonly guestAccelerators: outputs.compute.alpha.AcceleratorConfigResponse[]; /** * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. */ readonly hostname: string; /** * Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation. */ readonly instanceEncryptionKey: outputs.compute.alpha.CustomerEncryptionKeyResponse; /** * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. */ readonly keyRevocationActionType: string; /** * Type of the resource. Always compute#instance for instances. */ readonly kind: string; /** * A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance. */ readonly labelFingerprint: string; /** * Labels to apply to this instance. These can be later modified by the setLabels method. */ readonly labels: { [key: string]: string; }; /** * Last start timestamp in RFC3339 text format. */ readonly lastStartTimestamp: string; /** * Last stop timestamp in RFC3339 text format. */ readonly lastStopTimestamp: string; /** * Last suspended timestamp in RFC3339 text format. */ readonly lastSuspendedTimestamp: string; /** * Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types. */ readonly machineType: string; /** * The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. */ readonly metadata: outputs.compute.alpha.MetadataResponse; /** * Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". */ readonly minCpuPlatform: string; /** * The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. */ readonly name: string; /** * An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. */ readonly networkInterfaces: outputs.compute.alpha.NetworkInterfaceResponse[]; readonly networkPerformanceConfig: outputs.compute.alpha.NetworkPerformanceConfigResponse; /** * Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. */ readonly params: outputs.compute.alpha.InstanceParamsResponse; /** * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. */ readonly partnerMetadata: { [key: string]: string; }; /** * PostKeyRevocationActionType of the instance. */ readonly postKeyRevocationActionType: string; /** * Total amount of preserved state for SUSPENDED instances. Read-only in the api. */ readonly preservedStateSizeGb: string; /** * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. */ readonly privateIpv6GoogleAccess: string; /** * Specifies the reservations that this instance can consume from. */ readonly reservationAffinity: outputs.compute.alpha.ReservationAffinityResponse; /** * Resource policies applied to this instance. */ readonly resourcePolicies: string[]; /** * Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field. */ readonly resourceStatus: outputs.compute.alpha.ResourceStatusResponse; /** * Reserved for future use. */ readonly satisfiesPzs: boolean; /** * Sets the scheduling options for this instance. */ readonly scheduling: outputs.compute.alpha.SchedulingResponse; /** * [Input Only] Secure tags to apply to this instance. These can be later modified by the update method. Maximum number of secure tags allowed is 50. */ readonly secureTags: string[]; /** * Server-defined URL for this resource. */ readonly selfLink: string; /** * Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId: string; /** * A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. */ readonly serviceAccounts: outputs.compute.alpha.ServiceAccountResponse[]; /** * Mapping of user-defined keys to specifications for service integrations. Currently only a single key-value pair is supported. */ readonly serviceIntegrationSpecs: { [key: string]: string; }; readonly shieldedInstanceConfig: outputs.compute.alpha.ShieldedInstanceConfigResponse; readonly shieldedInstanceIntegrityPolicy: outputs.compute.alpha.ShieldedInstanceIntegrityPolicyResponse; /** * Deprecating, please use shielded_instance_config. */ readonly shieldedVmConfig: outputs.compute.alpha.ShieldedVmConfigResponse; /** * Deprecating, please use shielded_instance_integrity_policy. */ readonly shieldedVmIntegrityPolicy: outputs.compute.alpha.ShieldedVmIntegrityPolicyResponse; /** * Source machine image */ readonly sourceMachineImage: string; /** * Source machine image encryption key when creating an instance from a machine image. */ readonly sourceMachineImageEncryptionKey: outputs.compute.alpha.CustomerEncryptionKeyResponse; /** * Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. */ readonly startRestricted: boolean; /** * The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. */ readonly status: string; /** * An optional, human-readable explanation of the status. */ readonly statusMessage: string; /** * Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field. */ readonly tags: outputs.compute.alpha.TagsResponse; /** * Specifies upcoming maintenance for the instance. */ readonly upcomingMaintenance: outputs.compute.alpha.UpcomingMaintenanceResponse; /** * URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. */ readonly zone: string; } /** * Returns the specified Instance resource. */ export declare function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetInstanceOutputArgs { instance: pulumi.Input; project?: pulumi.Input; view?: pulumi.Input; zone: pulumi.Input; }