SDK reference / Models / Network
PortForward
Kind: class
Namespace: Egulu.Sdk.Models.Network
A port forward on the cell's IPv4 (W25; ADR-0613 item 1): connections to externalAddress:externalPort reach targetPort of a VMof this project, with the client's own address, so the network's firewall policies decide whether they are let in. The cell giveseach project one block of 100 ports (20000 to 29999) and each forward the first free port of the block for its protocol. Immutable:delete it and create another.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Network.PortForward_annotations? | annotations | At most 256 KiB in all; never policy input. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
ExternalAddress | string? | externalAddress | The cell's IPv4 address the forward listens on. |
ExternalPort | int? | externalPort | The port the cell gave the forward, inside the project's block. |
Labels | Models.Network.PortForward_labels? | labels | At most 64. |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
Network | string? | network | The network ID or resource name, in the same project and location, the target VM is attached to. |
Protocol | Models.Network.ForwardProtocol? | protocol | TCP or UDP. |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
State | Models.Network.NetworkState? | state | Current lifecycle state. |
StateDetails | string? | stateDetails | Why the forward reaches no VM, when it does not (for example, the instance is not attached to the network). |
TargetInstance | string? | targetInstance | The target VM's instance ID in the same project and location. |
TargetPort | int? | targetPort | The VM's port, 1 to 65535. |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |