Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getComputeInstance
Explore with Pulumi AI
Get information about a Yandex Compute instance. For more information, see the official documentation.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
    public MyStack()
    {
        var myInstance = Output.Create(Yandex.GetComputeInstance.InvokeAsync(new Yandex.GetComputeInstanceArgs
        {
            InstanceId = "some_instance_id",
        }));
        this.InstanceExternalIp = myInstance.Apply(myInstance => myInstance.NetworkInterfaces?[0]?.NatIpAddress);
    }
    [Output("instanceExternalIp")]
    public Output<string> InstanceExternalIp { get; set; }
}
package main
import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "some_instance_id"
		myInstance, err := yandex.LookupComputeInstance(ctx, &GetComputeInstanceArgs{
			InstanceId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("instanceExternalIp", myInstance.NetworkInterfaces[0].NatIpAddress)
		return nil
	})
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const myInstance = pulumi.output(yandex.getComputeInstance({
    instanceId: "some_instance_id",
}));
export const instanceExternalIp = myInstance.networkInterfaces[0].natIpAddress;
import pulumi
import pulumi_yandex as yandex
my_instance = yandex.get_compute_instance(instance_id="some_instance_id")
pulumi.export("instanceExternalIp", my_instance.network_interfaces[0].nat_ip_address)
Coming soon!
Using getComputeInstance
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 getComputeInstance(args: GetComputeInstanceArgs, opts?: InvokeOptions): Promise<GetComputeInstanceResult>
function getComputeInstanceOutput(args: GetComputeInstanceOutputArgs, opts?: InvokeOptions): Output<GetComputeInstanceResult>def get_compute_instance(folder_id: Optional[str] = None,
                         instance_id: Optional[str] = None,
                         name: Optional[str] = None,
                         placement_policy: Optional[GetComputeInstancePlacementPolicy] = None,
                         opts: Optional[InvokeOptions] = None) -> GetComputeInstanceResult
def get_compute_instance_output(folder_id: Optional[pulumi.Input[str]] = None,
                         instance_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         placement_policy: Optional[pulumi.Input[GetComputeInstancePlacementPolicyArgs]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetComputeInstanceResult]func LookupComputeInstance(ctx *Context, args *LookupComputeInstanceArgs, opts ...InvokeOption) (*LookupComputeInstanceResult, error)
func LookupComputeInstanceOutput(ctx *Context, args *LookupComputeInstanceOutputArgs, opts ...InvokeOption) LookupComputeInstanceResultOutput> Note: This function is named LookupComputeInstance in the Go SDK.
public static class GetComputeInstance 
{
    public static Task<GetComputeInstanceResult> InvokeAsync(GetComputeInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeInstanceResult> Invoke(GetComputeInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeInstanceResult> getComputeInstance(GetComputeInstanceArgs args, InvokeOptions options)
public static Output<GetComputeInstanceResult> getComputeInstance(GetComputeInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: yandex:index/getComputeInstance:getComputeInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FolderId string
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- InstanceId string
- The ID of a specific instance.
- Name string
- Name of the instance.
- PlacementPolicy GetCompute Instance Placement Policy 
- FolderId string
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- InstanceId string
- The ID of a specific instance.
- Name string
- Name of the instance.
- PlacementPolicy GetCompute Instance Placement Policy 
- folderId String
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instanceId String
- The ID of a specific instance.
- name String
- Name of the instance.
- placementPolicy GetCompute Instance Placement Policy 
- folderId string
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instanceId string
- The ID of a specific instance.
- name string
- Name of the instance.
- placementPolicy GetCompute Instance Placement Policy 
- folder_id str
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instance_id str
- The ID of a specific instance.
- name str
- Name of the instance.
- placement_policy GetCompute Instance Placement Policy 
- folderId String
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instanceId String
- The ID of a specific instance.
- name String
- Name of the instance.
- placementPolicy Property Map
getComputeInstance Result
The following output properties are available:
- BootDisks List<GetCompute Instance Boot Disk> 
- The boot disk for the instance. Structure is documented below.
- CreatedAt string
- Instance creation timestamp.
- Description string
- Description of the boot disk.
- FolderId string
- Fqdn string
- DNS record FQDN.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceId string
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the instance.
- Metadata Dictionary<string, string>
- Metadata key/value pairs to make available from within the instance.
- Name string
- Name of the boot disk.
- NetworkAcceleration stringType 
- Type of network acceleration. The default is standard. Values:standard,software_accelerated
- NetworkInterfaces List<GetCompute Instance Network Interface> 
- The networks attached to the instance. Structure is documented below.- network_interface.0.ip_address- An internal IP address of the instance, either manually or dynamically assigned.
- network_interface.0.nat_ip_address- An assigned external IP address if the instance has NAT enabled.
 
- PlatformId string
- Type of virtual machine to create. Default is 'standard-v1'.
- Resources
List<GetCompute Instance Resource> 
- SchedulingPolicies List<GetCompute Instance Scheduling Policy> 
- Scheduling policy configuration. The structure is documented below.
- SecondaryDisks List<GetCompute Instance Secondary Disk> 
- List of secondary disks attached to the instance. Structure is documented below.
- ServiceAccount stringId 
- ID of the service account authorized for this instance.
- Status string
- Status of the instance.- resources.0.memory- Memory size allocated for the instance.
- resources.0.cores- Number of CPU cores allocated for the instance.
- resources.0.core_fraction- Baseline performance for a core, set as a percent.
- resources.0.gpus- Number of GPU cores allocated for the instance.
 
- Zone string
- Availability zone where the instance resides.
- PlacementPolicy GetCompute Instance Placement Policy 
- BootDisks []GetCompute Instance Boot Disk 
- The boot disk for the instance. Structure is documented below.
- CreatedAt string
- Instance creation timestamp.
- Description string
- Description of the boot disk.
- FolderId string
- Fqdn string
- DNS record FQDN.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceId string
- Labels map[string]string
- A set of key/value label pairs assigned to the instance.
- Metadata map[string]string
- Metadata key/value pairs to make available from within the instance.
- Name string
- Name of the boot disk.
- NetworkAcceleration stringType 
- Type of network acceleration. The default is standard. Values:standard,software_accelerated
- NetworkInterfaces []GetCompute Instance Network Interface 
- The networks attached to the instance. Structure is documented below.- network_interface.0.ip_address- An internal IP address of the instance, either manually or dynamically assigned.
- network_interface.0.nat_ip_address- An assigned external IP address if the instance has NAT enabled.
 
- PlatformId string
- Type of virtual machine to create. Default is 'standard-v1'.
- Resources
[]GetCompute Instance Resource 
- SchedulingPolicies []GetCompute Instance Scheduling Policy 
- Scheduling policy configuration. The structure is documented below.
- SecondaryDisks []GetCompute Instance Secondary Disk 
- List of secondary disks attached to the instance. Structure is documented below.
- ServiceAccount stringId 
- ID of the service account authorized for this instance.
- Status string
- Status of the instance.- resources.0.memory- Memory size allocated for the instance.
- resources.0.cores- Number of CPU cores allocated for the instance.
- resources.0.core_fraction- Baseline performance for a core, set as a percent.
- resources.0.gpus- Number of GPU cores allocated for the instance.
 
- Zone string
- Availability zone where the instance resides.
- PlacementPolicy GetCompute Instance Placement Policy 
- bootDisks List<GetCompute Instance Boot Disk> 
- The boot disk for the instance. Structure is documented below.
- createdAt String
- Instance creation timestamp.
- description String
- Description of the boot disk.
- folderId String
- fqdn String
- DNS record FQDN.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceId String
- labels Map<String,String>
- A set of key/value label pairs assigned to the instance.
- metadata Map<String,String>
- Metadata key/value pairs to make available from within the instance.
- name String
- Name of the boot disk.
- networkAcceleration StringType 
- Type of network acceleration. The default is standard. Values:standard,software_accelerated
- networkInterfaces List<GetCompute Instance Network Interface> 
- The networks attached to the instance. Structure is documented below.- network_interface.0.ip_address- An internal IP address of the instance, either manually or dynamically assigned.
- network_interface.0.nat_ip_address- An assigned external IP address if the instance has NAT enabled.
 
- platformId String
- Type of virtual machine to create. Default is 'standard-v1'.
- resources
List<GetCompute Instance Resource> 
- schedulingPolicies List<GetCompute Instance Scheduling Policy> 
- Scheduling policy configuration. The structure is documented below.
- secondaryDisks List<GetCompute Instance Secondary Disk> 
- List of secondary disks attached to the instance. Structure is documented below.
- serviceAccount StringId 
- ID of the service account authorized for this instance.
- status String
- Status of the instance.- resources.0.memory- Memory size allocated for the instance.
- resources.0.cores- Number of CPU cores allocated for the instance.
- resources.0.core_fraction- Baseline performance for a core, set as a percent.
- resources.0.gpus- Number of GPU cores allocated for the instance.
 
- zone String
- Availability zone where the instance resides.
- placementPolicy GetCompute Instance Placement Policy 
- bootDisks GetCompute Instance Boot Disk[] 
- The boot disk for the instance. Structure is documented below.
- createdAt string
- Instance creation timestamp.
- description string
- Description of the boot disk.
- folderId string
- fqdn string
- DNS record FQDN.
- id string
- The provider-assigned unique ID for this managed resource.
- instanceId string
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the instance.
- metadata {[key: string]: string}
- Metadata key/value pairs to make available from within the instance.
- name string
- Name of the boot disk.
- networkAcceleration stringType 
- Type of network acceleration. The default is standard. Values:standard,software_accelerated
- networkInterfaces GetCompute Instance Network Interface[] 
- The networks attached to the instance. Structure is documented below.- network_interface.0.ip_address- An internal IP address of the instance, either manually or dynamically assigned.
- network_interface.0.nat_ip_address- An assigned external IP address if the instance has NAT enabled.
 
- platformId string
- Type of virtual machine to create. Default is 'standard-v1'.
- resources
GetCompute Instance Resource[] 
- schedulingPolicies GetCompute Instance Scheduling Policy[] 
- Scheduling policy configuration. The structure is documented below.
- secondaryDisks GetCompute Instance Secondary Disk[] 
- List of secondary disks attached to the instance. Structure is documented below.
- serviceAccount stringId 
- ID of the service account authorized for this instance.
- status string
- Status of the instance.- resources.0.memory- Memory size allocated for the instance.
- resources.0.cores- Number of CPU cores allocated for the instance.
- resources.0.core_fraction- Baseline performance for a core, set as a percent.
- resources.0.gpus- Number of GPU cores allocated for the instance.
 
- zone string
- Availability zone where the instance resides.
- placementPolicy GetCompute Instance Placement Policy 
- boot_disks Sequence[GetCompute Instance Boot Disk] 
- The boot disk for the instance. Structure is documented below.
- created_at str
- Instance creation timestamp.
- description str
- Description of the boot disk.
- folder_id str
- fqdn str
- DNS record FQDN.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_id str
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the instance.
- metadata Mapping[str, str]
- Metadata key/value pairs to make available from within the instance.
- name str
- Name of the boot disk.
- network_acceleration_ strtype 
- Type of network acceleration. The default is standard. Values:standard,software_accelerated
- network_interfaces Sequence[GetCompute Instance Network Interface] 
- The networks attached to the instance. Structure is documented below.- network_interface.0.ip_address- An internal IP address of the instance, either manually or dynamically assigned.
- network_interface.0.nat_ip_address- An assigned external IP address if the instance has NAT enabled.
 
- platform_id str
- Type of virtual machine to create. Default is 'standard-v1'.
- resources
Sequence[GetCompute Instance Resource] 
- scheduling_policies Sequence[GetCompute Instance Scheduling Policy] 
- Scheduling policy configuration. The structure is documented below.
- secondary_disks Sequence[GetCompute Instance Secondary Disk] 
- List of secondary disks attached to the instance. Structure is documented below.
- service_account_ strid 
- ID of the service account authorized for this instance.
- status str
- Status of the instance.- resources.0.memory- Memory size allocated for the instance.
- resources.0.cores- Number of CPU cores allocated for the instance.
- resources.0.core_fraction- Baseline performance for a core, set as a percent.
- resources.0.gpus- Number of GPU cores allocated for the instance.
 
- zone str
- Availability zone where the instance resides.
- placement_policy GetCompute Instance Placement Policy 
- bootDisks List<Property Map>
- The boot disk for the instance. Structure is documented below.
- createdAt String
- Instance creation timestamp.
- description String
- Description of the boot disk.
- folderId String
- fqdn String
- DNS record FQDN.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceId String
- labels Map<String>
- A set of key/value label pairs assigned to the instance.
- metadata Map<String>
- Metadata key/value pairs to make available from within the instance.
- name String
- Name of the boot disk.
- networkAcceleration StringType 
- Type of network acceleration. The default is standard. Values:standard,software_accelerated
- networkInterfaces List<Property Map>
- The networks attached to the instance. Structure is documented below.- network_interface.0.ip_address- An internal IP address of the instance, either manually or dynamically assigned.
- network_interface.0.nat_ip_address- An assigned external IP address if the instance has NAT enabled.
 
- platformId String
- Type of virtual machine to create. Default is 'standard-v1'.
- resources List<Property Map>
- schedulingPolicies List<Property Map>
- Scheduling policy configuration. The structure is documented below.
- secondaryDisks List<Property Map>
- List of secondary disks attached to the instance. Structure is documented below.
- serviceAccount StringId 
- ID of the service account authorized for this instance.
- status String
- Status of the instance.- resources.0.memory- Memory size allocated for the instance.
- resources.0.cores- Number of CPU cores allocated for the instance.
- resources.0.core_fraction- Baseline performance for a core, set as a percent.
- resources.0.gpus- Number of GPU cores allocated for the instance.
 
- zone String
- Availability zone where the instance resides.
- placementPolicy Property Map
Supporting Types
GetComputeInstanceBootDisk    
- AutoDelete bool
- Specifies whether the disk is auto-deleted when the instance is deleted.
- DeviceName string
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- DiskId string
- ID of the disk that is attached to the instance.
- InitializeParams List<GetCompute Instance Boot Disk Initialize Param> 
- Parameters used for creating a disk alongside the instance. The structure is documented below.
- Mode string
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- AutoDelete bool
- Specifies whether the disk is auto-deleted when the instance is deleted.
- DeviceName string
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- DiskId string
- ID of the disk that is attached to the instance.
- InitializeParams []GetCompute Instance Boot Disk Initialize Param 
- Parameters used for creating a disk alongside the instance. The structure is documented below.
- Mode string
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- autoDelete Boolean
- Specifies whether the disk is auto-deleted when the instance is deleted.
- deviceName String
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- diskId String
- ID of the disk that is attached to the instance.
- initializeParams List<GetCompute Instance Boot Disk Initialize Param> 
- Parameters used for creating a disk alongside the instance. The structure is documented below.
- mode String
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- autoDelete boolean
- Specifies whether the disk is auto-deleted when the instance is deleted.
- deviceName string
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- diskId string
- ID of the disk that is attached to the instance.
- initializeParams GetCompute Instance Boot Disk Initialize Param[] 
- Parameters used for creating a disk alongside the instance. The structure is documented below.
- mode string
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- auto_delete bool
- Specifies whether the disk is auto-deleted when the instance is deleted.
- device_name str
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk_id str
- ID of the disk that is attached to the instance.
- initialize_params Sequence[GetCompute Instance Boot Disk Initialize Param] 
- Parameters used for creating a disk alongside the instance. The structure is documented below.
- mode str
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- autoDelete Boolean
- Specifies whether the disk is auto-deleted when the instance is deleted.
- deviceName String
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- diskId String
- ID of the disk that is attached to the instance.
- initializeParams List<Property Map>
- Parameters used for creating a disk alongside the instance. The structure is documented below.
- mode String
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
GetComputeInstanceBootDiskInitializeParam      
- BlockSize int
- The block size of the disk in bytes.
- Description string
- Description of the boot disk.
- ImageId string
- A disk image to initialize this disk from.
- Name string
- Name of the instance.
- Size int
- Size of the disk in GB.
- SnapshotId string
- A snapshot to initialize this disk from.
- Type string
- Disk type.
- BlockSize int
- The block size of the disk in bytes.
- Description string
- Description of the boot disk.
- ImageId string
- A disk image to initialize this disk from.
- Name string
- Name of the instance.
- Size int
- Size of the disk in GB.
- SnapshotId string
- A snapshot to initialize this disk from.
- Type string
- Disk type.
- blockSize Integer
- The block size of the disk in bytes.
- description String
- Description of the boot disk.
- imageId String
- A disk image to initialize this disk from.
- name String
- Name of the instance.
- size Integer
- Size of the disk in GB.
- snapshotId String
- A snapshot to initialize this disk from.
- type String
- Disk type.
- blockSize number
- The block size of the disk in bytes.
- description string
- Description of the boot disk.
- imageId string
- A disk image to initialize this disk from.
- name string
- Name of the instance.
- size number
- Size of the disk in GB.
- snapshotId string
- A snapshot to initialize this disk from.
- type string
- Disk type.
- block_size int
- The block size of the disk in bytes.
- description str
- Description of the boot disk.
- image_id str
- A disk image to initialize this disk from.
- name str
- Name of the instance.
- size int
- Size of the disk in GB.
- snapshot_id str
- A snapshot to initialize this disk from.
- type str
- Disk type.
- blockSize Number
- The block size of the disk in bytes.
- description String
- Description of the boot disk.
- imageId String
- A disk image to initialize this disk from.
- name String
- Name of the instance.
- size Number
- Size of the disk in GB.
- snapshotId String
- A snapshot to initialize this disk from.
- type String
- Disk type.
GetComputeInstanceNetworkInterface    
- DnsRecords List<GetCompute Instance Network Interface Dns Record> 
- List of configurations for creating ipv4 DNS records. The structure is documented below.
- Index int
- The index of the network interface, generated by the server.
- IpAddress string
- The assignd private IP address to the network interface.
- Ipv4 bool
- Show if IPv4 address is assigned to the network interface.
- Ipv6 bool
- Ipv6Address string
- Ipv6DnsRecords List<GetCompute Instance Network Interface Ipv6Dns Record> 
- List of configurations for creating ipv6 DNS records. The structure is documented below.
- MacAddress string
- MAC address that is assigned to the network interface.
- Nat bool
- Assigned for the instance's public address that is used to access the internet over NAT.
- NatDns List<GetRecords Compute Instance Network Interface Nat Dns Record> 
- List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- NatIp stringAddress 
- Public IP address of the instance.
- NatIp stringVersion 
- IP version for the public address.
- SecurityGroup List<string>Ids 
- Security group ids for network interface.
- SubnetId string
- ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- DnsRecords []GetCompute Instance Network Interface Dns Record 
- List of configurations for creating ipv4 DNS records. The structure is documented below.
- Index int
- The index of the network interface, generated by the server.
- IpAddress string
- The assignd private IP address to the network interface.
- Ipv4 bool
- Show if IPv4 address is assigned to the network interface.
- Ipv6 bool
- Ipv6Address string
- Ipv6DnsRecords []GetCompute Instance Network Interface Ipv6Dns Record 
- List of configurations for creating ipv6 DNS records. The structure is documented below.
- MacAddress string
- MAC address that is assigned to the network interface.
- Nat bool
- Assigned for the instance's public address that is used to access the internet over NAT.
- NatDns []GetRecords Compute Instance Network Interface Nat Dns Record 
- List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- NatIp stringAddress 
- Public IP address of the instance.
- NatIp stringVersion 
- IP version for the public address.
- SecurityGroup []stringIds 
- Security group ids for network interface.
- SubnetId string
- ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- dnsRecords List<GetCompute Instance Network Interface Dns Record> 
- List of configurations for creating ipv4 DNS records. The structure is documented below.
- index Integer
- The index of the network interface, generated by the server.
- ipAddress String
- The assignd private IP address to the network interface.
- ipv4 Boolean
- Show if IPv4 address is assigned to the network interface.
- ipv6 Boolean
- ipv6Address String
- ipv6DnsRecords List<GetCompute Instance Network Interface Ipv6Dns Record> 
- List of configurations for creating ipv6 DNS records. The structure is documented below.
- macAddress String
- MAC address that is assigned to the network interface.
- nat Boolean
- Assigned for the instance's public address that is used to access the internet over NAT.
- natDns List<GetRecords Compute Instance Network Interface Nat Dns Record> 
- List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- natIp StringAddress 
- Public IP address of the instance.
- natIp StringVersion 
- IP version for the public address.
- securityGroup List<String>Ids 
- Security group ids for network interface.
- subnetId String
- ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- dnsRecords GetCompute Instance Network Interface Dns Record[] 
- List of configurations for creating ipv4 DNS records. The structure is documented below.
- index number
- The index of the network interface, generated by the server.
- ipAddress string
- The assignd private IP address to the network interface.
- ipv4 boolean
- Show if IPv4 address is assigned to the network interface.
- ipv6 boolean
- ipv6Address string
- ipv6DnsRecords GetCompute Instance Network Interface Ipv6Dns Record[] 
- List of configurations for creating ipv6 DNS records. The structure is documented below.
- macAddress string
- MAC address that is assigned to the network interface.
- nat boolean
- Assigned for the instance's public address that is used to access the internet over NAT.
- natDns GetRecords Compute Instance Network Interface Nat Dns Record[] 
- List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- natIp stringAddress 
- Public IP address of the instance.
- natIp stringVersion 
- IP version for the public address.
- securityGroup string[]Ids 
- Security group ids for network interface.
- subnetId string
- ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- dns_records Sequence[GetCompute Instance Network Interface Dns Record] 
- List of configurations for creating ipv4 DNS records. The structure is documented below.
- index int
- The index of the network interface, generated by the server.
- ip_address str
- The assignd private IP address to the network interface.
- ipv4 bool
- Show if IPv4 address is assigned to the network interface.
- ipv6 bool
- ipv6_address str
- ipv6_dns_ Sequence[Getrecords Compute Instance Network Interface Ipv6Dns Record] 
- List of configurations for creating ipv6 DNS records. The structure is documented below.
- mac_address str
- MAC address that is assigned to the network interface.
- nat bool
- Assigned for the instance's public address that is used to access the internet over NAT.
- nat_dns_ Sequence[Getrecords Compute Instance Network Interface Nat Dns Record] 
- List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- nat_ip_ straddress 
- Public IP address of the instance.
- nat_ip_ strversion 
- IP version for the public address.
- security_group_ Sequence[str]ids 
- Security group ids for network interface.
- subnet_id str
- ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
- dnsRecords List<Property Map>
- List of configurations for creating ipv4 DNS records. The structure is documented below.
- index Number
- The index of the network interface, generated by the server.
- ipAddress String
- The assignd private IP address to the network interface.
- ipv4 Boolean
- Show if IPv4 address is assigned to the network interface.
- ipv6 Boolean
- ipv6Address String
- ipv6DnsRecords List<Property Map>
- List of configurations for creating ipv6 DNS records. The structure is documented below.
- macAddress String
- MAC address that is assigned to the network interface.
- nat Boolean
- Assigned for the instance's public address that is used to access the internet over NAT.
- natDns List<Property Map>Records 
- List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- natIp StringAddress 
- Public IP address of the instance.
- natIp StringVersion 
- IP version for the public address.
- securityGroup List<String>Ids 
- Security group ids for network interface.
- subnetId String
- ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
GetComputeInstanceNetworkInterfaceDnsRecord      
- dns_zone_ strid 
- DNS zone ID (if not set, private zone is used).
- fqdn str
- DNS record FQDN.
- ptr bool
- When set to true, also create a TR DNS record.
- ttl int
- DNS record TTL. in seconds
GetComputeInstanceNetworkInterfaceIpv6DnsRecord      
- dns_zone_ strid 
- DNS zone ID (if not set, private zone is used).
- fqdn str
- DNS record FQDN.
- ptr bool
- When set to true, also create a TR DNS record.
- ttl int
- DNS record TTL. in seconds
GetComputeInstanceNetworkInterfaceNatDnsRecord       
- dns_zone_ strid 
- DNS zone ID (if not set, private zone is used).
- fqdn str
- DNS record FQDN.
- ptr bool
- When set to true, also create a TR DNS record.
- ttl int
- DNS record TTL. in seconds
GetComputeInstancePlacementPolicy    
- PlacementGroup stringId 
- PlacementGroup stringId 
- placementGroup StringId 
- placementGroup stringId 
- placementGroup StringId 
GetComputeInstanceResource   
- CoreFraction int
- Cores int
- Gpus int
- Memory double
- CoreFraction int
- Cores int
- Gpus int
- Memory float64
- coreFraction Integer
- cores Integer
- gpus Integer
- memory Double
- coreFraction number
- cores number
- gpus number
- memory number
- core_fraction int
- cores int
- gpus int
- memory float
- coreFraction Number
- cores Number
- gpus Number
- memory Number
GetComputeInstanceSchedulingPolicy    
- Preemptible bool
- (Optional) Specifies if the instance is preemptible. Defaults to false.
- Preemptible bool
- (Optional) Specifies if the instance is preemptible. Defaults to false.
- preemptible Boolean
- (Optional) Specifies if the instance is preemptible. Defaults to false.
- preemptible boolean
- (Optional) Specifies if the instance is preemptible. Defaults to false.
- preemptible bool
- (Optional) Specifies if the instance is preemptible. Defaults to false.
- preemptible Boolean
- (Optional) Specifies if the instance is preemptible. Defaults to false.
GetComputeInstanceSecondaryDisk    
- AutoDelete bool
- Specifies whether the disk is auto-deleted when the instance is deleted.
- DeviceName string
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- DiskId string
- ID of the disk that is attached to the instance.
- Mode string
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- AutoDelete bool
- Specifies whether the disk is auto-deleted when the instance is deleted.
- DeviceName string
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- DiskId string
- ID of the disk that is attached to the instance.
- Mode string
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- autoDelete Boolean
- Specifies whether the disk is auto-deleted when the instance is deleted.
- deviceName String
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- diskId String
- ID of the disk that is attached to the instance.
- mode String
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- autoDelete boolean
- Specifies whether the disk is auto-deleted when the instance is deleted.
- deviceName string
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- diskId string
- ID of the disk that is attached to the instance.
- mode string
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- auto_delete bool
- Specifies whether the disk is auto-deleted when the instance is deleted.
- device_name str
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk_id str
- ID of the disk that is attached to the instance.
- mode str
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
- autoDelete Boolean
- Specifies whether the disk is auto-deleted when the instance is deleted.
- deviceName String
- This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- diskId String
- ID of the disk that is attached to the instance.
- mode String
- Access to the Disk resource. By default, a disk is attached in READ_WRITEmode.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.