cf-node-client
momo auto_awesome BUY CLAUDE KIT WITH 20% OFF coffee BUY ME COFFEE

Class: Routes

Routes(endPoint, options) → {void}

Manage Routes on Cloud Foundry Supports both Cloud Foundry API v2 and v3

Constructor

new Routes(endPoint, options) → {void}

Parameters:
Name Type Description
endPoint String [CC endpoint]
options Object [Configuration options]
Source:
Returns:
Type
void

Methods

add(routeOptions) → {Promise}

Parameters:
Name Type Description
routeOptions Object [Route options]
Source:
Returns:
[Promise resolving to created route]
Type
Promise

getApps(guid, filter) → {Promise}

Parameters:
Name Type Description
guid String [Route GUID]
filter Object [Filter options]
Source:
Returns:
[Promise resolving to apps list]
Type
Promise

getRoute(guid) → {Promise}

Parameters:
Name Type Description
guid String [Route GUID]
Source:
Returns:
[Promise resolving to route]
Type
Promise

getRoutes(filter) → {Promise}

Parameters:
Name Type Description
filter Object [Filter options]
Source:
Returns:
[Promise resolving to routes list]
Type
Promise

remove(guid, deleteOptions) → {Promise}

Parameters:
Name Type Description
guid String [Route GUID]
deleteOptions Object [Delete options]
Source:
Returns:
[Promise resolving to delete result]
Type
Promise

update(guid, routeOptions) → {Promise}

Parameters:
Name Type Description
guid String [Route GUID]
routeOptions Object [Route options]
Source:
Returns:
[Promise resolving to updated route]
Type
Promise