GetDevice
Provides a Packet device datasource.
Note: All arguments including the
root_passwordanduser_datawill be stored in the raw state as plain-text. Read more about sensitive data in state.
Using GetDevice
function getDevice(args: GetDeviceArgs, opts?: InvokeOptions): Promise<GetDeviceResult>function get_device(device_id=None, hostname=None, project_id=None, opts=None)func LookupDevice(ctx *Context, args *LookupDeviceArgs, opts ...InvokeOption) (*LookupDeviceResult, error)Note: This function is named
LookupDevicein the Go SDK.
public static class GetDevice {
public static Task<GetDeviceResult> InvokeAsync(GetDeviceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetDevice Result
The following output properties are available:
- Access
Private stringIpv4 The ipv4 private IP assigned to the device
- Access
Public stringIpv4 The ipv4 management IP assigned to the device
- Access
Public stringIpv6 The ipv6 management IP assigned to the device
- Always
Pxe bool - Billing
Cycle string The billing cycle of the device (monthly or hourly)
- Description string
Description string for the device
- Device
Id string - Facility string
The facility where the device is deployed.
- Hardware
Reservation stringId The id of hardware reservation which this device occupies
- Hostname string
- Id string
The provider-assigned unique ID for this managed resource.
- Ipxe
Script stringUrl - Network
Type string L2 network type of the device, one of “layer3”, “layer2-bonded”, “layer2-individual”, “hybrid”
- Networks
List<Get
Device Network> The device’s private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: * Public IPv4 at
packet_device.name.network.0* IPv6 atpacket_device.name.network.1* Private IPv4 atpacket_device.name.network.2Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list). The fields of the network attributes are:- Operating
System string The operating system running on the device
- Plan string
The hardware config of the device
- Ports
List<Get
Device Port> Ports assigned to the device
- Project
Id string - Root
Password string Root password to the server (if still available)
- Ssh
Key List<string>Ids List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- State string
The state of the device
- Storage string
- List<string>
Tags attached to the device
- Access
Private stringIpv4 The ipv4 private IP assigned to the device
- Access
Public stringIpv4 The ipv4 management IP assigned to the device
- Access
Public stringIpv6 The ipv6 management IP assigned to the device
- Always
Pxe bool - Billing
Cycle string The billing cycle of the device (monthly or hourly)
- Description string
Description string for the device
- Device
Id string - Facility string
The facility where the device is deployed.
- Hardware
Reservation stringId The id of hardware reservation which this device occupies
- Hostname string
- Id string
The provider-assigned unique ID for this managed resource.
- Ipxe
Script stringUrl - Network
Type string L2 network type of the device, one of “layer3”, “layer2-bonded”, “layer2-individual”, “hybrid”
- Networks
[]Get
Device Network The device’s private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: * Public IPv4 at
packet_device.name.network.0* IPv6 atpacket_device.name.network.1* Private IPv4 atpacket_device.name.network.2Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list). The fields of the network attributes are:- Operating
System string The operating system running on the device
- Plan string
The hardware config of the device
- Ports
[]Get
Device Port Ports assigned to the device
- Project
Id string - Root
Password string Root password to the server (if still available)
- Ssh
Key []stringIds List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- State string
The state of the device
- Storage string
- []string
Tags attached to the device
- access
Private stringIpv4 The ipv4 private IP assigned to the device
- access
Public stringIpv4 The ipv4 management IP assigned to the device
- access
Public stringIpv6 The ipv6 management IP assigned to the device
- always
Pxe boolean - billing
Cycle string The billing cycle of the device (monthly or hourly)
- description string
Description string for the device
- device
Id string - facility string
The facility where the device is deployed.
- hardware
Reservation stringId The id of hardware reservation which this device occupies
- hostname string
- id string
The provider-assigned unique ID for this managed resource.
- ipxe
Script stringUrl - network
Type string L2 network type of the device, one of “layer3”, “layer2-bonded”, “layer2-individual”, “hybrid”
- networks
Get
Device Network[] The device’s private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: * Public IPv4 at
packet_device.name.network.0* IPv6 atpacket_device.name.network.1* Private IPv4 atpacket_device.name.network.2Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list). The fields of the network attributes are:- operating
System string The operating system running on the device
- plan string
The hardware config of the device
- ports
Get
Device Port[] Ports assigned to the device
- project
Id string - root
Password string Root password to the server (if still available)
- ssh
Key string[]Ids List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- state string
The state of the device
- storage string
- string[]
Tags attached to the device
- access_
private_ stripv4 The ipv4 private IP assigned to the device
- access_
public_ stripv4 The ipv4 management IP assigned to the device
- access_
public_ stripv6 The ipv6 management IP assigned to the device
- always_
pxe bool - billing_
cycle str The billing cycle of the device (monthly or hourly)
- description str
Description string for the device
- device_
id str - facility str
The facility where the device is deployed.
- hardware_
reservation_ strid The id of hardware reservation which this device occupies
- hostname str
- id str
The provider-assigned unique ID for this managed resource.
- ipxe_
script_ strurl - network_
type str L2 network type of the device, one of “layer3”, “layer2-bonded”, “layer2-individual”, “hybrid”
- networks
List[Get
Device Network] The device’s private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: * Public IPv4 at
packet_device.name.network.0* IPv6 atpacket_device.name.network.1* Private IPv4 atpacket_device.name.network.2Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list). The fields of the network attributes are:- operating_
system str The operating system running on the device
- plan str
The hardware config of the device
- ports
List[Get
Device Port] Ports assigned to the device
- project_
id str - root_
password str Root password to the server (if still available)
- ssh_
key_ List[str]ids List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- state str
The state of the device
- storage str
- List[str]
Tags attached to the device
Supporting Types
GetDeviceNetwork
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetDevicePort
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-packet
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
packetTerraform Provider.