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 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)
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;
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getComputeInstance:getComputeInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Instance
Id string - The ID of a specific instance.
- Name string
- Name of the instance.
- Placement
Policy GetCompute Instance Placement Policy
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Instance
Id string - The ID of a specific instance.
- Name string
- Name of the instance.
- Placement
Policy GetCompute Instance Placement Policy
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instance
Id String - The ID of a specific instance.
- name String
- Name of the instance.
- placement
Policy GetCompute Instance Placement Policy
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instance
Id string - The ID of a specific instance.
- name string
- Name of the instance.
- placement
Policy 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
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- instance
Id String - The ID of a specific instance.
- name String
- Name of the instance.
- placement
Policy Property Map
getComputeInstance Result
The following output properties are available:
- Boot
Disks List<GetCompute Instance Boot Disk> - The boot disk for the instance. Structure is documented below.
- Created
At string - Instance creation timestamp.
- Description string
- Description of the boot disk.
- Folder
Id string - Fqdn string
- DNS record FQDN.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id 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.
- Network
Acceleration stringType - Type of network acceleration. The default is
standard
. Values:standard
,software_accelerated
- Network
Interfaces 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.
- Platform
Id string - Type of virtual machine to create. Default is 'standard-v1'.
- Resources
List<Get
Compute Instance Resource> - Scheduling
Policies List<GetCompute Instance Scheduling Policy> - Scheduling policy configuration. The structure is documented below.
- Secondary
Disks List<GetCompute Instance Secondary Disk> - List of secondary disks attached to the instance. Structure is documented below.
- Service
Account 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.
- Placement
Policy GetCompute Instance Placement Policy
- Boot
Disks []GetCompute Instance Boot Disk - The boot disk for the instance. Structure is documented below.
- Created
At string - Instance creation timestamp.
- Description string
- Description of the boot disk.
- Folder
Id string - Fqdn string
- DNS record FQDN.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id 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.
- Network
Acceleration stringType - Type of network acceleration. The default is
standard
. Values:standard
,software_accelerated
- Network
Interfaces []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 string - Type of virtual machine to create. Default is 'standard-v1'.
- Resources
[]Get
Compute Instance Resource - Scheduling
Policies []GetCompute Instance Scheduling Policy - Scheduling policy configuration. The structure is documented below.
- Secondary
Disks []GetCompute Instance Secondary Disk - List of secondary disks attached to the instance. Structure is documented below.
- Service
Account 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.
- Placement
Policy GetCompute Instance Placement Policy
- boot
Disks List<GetCompute Instance Boot Disk> - The boot disk for the instance. Structure is documented below.
- created
At String - Instance creation timestamp.
- description String
- Description of the boot disk.
- folder
Id String - fqdn String
- DNS record FQDN.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id 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.
- network
Acceleration StringType - Type of network acceleration. The default is
standard
. Values:standard
,software_accelerated
- network
Interfaces 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.
- platform
Id String - Type of virtual machine to create. Default is 'standard-v1'.
- resources
List<Get
Compute Instance Resource> - scheduling
Policies List<GetCompute Instance Scheduling Policy> - Scheduling policy configuration. The structure is documented below.
- secondary
Disks List<GetCompute Instance Secondary Disk> - List of secondary disks attached to the instance. Structure is documented below.
- service
Account 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.
- placement
Policy GetCompute Instance Placement Policy
- boot
Disks GetCompute Instance Boot Disk[] - The boot disk for the instance. Structure is documented below.
- created
At string - Instance creation timestamp.
- description string
- Description of the boot disk.
- folder
Id string - fqdn string
- DNS record FQDN.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id 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.
- network
Acceleration stringType - Type of network acceleration. The default is
standard
. Values:standard
,software_accelerated
- network
Interfaces 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 string - Type of virtual machine to create. Default is 'standard-v1'.
- resources
Get
Compute Instance Resource[] - scheduling
Policies GetCompute Instance Scheduling Policy[] - Scheduling policy configuration. The structure is documented below.
- secondary
Disks GetCompute Instance Secondary Disk[] - List of secondary disks attached to the instance. Structure is documented below.
- service
Account 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.
- placement
Policy 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[Get
Compute 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
- boot
Disks List<Property Map> - The boot disk for the instance. Structure is documented below.
- created
At String - Instance creation timestamp.
- description String
- Description of the boot disk.
- folder
Id String - fqdn String
- DNS record FQDN.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id 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.
- network
Acceleration StringType - Type of network acceleration. The default is
standard
. Values:standard
,software_accelerated
- network
Interfaces 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.
- platform
Id String - Type of virtual machine to create. Default is 'standard-v1'.
- resources List<Property Map>
- scheduling
Policies List<Property Map> - Scheduling policy configuration. The structure is documented below.
- secondary
Disks List<Property Map> - List of secondary disks attached to the instance. Structure is documented below.
- service
Account 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.
- placement
Policy Property Map
Supporting Types
GetComputeInstanceBootDisk
- Auto
Delete bool - Specifies whether the disk is auto-deleted when the instance is deleted.
- Device
Name string - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- Disk
Id string - ID of the disk that is attached to the instance.
- Initialize
Params 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_WRITE
mode.
- Auto
Delete bool - Specifies whether the disk is auto-deleted when the instance is deleted.
- Device
Name string - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- Disk
Id string - ID of the disk that is attached to the instance.
- Initialize
Params []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_WRITE
mode.
- auto
Delete Boolean - Specifies whether the disk is auto-deleted when the instance is deleted.
- device
Name String - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk
Id String - ID of the disk that is attached to the instance.
- initialize
Params 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_WRITE
mode.
- auto
Delete boolean - Specifies whether the disk is auto-deleted when the instance is deleted.
- device
Name string - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk
Id string - ID of the disk that is attached to the instance.
- initialize
Params 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_WRITE
mode.
- 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_WRITE
mode.
- auto
Delete Boolean - Specifies whether the disk is auto-deleted when the instance is deleted.
- device
Name String - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk
Id String - ID of the disk that is attached to the instance.
- initialize
Params 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_WRITE
mode.
GetComputeInstanceBootDiskInitializeParam
- Block
Size int - The block size of the disk in bytes.
- Description string
- Description of the boot disk.
- Image
Id string - A disk image to initialize this disk from.
- Name string
- Name of the instance.
- Size int
- Size of the disk in GB.
- Snapshot
Id string - A snapshot to initialize this disk from.
- Type string
- Disk type.
- Block
Size int - The block size of the disk in bytes.
- Description string
- Description of the boot disk.
- Image
Id string - A disk image to initialize this disk from.
- Name string
- Name of the instance.
- Size int
- Size of the disk in GB.
- Snapshot
Id string - A snapshot to initialize this disk from.
- Type string
- Disk type.
- block
Size Integer - The block size of the disk in bytes.
- description String
- Description of the boot disk.
- image
Id String - A disk image to initialize this disk from.
- name String
- Name of the instance.
- size Integer
- Size of the disk in GB.
- snapshot
Id String - A snapshot to initialize this disk from.
- type String
- Disk type.
- block
Size number - The block size of the disk in bytes.
- description string
- Description of the boot disk.
- image
Id string - A disk image to initialize this disk from.
- name string
- Name of the instance.
- size number
- Size of the disk in GB.
- snapshot
Id 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.
- block
Size Number - The block size of the disk in bytes.
- description String
- Description of the boot disk.
- image
Id String - A disk image to initialize this disk from.
- name String
- Name of the instance.
- size Number
- Size of the disk in GB.
- snapshot
Id String - A snapshot to initialize this disk from.
- type String
- Disk type.
GetComputeInstanceNetworkInterface
- Dns
Records 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.
- Ip
Address 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
- Ipv6Dns
Records List<GetCompute Instance Network Interface Ipv6Dns Record> - List of configurations for creating ipv6 DNS records. The structure is documented below.
- Mac
Address 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.
- Nat
Dns List<GetRecords Compute Instance Network Interface Nat Dns Record> - List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- Nat
Ip stringAddress - Public IP address of the instance.
- Nat
Ip stringVersion - IP version for the public address.
- Security
Group List<string>Ids - Security group ids for network interface.
- Subnet
Id 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 []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 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
- Ipv6Dns
Records []GetCompute Instance Network Interface Ipv6Dns Record - List of configurations for creating ipv6 DNS records. The structure is documented below.
- Mac
Address 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.
- Nat
Dns []GetRecords Compute Instance Network Interface Nat Dns Record - List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- Nat
Ip stringAddress - Public IP address of the instance.
- Nat
Ip stringVersion - IP version for the public address.
- Security
Group []stringIds - Security group ids for network interface.
- Subnet
Id 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 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.
- ip
Address 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
- ipv6Dns
Records List<GetCompute Instance Network Interface Ipv6Dns Record> - List of configurations for creating ipv6 DNS records. The structure is documented below.
- mac
Address 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.
- nat
Dns List<GetRecords Compute Instance Network Interface Nat Dns Record> - List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- nat
Ip StringAddress - Public IP address of the instance.
- nat
Ip StringVersion - IP version for the public address.
- security
Group List<String>Ids - Security group ids for network interface.
- subnet
Id 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 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.
- ip
Address 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
- ipv6Dns
Records GetCompute Instance Network Interface Ipv6Dns Record[] - List of configurations for creating ipv6 DNS records. The structure is documented below.
- mac
Address 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.
- nat
Dns GetRecords Compute Instance Network Interface Nat Dns Record[] - List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- nat
Ip stringAddress - Public IP address of the instance.
- nat
Ip stringVersion - IP version for the public address.
- security
Group string[]Ids - Security group ids for network interface.
- subnet
Id 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.
- dns
Records 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.
- ip
Address 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
- ipv6Dns
Records List<Property Map> - List of configurations for creating ipv6 DNS records. The structure is documented below.
- mac
Address 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.
- nat
Dns List<Property Map>Records - List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
- nat
Ip StringAddress - Public IP address of the instance.
- nat
Ip StringVersion - IP version for the public address.
- security
Group List<String>Ids - Security group ids for network interface.
- subnet
Id 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
- Placement
Group stringId
- Placement
Group stringId
- placement
Group StringId
- placement
Group stringId
- placement
Group StringId
GetComputeInstanceResource
- Core
Fraction int - Cores int
- Gpus int
- Memory double
- Core
Fraction int - Cores int
- Gpus int
- Memory float64
- core
Fraction Integer - cores Integer
- gpus Integer
- memory Double
- core
Fraction number - cores number
- gpus number
- memory number
- core_
fraction int - cores int
- gpus int
- memory float
- core
Fraction 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
- Auto
Delete bool - Specifies whether the disk is auto-deleted when the instance is deleted.
- Device
Name string - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- Disk
Id 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_WRITE
mode.
- Auto
Delete bool - Specifies whether the disk is auto-deleted when the instance is deleted.
- Device
Name string - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- Disk
Id 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_WRITE
mode.
- auto
Delete Boolean - Specifies whether the disk is auto-deleted when the instance is deleted.
- device
Name String - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk
Id 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_WRITE
mode.
- auto
Delete boolean - Specifies whether the disk is auto-deleted when the instance is deleted.
- device
Name string - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk
Id 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_WRITE
mode.
- 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_WRITE
mode.
- auto
Delete Boolean - Specifies whether the disk is auto-deleted when the instance is deleted.
- device
Name String - This value can be used to reference the device from within the instance for mounting, resizing, and so on.
- disk
Id 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_WRITE
mode.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.