Constructor
new ServiceBindings(endPoint)
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |
Methods
associateServiceWithApp(serviceGuid, appGuid) → {JSON}
Associate Service with an App
http://apidocs.cloudfoundry.org/217/service_bindings/create_a_service_binding.html
Parameters:
Name | Type | Description |
---|---|---|
serviceGuid |
String | [service_guid] |
appGuid |
String | [app_guid] |
Returns:
[return a JSON response]
- Type
- JSON
getServiceBinding(guid) → {JSON}
Get a Service Binding
http://apidocs.cloudfoundry.org/217/service_bindings/retrieve_a_particular_service_binding.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [serviceBinding guid] |
Returns:
[return a JSON response]
- Type
- JSON
getServiceBindings(filter) → {JSON}
Get Service Bindings
http://apidocs.cloudfoundry.org/217/service_bindings/list_all_service_bindings.html
Parameters:
Name | Type | Description |
---|---|---|
filter |
String | [Search option] |
Returns:
[return a JSON response]
- Type
- JSON
remove(guid) → {JSON}
Remove a Service Binding
http://apidocs.cloudfoundry.org/217/service_bindings/delete_a_particular_service_binding.html
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | [service_guid] |
Returns:
[return a JSON response]
- Type
- JSON