new ServiceBindings(endPoint)
Manages Service Binding on Cloud Foundry
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |
Methods
associateServiceWithApp(token_type, access_token, service_guid, app_guid) → {JSON}
Associate Service with an App
http://apidocs.cloudfoundry.org/217/service_bindings/create_a_service_binding.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
service_guid |
String | [service_guid] |
app_guid |
String | [app_guid] |
Returns:
[return a JSON response]
- Type
- JSON
getServiceBinding(token_type, access_token, serviceBinding_guid) → {JSON}
Get a Service Binding
http://apidocs.cloudfoundry.org/217/service_bindings/retrieve_a_particular_service_binding.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
serviceBinding_guid |
String | [serviceBinding guid] |
Returns:
[return a JSON response]
- Type
- JSON
getServiceBindings(token_type, access_token, guid) → {JSON}
Get Service Bindings
http://apidocs.cloudfoundry.org/217/service_bindings/list_all_service_bindings.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
guid |
String | [route guid] |
Returns:
[return a JSON response]
- Type
- JSON
remove(token_type, access_token, service_guid)
Remove a Service Binding
http://apidocs.cloudfoundry.org/217/service_bindings/delete_a_particular_service_binding.html
Parameters:
Name | Type | Description |
---|---|---|
token_type |
String | [Authentication type] |
access_token |
String | [Authentication token] |
service_guid |
String | [service_guid] |
setEndPoint(endPoint)
Set endpoint
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |