Show / Hide Table of Contents

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.

Inheritance
System.Object
Resource
CustomResource
IpAttachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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()
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public class IpAttachment : CustomResource

Constructors

View Source

IpAttachment(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 Source

Address

Declaration
public Output<string> Address { get; }
Property Value
Type Description
Output<System.String>
View Source

AddressFamily

Address family as integer (4 or 6)

Declaration
public Output<int> AddressFamily { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Cidr

length of CIDR prefix of the subnet as integer

Declaration
public Output<int> Cidr { get; }
Property Value
Type Description
Output<System.Int32>
View Source

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>
View Source

DeviceId

ID of device to which to assign the subnet

Declaration
public Output<string> DeviceId { get; }
Property Value
Type Description
Output<System.String>
View Source

Gateway

IP address of gateway for the subnet

Declaration
public Output<string> Gateway { get; }
Property Value
Type Description
Output<System.String>
View Source

Global

Declaration
public Output<bool> Global { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Manageable

Declaration
public Output<bool> Manageable { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Management

Declaration
public Output<bool> Management { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

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>
View Source

Network

Subnet network address

Declaration
public Output<string> Network { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.