Constructor
new Users(endPoint)
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |
- Source:
Methods
add(userOptions) → {JSON}
Parameters:
Name | Type | Description |
---|---|---|
userOptions |
JSON | [user options] |
- Source:
Returns:
[return a JSON response]
- Type
- JSON
associateOrganization(userGuid, orgGuid) → {JSON}
Associate User with an Organization
http://apidocs.cloudfoundry.org/222/users/associate_organization_with_the_user.html
Parameters:
Name | Type | Description |
---|---|---|
userGuid |
String | [user guid] |
orgGuid |
String | [space guid] |
- Source:
Returns:
[return a JSON response]
- Type
- JSON
associateSpace(userGuid, spaceGuid) → {JSON}
Associate User with a Space
http://apidocs.cloudfoundry.org/222/users/associate_space_with_the_user.html
Parameters:
Name | Type | Description |
---|---|---|
userGuid |
String | [user guid] |
spaceGuid |
String | [space guid] |
- Source:
Returns:
[return a JSON response]
- Type
- JSON
getUsers() → {JSON}
- Source:
Returns:
[return a JSON response]
- Type
- JSON
remove(guid) → {JSON}
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [user guid] |
- Source:
Returns:
[return a JSON response]
- Type
- JSON