new OrganizationsQuota(endPoint)
Manage Quotas for an Organization
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |
Methods
add(token_type, access_token, quotaOptions) → {JSON}
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
quotaOptions |
JSON | [org options] |
Returns:
[return a JSON response]
- Type
- JSON
getQuotaDefinition(token_type, access_token, org_guid) → {JSON}
Get a quota from an Organization
http://apidocs.cloudfoundry.org/213/organization_quota_definitions/retrieve_a_particular_organization_quota_definition.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
org_guid |
String | [org guid] |
Returns:
[return a JSON response]
- Type
- JSON
getQuotaDefinitions(token_type, access_token) → {JSON}
Get Quotas for Organizations
http://apidocs.cloudfoundry.org/213/organization_quota_definitions/list_all_organization_quota_definitions.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
Returns:
[return a JSON response]
- Type
- JSON
remove(token_type, access_token, quota_guid, async) → {JSON}
Remove a Quota for an Organization
http://apidocs.cloudfoundry.org/222/organization_quota_definitions/delete_a_particular_organization_quota_definition.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
quota_guid |
String | [quota guid] |
async |
Boolean | [description] |
Returns:
[return a JSON response]
- Type
- JSON
setEndPoint(endPoint)
Set endpoint
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |