Class DeviceState
Inheritance
System.Object
DeviceState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Pulumi.Packet.dll
Syntax
public sealed class DeviceState : ResourceArgs
Constructors
View Source
DeviceState()
Declaration
Properties
View Source
AccessPrivateIpv4
The ipv4 private IP assigned to the device
Declaration
public Input<string> AccessPrivateIpv4 { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
AccessPublicIpv4
The ipv4 maintenance IP assigned to the device
Declaration
public Input<string> AccessPublicIpv4 { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
AccessPublicIpv6
The ipv6 maintenance IP assigned to the device
Declaration
public Input<string> AccessPublicIpv6 { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
AlwaysPxe
If true, a device with OS custom_ipxe will
continue to boot via iPXE on reboots.
Declaration
public Input<bool> AlwaysPxe { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
BillingCycle
Declaration
public Input<string> BillingCycle { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Created
The timestamp for when the device was created
Declaration
public Input<string> Created { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
DeployedFacility
The facility where the device is deployed.
Declaration
public Input<string> DeployedFacility { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Description
Description string for the device
Declaration
public Input<string> Description { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Facilities
List of facility codes with deployment preferences. Packet API will go through the list and will deploy your device to first facility with free capacity. List items must be facility codes or any (a wildcard). To find the facility code, visit Facilities API docs, set your API auth token in the top of the page and see JSON from the API response.
Declaration
public InputList<string> Facilities { get; set; }
Property Value
View Source
ForceDetachVolumes
Delete device even if it has volumes attached. Only applies for destroy action.
Declaration
public Input<bool> ForceDetachVolumes { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
HardwareReservationId
The ID of hardware reservation which this device occupies
hostname- The hostname of the device
Declaration
public Input<string> HardwareReservationId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Hostname
Declaration
public Input<string> Hostname { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
IpAddresses
A list of IP address types for the device (structure is documented below).
Declaration
public InputList<DeviceIpAddressGetArgs> IpAddresses { get; set; }
Property Value
View Source
IpxeScriptUrl
URL pointing to a hosted iPXE script. More
information is in the
Custom iPXE
doc.
Declaration
public Input<string> IpxeScriptUrl { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Locked
Whether the device is locked
Declaration
public Input<bool> Locked { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
Networks
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 at
packet_device.name.network.1
- Private IPv4 at
packet_device.name.network.2
Elastic 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:
Declaration
public InputList<DeviceNetworkGetArgs> Networks { get; set; }
Property Value
View Source
NetworkType
Declaration
public Input<string> NetworkType { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
OperatingSystem
The operating system slug. To find the slug, or visit Operating Systems API docs, set your API auth token in the top of the page and see JSON from the API response.
Declaration
public Input<string> OperatingSystem { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Plan
The device plan slug. To find the plan slug, visit Device plans API docs, set your auth token in the top of the page and see JSON from the API response.
Declaration
public Input<string> Plan { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Ports
Ports assigned to the device
Declaration
public InputList<DevicePortGetArgs> Ports { get; set; }
Property Value
View Source
ProjectId
The ID of the project in which to create the device
Declaration
public Input<string> ProjectId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ProjectSshKeyIds
Declaration
public InputList<string> ProjectSshKeyIds { get; set; }
Property Value
View Source
RootPassword
Root password to the server (disabled after 24 hours)
Declaration
public Input<string> RootPassword { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
SshKeyIds
List of IDs of SSH keys deployed in the device, can be both user and project SSH keys
Declaration
public InputList<string> SshKeyIds { get; set; }
Property Value
View Source
State
Declaration
public Input<string> State { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Storage
JSON for custom partitioning. Only usable on reserved hardware. More information in in the Custom Partitioning and RAID doc.
- Please note that the disks.partitions.size attribute must be a string, not an integer. It can be a number string, or size notation string, e.g. "4G" or "8M" (for gigabytes and megabytes).
Declaration
public Input<string> Storage { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Tags attached to the device
Declaration
public InputList<string> Tags { get; set; }
Property Value
View Source
Updated
The timestamp for the last time the device was updated
Declaration
public Input<string> Updated { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
UserData
A string of the desired User Data for the device.
Declaration
public Input<string> UserData { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
WaitForReservationDeprovision
Only used for devices in reserved hardware. If set, the deletion of this device will block until the hardware reservation is marked provisionable (about 4 minutes in August 2019).
Declaration
public Input<bool> WaitForReservationDeprovision { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|