Constructor
new Organizations(endPoint)
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |
Methods
add(orgOptions) → {JSON}
Add a new organization
http://apidocs.cloudfoundry.org/222/organizations/creating_an_organization.html
Parameters:
Name | Type | Description |
---|---|---|
orgOptions |
JSon | [org options] |
Returns:
[return a JSON response]
- Type
- JSON
getMemoryUsage(guid) → {JSON}
Get memory usage from an Organization
http://apidocs.cloudfoundry.org/222/organizations/retrieving_organization_memory_usage.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [org guid] |
Returns:
[return a JSON response]
- Type
- JSON
getOrganizations(token_type, access_token) → {JSON}
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
Returns:
[return a JSON response]
- Type
- JSON
getPrivateDomains(guid) → {JSON}
Get private domains from an Organizations
http://apidocs.cloudfoundry.org/214/organizations/list_all_private_domains_for_the_organization.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [org guid] |
Returns:
[return a JSON response]
- Type
- JSON
getSummary(guid) → {JSON}
Get summary from an Organization
http://apidocs.cloudfoundry.org/222/organizations/get_organization_summary.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [org guid] |
Returns:
[return a JSON response]
- Type
- JSON
getUsers(guid, filter) → {Json}
Get users from an Organization
http://apidocs.cloudfoundry.org/222/organizations/list_all_users_for_the_organization.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [org guid] |
filter |
Json | [filter to search] |
Returns:
[output]
- Type
- Json
remove(guid, orgOptions) → {String}
Remove an Organization
http://apidocs.cloudfoundry.org/222/organizations/delete_a_particular_organization.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [org guid] |
orgOptions |
JSon | [org options] |
Returns:
[output]
- Type
- String