Class: Spaces

Spaces

new Spaces(endPoint)

Manage Spaces on Cloud Foundry
Parameters:
Name Type Description
endPoint String [CC endpoint]
Source:

Methods

add(token_type, access_token) → {JSON|JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
Source:
Returns:
  • spaceOptions [Space option]
    Type
    JSON
  • [return a JSON response]
    Type
    JSON
Example
var spaceOptions = {

 }

getSpace(token_type, access_token, space_guid) → {JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
space_guid String [Space guid]
Source:
Returns:
[return a JSON response]
Type
JSON

getSpaceApps(token_type, access_token, space_guid, filter) → {JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
space_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(token_type, access_token) → {JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
Source:
Returns:
[return a JSON response]
Type
JSON

getSummary(token_type, access_token, space_guid) → {JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
space_guid String [Space guid]
Source:
Returns:
[return a JSON response]
Type
JSON

getUserRoles(token_type, access_token, space_guid) → {JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
space_guid String [Space guid]
Source:
Returns:
[return a JSON response]
Type
JSON

remove(token_type, access_token, space_guid) → {JSON|JSON}

Parameters:
Name Type Description
token_type String [Authentication type]
access_token String [Authentication token]
space_guid String [Space uid]
Source:
Returns:
  • spaceOptions [Space option]
    Type
    JSON
  • [return a JSON response]
    Type
    JSON

setEndPoint(endPoint)

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