Class: Spaces

Spaces

Manage Spaces on Cloud Foundry

Constructor

new Spaces(endPoint)

Parameters:
Name Type Description
endPoint String [CC endpoint]
Source:

Methods

add(spaceOptions) → {JSON}

Parameters:
Name Type Description
spaceOptions JSON [Space options]
Source:
Returns:
[return a JSON response]
Type
JSON

getSpace(guid) → {JSON}

Parameters:
Name Type Description
guid String [Space guid]
Source:
Returns:
[return a JSON response]
Type
JSON

getSpaceApps(guid, filter) → {JSON}

Parameters:
Name Type Description
guid String [Space guid]
filter JSON [Filter]
Source:
Returns:
[return a JSON response]
Type
JSON
Example
qs: {
                'q': 'name:' + params.appName,
                'inline-relations-depth': 1
            }

getSpaces() → {JSON}

Source:
Returns:
[return a JSON response]
Type
JSON

getSummary(guid) → {JSON}

Parameters:
Name Type Description
guid String [Space guid]
Source:
Returns:
[return a JSON response]
Type
JSON

getUserRoles(guid) → {JSON}

Parameters:
Name Type Description
guid String [Space guid]
Source:
Returns:
[return a JSON response]
Type
JSON

remove(guid, spaceOptions) → {JSON}

Parameters:
Name Type Description
guid String [Space uid]
spaceOptions JSON [Space options]
Source:
Returns:
[return a JSON response]
Type
JSON