public class ApiOvhRouter extends ApiOvhBase
core| Constructor and Description |
|---|
ApiOvhRouter(ApiOvhCore core) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<String> |
GET()
List available services
REST: GET /router
|
String |
serviceName_confirmTermination_POST(String serviceName,
OvhTerminationFutureUseEnum futureUse,
OvhTerminationReasonEnum reason,
String commentary,
String token)
Confirm termination of your service
REST: POST /router/{serviceName}/confirmTermination
|
OvhRouter |
serviceName_GET(String serviceName)
Get this object properties
REST: GET /router/{serviceName}
|
ArrayList<String> |
serviceName_network_GET(String serviceName)
Networks mounted on this Router
REST: GET /router/{serviceName}/network
|
OvhTask |
serviceName_network_ipNet_DELETE(String serviceName,
String ipNet)
Remove this network from your router
REST: DELETE /router/{serviceName}/network/{ipNet}
|
OvhNetwork |
serviceName_network_ipNet_GET(String serviceName,
String ipNet)
Get this object properties
REST: GET /router/{serviceName}/network/{ipNet}
|
void |
serviceName_network_ipNet_PUT(String serviceName,
String ipNet,
OvhNetwork body)
Alter this object properties
REST: PUT /router/{serviceName}/network/{ipNet}
|
OvhTask |
serviceName_network_POST(String serviceName,
Long vlanTag,
String ipNet,
String description)
Add a network to your router
REST: POST /router/{serviceName}/network
|
ArrayList<String> |
serviceName_privateLink_GET(String serviceName)
Private links set up on this router
REST: GET /router/{serviceName}/privateLink
|
OvhTask |
serviceName_privateLink_peerServiceName_DELETE(String serviceName,
String peerServiceName)
Remove an existing Private Link from your Router service
REST: DELETE /router/{serviceName}/privateLink/{peerServiceName}
|
OvhPrivateLink |
serviceName_privateLink_peerServiceName_GET(String serviceName,
String peerServiceName)
Get this object properties
REST: GET /router/{serviceName}/privateLink/{peerServiceName}
|
void |
serviceName_privateLink_peerServiceName_PUT(String serviceName,
String peerServiceName,
OvhPrivateLink body)
Alter this object properties
REST: PUT /router/{serviceName}/privateLink/{peerServiceName}
|
OvhPrivateLinkRequest |
serviceName_privateLink_peerServiceName_request_GET(String serviceName,
String peerServiceName)
Get this object properties
REST: GET /router/{serviceName}/privateLink/{peerServiceName}/request
|
String |
serviceName_privateLink_peerServiceName_request_manage_POST(String serviceName,
String peerServiceName,
OvhPrivLinkReqActionEnum action)
Accept, reject or cancel a pending request
REST: POST /router/{serviceName}/privateLink/{peerServiceName}/request/manage
|
ArrayList<String> |
serviceName_privateLink_peerServiceName_route_GET(String serviceName,
String peerServiceName)
Routes set up in a Private Link
REST: GET /router/{serviceName}/privateLink/{peerServiceName}/route
|
OvhTask |
serviceName_privateLink_peerServiceName_route_network_DELETE(String serviceName,
String peerServiceName,
String network)
Delete an existing route from your router
REST: DELETE /router/{serviceName}/privateLink/{peerServiceName}/route/{network}
|
OvhPrivateLinkRoute |
serviceName_privateLink_peerServiceName_route_network_GET(String serviceName,
String peerServiceName,
String network)
Get this object properties
REST: GET /router/{serviceName}/privateLink/{peerServiceName}/route/{network}
|
OvhTask |
serviceName_privateLink_peerServiceName_route_POST(String serviceName,
String peerServiceName,
String network)
Add a new outgoing route to your router
REST: POST /router/{serviceName}/privateLink/{peerServiceName}/route
|
String |
serviceName_privateLink_POST(String serviceName,
String peerServiceName,
String name)
Add a new Private Link to your Router service
REST: POST /router/{serviceName}/privateLink
|
OvhService |
serviceName_serviceInfos_GET(String serviceName)
Get this object properties
REST: GET /router/{serviceName}/serviceInfos
|
void |
serviceName_serviceInfos_PUT(String serviceName,
OvhService body)
Alter this object properties
REST: PUT /router/{serviceName}/serviceInfos
|
ArrayList<Long> |
serviceName_task_GET(String serviceName,
OvhTaskFunctionEnum function,
OvhTaskStatusEnum status)
Tasks for this Router
REST: GET /router/{serviceName}/task
|
OvhTask |
serviceName_task_id_GET(String serviceName,
Long id)
Get this object properties
REST: GET /router/{serviceName}/task/{id}
|
String |
serviceName_terminate_POST(String serviceName)
Terminate your service
REST: POST /router/{serviceName}/terminate
|
ArrayList<Long> |
serviceName_vpn_GET(String serviceName)
VPN associated with this Router
REST: GET /router/{serviceName}/vpn
|
OvhTask |
serviceName_vpn_id_DELETE(String serviceName,
Long id)
Delete a VPN from your router
REST: DELETE /router/{serviceName}/vpn/{id}
|
OvhVpn |
serviceName_vpn_id_GET(String serviceName,
Long id)
Get this object properties
REST: GET /router/{serviceName}/vpn/{id}
|
void |
serviceName_vpn_id_PUT(String serviceName,
Long id,
OvhVpn body)
Alter this object properties
REST: PUT /router/{serviceName}/vpn/{id}
|
OvhTask |
serviceName_vpn_id_setPsk_POST(String serviceName,
Long id,
String psk)
Change your VPN's PSK
REST: POST /router/{serviceName}/vpn/{id}/setPsk
|
OvhVpn |
serviceName_vpn_POST(String serviceName,
String psk,
String clientIp,
String serverPrivNet,
String clientPrivNet)
Add a VPN to your router
REST: POST /router/{serviceName}/vpn
|
public ApiOvhRouter(ApiOvhCore core)
public OvhService serviceName_serviceInfos_GET(String serviceName) throws IOException
serviceName - [required] The internal name of your Router offerIOExceptionpublic void serviceName_serviceInfos_PUT(String serviceName, OvhService body) throws IOException
body - [required] New object propertiesserviceName - [required] The internal name of your Router offerIOExceptionpublic OvhRouter serviceName_GET(String serviceName) throws IOException
serviceName - [required] The internal name of your Router offerIOExceptionpublic ArrayList<String> serviceName_network_GET(String serviceName) throws IOException
serviceName - [required] The internal name of your Router offerIOExceptionpublic OvhTask serviceName_network_POST(String serviceName, Long vlanTag, String ipNet, String description) throws IOException
vlanTag - [required] Vlan tag from range 1 to 4094 or NULL for untagged trafficipNet - [required] Gateway IP / CIDR Netmask, (e.g. 192.168.1.254/24)description - [required]serviceName - [required] The internal name of your Router offerIOExceptionpublic OvhNetwork serviceName_network_ipNet_GET(String serviceName, String ipNet) throws IOException
serviceName - [required] The internal name of your Router offeripNet - [required] Gateway IP / CIDR NetmaskIOExceptionpublic void serviceName_network_ipNet_PUT(String serviceName, String ipNet, OvhNetwork body) throws IOException
body - [required] New object propertiesserviceName - [required] The internal name of your Router offeripNet - [required] Gateway IP / CIDR NetmaskIOExceptionpublic OvhTask serviceName_network_ipNet_DELETE(String serviceName, String ipNet) throws IOException
serviceName - [required] The internal name of your Router offeripNet - [required] Gateway IP / CIDR NetmaskIOExceptionpublic String serviceName_confirmTermination_POST(String serviceName, OvhTerminationFutureUseEnum futureUse, OvhTerminationReasonEnum reason, String commentary, String token) throws IOException
futureUse - What next after your termination requestreason - Reason of your termination requestcommentary - Commentary about your termination requesttoken - [required] The termination token sent by mail to the admin contactserviceName - [required] The internal name of your Router offerIOExceptionpublic String serviceName_terminate_POST(String serviceName) throws IOException
serviceName - [required] The internal name of your Router offerIOExceptionpublic ArrayList<Long> serviceName_task_GET(String serviceName, OvhTaskFunctionEnum function, OvhTaskStatusEnum status) throws IOException
function - [required] Filter the value of function property (=)status - [required] Filter the value of status property (=)serviceName - [required] The internal name of your Router offerIOExceptionpublic OvhTask serviceName_task_id_GET(String serviceName, Long id) throws IOException
serviceName - [required] The internal name of your Router offerid - [required]IOExceptionpublic ArrayList<String> serviceName_privateLink_GET(String serviceName) throws IOException
serviceName - [required] The internal name of your Router offerIOExceptionpublic String serviceName_privateLink_POST(String serviceName, String peerServiceName, String name) throws IOException
peerServiceName - [required] serviceName of the router service you want to create a private link withname - [required] Your memory-friendly name for this private linkserviceName - [required] The internal name of your Router offerIOExceptionpublic OvhPrivateLinkRequest serviceName_privateLink_peerServiceName_request_GET(String serviceName, String peerServiceName) throws IOException
serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic String serviceName_privateLink_peerServiceName_request_manage_POST(String serviceName, String peerServiceName, OvhPrivLinkReqActionEnum action) throws IOException
action - [required]serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic OvhPrivateLink serviceName_privateLink_peerServiceName_GET(String serviceName, String peerServiceName) throws IOException
serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic void serviceName_privateLink_peerServiceName_PUT(String serviceName, String peerServiceName, OvhPrivateLink body) throws IOException
body - [required] New object propertiesserviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic OvhTask serviceName_privateLink_peerServiceName_DELETE(String serviceName, String peerServiceName) throws IOException
serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic ArrayList<String> serviceName_privateLink_peerServiceName_route_GET(String serviceName, String peerServiceName) throws IOException
serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic OvhTask serviceName_privateLink_peerServiceName_route_POST(String serviceName, String peerServiceName, String network) throws IOException
network - [required] Network to be routed outside your router (CIDR format, e.g. 10.1.0.0./16serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linkIOExceptionpublic OvhPrivateLinkRoute serviceName_privateLink_peerServiceName_route_network_GET(String serviceName, String peerServiceName, String network) throws IOException
serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linknetwork - [required] Network allowed to be routed outsideIOExceptionpublic OvhTask serviceName_privateLink_peerServiceName_route_network_DELETE(String serviceName, String peerServiceName, String network) throws IOException
serviceName - [required] The internal name of your Router offerpeerServiceName - [required] Service name of the other side of this linknetwork - [required] Network allowed to be routed outsideIOExceptionpublic ArrayList<Long> serviceName_vpn_GET(String serviceName) throws IOException
serviceName - [required] The internal name of your Router offerIOExceptionpublic OvhVpn serviceName_vpn_POST(String serviceName, String psk, String clientIp, String serverPrivNet, String clientPrivNet) throws IOException
psk - [required] Your PSK keyclientIp - [required] IP you will be connecting from / NULL (allow all)serverPrivNet - [required] Server's private networkclientPrivNet - [required] Client's private networkserviceName - [required] The internal name of your Router offerIOExceptionpublic OvhVpn serviceName_vpn_id_GET(String serviceName, Long id) throws IOException
serviceName - [required] The internal name of your Router offerid - [required]IOExceptionpublic void serviceName_vpn_id_PUT(String serviceName, Long id, OvhVpn body) throws IOException
body - [required] New object propertiesserviceName - [required] The internal name of your Router offerid - [required]IOExceptionpublic OvhTask serviceName_vpn_id_DELETE(String serviceName, Long id) throws IOException
serviceName - [required] The internal name of your Router offerid - [required]IOExceptionpublic OvhTask serviceName_vpn_id_setPsk_POST(String serviceName, Long id, String psk) throws IOException
psk - [required] Your PSK keyserviceName - [required] The internal name of your Router offerid - [required]IOExceptionpublic ArrayList<String> GET() throws IOException
IOExceptionCopyright © 2018. All rights reserved.