Package com.ibm.cloud.is.vpc.v1.model
Class VPNGatewayConnection
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VPNGatewayConnection
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
VPNGatewayConnectionPolicyMode
,VPNGatewayConnectionStaticRouteMode
public class VPNGatewayConnection extends com.ibm.cloud.sdk.core.service.model.GenericModel
VPNGatewayConnection. Classes which extend this class: - VPNGatewayConnectionStaticRouteMode - VPNGatewayConnectionPolicyMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VPNGatewayConnection.AuthenticationMode
The authentication mode.static interface
VPNGatewayConnection.Mode
The mode of the VPN gateway.static interface
VPNGatewayConnection.ResourceType
The resource type.static interface
VPNGatewayConnection.RoutingProtocol
Routing protocols are disabled for this VPN gateway connection.static interface
VPNGatewayConnection.Status
The status of a VPN gateway connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthenticationMode()
Gets the authenticationMode.Date
getCreatedAt()
Gets the createdAt.VPNGatewayConnectionDPD
getDeadPeerDetection()
Gets the deadPeerDetection.String
getHref()
Gets the href.String
getId()
Gets the id.IKEPolicyReference
getIkePolicy()
Gets the ikePolicy.IPsecPolicyReference
getIpsecPolicy()
Gets the ipsecPolicy.List<String>
getLocalCidrs()
Gets the localCidrs.String
getMode()
Gets the mode.String
getName()
Gets the name.String
getPeerAddress()
Gets the peerAddress.List<String>
getPeerCidrs()
Gets the peerCidrs.String
getPsk()
Gets the psk.String
getResourceType()
Gets the resourceType.String
getRoutingProtocol()
Gets the routingProtocol.String
getStatus()
Gets the status.List<VPNGatewayConnectionStatusReason>
getStatusReasons()
Gets the statusReasons.List<VPNGatewayConnectionStaticRouteModeTunnel>
getTunnels()
Gets the tunnels.Boolean
isAdminStateUp()
Gets the adminStateUp.
-
-
-
Method Detail
-
isAdminStateUp
public Boolean isAdminStateUp()
Gets the adminStateUp. If set to false, the VPN gateway connection is shut down.- Returns:
- the adminStateUp
-
getAuthenticationMode
public String getAuthenticationMode()
Gets the authenticationMode. The authentication mode. Only `psk` is currently supported.- Returns:
- the authenticationMode
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that this VPN gateway connection was created.- Returns:
- the createdAt
-
getDeadPeerDetection
public VPNGatewayConnectionDPD getDeadPeerDetection()
Gets the deadPeerDetection. The Dead Peer Detection settings.- Returns:
- the deadPeerDetection
-
getHref
public String getHref()
Gets the href. The VPN connection's canonical URL.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this VPN gateway connection.- Returns:
- the id
-
getIkePolicy
public IKEPolicyReference getIkePolicy()
Gets the ikePolicy. The IKE policy. If absent, [auto-negotiation is used](https://cloud.ibm.com/docs/vpc?topic=vpc-using-vpn&interface=ui#ike-auto-negotiation-phase-1).- Returns:
- the ikePolicy
-
getIpsecPolicy
public IPsecPolicyReference getIpsecPolicy()
Gets the ipsecPolicy. The IPsec policy. If absent, [auto-negotiation is used](https://cloud.ibm.com/docs/vpc?topic=vpc-using-vpn&interface=ui#ipsec-auto-negotiation-phase-2).- Returns:
- the ipsecPolicy
-
getMode
public String getMode()
Gets the mode. The mode of the VPN gateway.- Returns:
- the mode
-
getName
public String getName()
Gets the name. The name for this VPN gateway connection. The name is unique across all connections for the VPN gateway.- Returns:
- the name
-
getPeerAddress
public String getPeerAddress()
Gets the peerAddress. The IP address of the peer VPN gateway.- Returns:
- the peerAddress
-
getPsk
public String getPsk()
Gets the psk. The pre-shared key.- Returns:
- the psk
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getStatus
public String getStatus()
Gets the status. The status of a VPN gateway connection.- Returns:
- the status
-
getStatusReasons
public List<VPNGatewayConnectionStatusReason> getStatusReasons()
Gets the statusReasons. The reasons for the current VPN gateway connection status (if any): - `cannot_authenticate_connection`: Failed to authenticate a connection because of mismatched IKE ID and PSK (check IKE ID and PSK in peer VPN configuration) - `internal_error`: Internal error (contact IBM support) - `ike_policy_mismatch`: None of the proposed IKE crypto suites was acceptable (check the IKE policies on both sides of the VPN) - `ike_v1_id_local_remote_cidr_mismatch`: Invalid IKE ID or mismatched local CIDRs and remote CIDRs in IKE V1 (check the IKE ID or the local CIDRs and remote CIDRs in IKE V1 configuration) - `ike_v2_local_remote_cidr_mismatch`: Mismatched local CIDRs and remote CIDRs in IKE V2 (check the local CIDRs and remote CIDRs in IKE V2 configuration) - `ipsec_policy_mismatch`: None of the proposed IPsec crypto suites was acceptable (check the IPsec policies on both sides of the VPN) - `peer_not_responding`: No response from peer (check network ACL configuration, peer availability, and on-premise firewall configuration) The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.- Returns:
- the statusReasons
-
getRoutingProtocol
public String getRoutingProtocol()
Gets the routingProtocol. Routing protocols are disabled for this VPN gateway connection.- Returns:
- the routingProtocol
-
getTunnels
public List<VPNGatewayConnectionStaticRouteModeTunnel> getTunnels()
Gets the tunnels. The VPN tunnel configuration for this VPN gateway connection (in static route mode).- Returns:
- the tunnels
-
getLocalCidrs
public List<String> getLocalCidrs()
Gets the localCidrs. The local CIDRs for this resource.- Returns:
- the localCidrs
-
-