Class IpAttachment
Provides a resource to attach elastic IP subnets to devices.
To attach an IP subnet from a reserved block to a provisioned device, you must derive a subnet CIDR belonging to one of your reserved blocks in the same project and facility as the target device.
For example, you have reserved IPv4 address block 147.229.10.152/30, you can choose to assign either the whole block as one subnet to a device; or 2 subnets with CIDRs 147.229.10.152/31' and 147.229.10.154/31; or 4 subnets with mask prefix length 32. More about the elastic IP subnets is here.
Device and reserved block must be in the same facility.
Inherited Members
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public class IpAttachment : CustomResource
Constructors
View SourceIpAttachment(String, IpAttachmentArgs, CustomResourceOptions)
Create a IpAttachment resource with the given unique name, arguments, and options.
Declaration
public IpAttachment(string name, IpAttachmentArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| IpAttachmentArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAddress
Declaration
public Output<string> Address { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AddressFamily
Address family as integer (4 or 6)
Declaration
public Output<int> AddressFamily { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Cidr
length of CIDR prefix of the subnet as integer
Declaration
public Output<int> Cidr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
CidrNotation
CIDR notation of subnet from block reserved in the same project and facility as the device
Declaration
public Output<string> CidrNotation { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DeviceId
ID of device to which to assign the subnet
Declaration
public Output<string> DeviceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Gateway
IP address of gateway for the subnet
Declaration
public Output<string> Gateway { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Global
Declaration
public Output<bool> Global { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Manageable
Declaration
public Output<bool> Manageable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Management
Declaration
public Output<bool> Management { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Netmask
Subnet mask in decimal notation, e.g. "255.255.255.0"
Declaration
public Output<string> Netmask { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Network
Subnet network address
Declaration
public Output<string> Network { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Public
boolean flag whether subnet is reachable from the Internet
Declaration
public Output<bool> Public { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Methods
View SourceGet(String, Input<String>, IpAttachmentState, CustomResourceOptions)
Get an existing IpAttachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static IpAttachment Get(string name, Input<string> id, IpAttachmentState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| IpAttachmentState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| IpAttachment |