-
Notifications
You must be signed in to change notification settings - Fork 8
application broker API 0.7
The purpose of this application is to easily expose Cloud Foundry applications to marketplace as service offerings without implementing separate brokers for each of them.
Version: 0.1.0
Implementation of Service Broker API method (for details check http://docs.cloudfoundry.org/services/api.html).
PUT /service_instances/{instance_id}/service_bindings/{binding_id}
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Binds to specified service instance and returns credentials necessary to establish connection to that service.
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | instance_id | Service instance GUID | true | string | |
PathParameter | binding_id | Service binding GUID | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | ServiceBindingResponse | ServiceBindingResponse |
201 | ServiceBindingResponse | ServiceBindingResponse |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
Implementation of Service Broker API method (for details check http://docs.cloudfoundry.org/services/api.html).
DELETE /service_instances/{instance_id}/service_bindings/{binding_id}
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Unbinds specified service instance.
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | instance_id | Service instance GUID | true | string | |
PathParameter | binding_id | Service binding GUID | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
Implementation of Service Broker API method (for details check http://docs.cloudfoundry.org/services/api.html).
GET /v2/catalog
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Returns the catalog of services managed by this broker.
HTTP Code | Description | Schema |
---|---|---|
200 | CatalogExtensionResponse | CatalogExtension |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
POST /v2/catalog
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
HTTP Code | Description | Schema |
---|---|---|
201 | ServiceExtensionResponse | ServiceExtension |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
PUT /v2/catalog/{service_id}
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | service_id | Service GUID | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | ServiceExtensionResponse | ServiceExtension |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
DELETE /v2/catalog/{service_id}
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | service_id | Service GUID | true | string |
HTTP Code | Description | Schema |
---|---|---|
204 | No Content | No Content |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
Implementation of Service Broker API method (for details check http://docs.cloudfoundry.org/services/api.html).
PUT /v2/service_instances/{instance_id}
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Creates a service instance for specific plan.
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | instance_id | Service instance GUID | true | string |
HTTP Code | Description | Schema |
---|---|---|
201 | ServiceCreationResponse | ServiceCreationResponse |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
Implementation of Service Broker API method (for details check http://docs.cloudfoundry.org/services/api.html).
DELETE /v2/service_instances/{instance_id}
Privilege level: Consumer of this endpoint must login using basic authentication credentials (valid login and password)
Deletes previously created service instance.
Type | Name | Description | Required | Schema | Default |
---|---|---|---|---|---|
PathParameter | instance_id | Service instance GUID | true | string |
HTTP Code | Description | Schema |
---|---|---|
200 | OK | No Content |
400 | Bad Request | No Content |
404 | Not Found | No Content |
409 | Conflict | No Content |
500 | Internal Server Error | BrokerError |
Amount describers Cloud Foundry cost amount
Name | Description | Required | Schema | Default |
---|---|---|---|---|
usd | false | number (float) |
BrokerError describes Cloud Foundry broker error
Name | Description | Required | Schema | Default |
---|---|---|---|---|
description | false | string |
Catalog describes Cloud Foundry catalog
Name | Description | Required | Schema | Default |
---|---|---|---|---|
services | false | Service array |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
services | false | ServiceExtension array |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
buildpack | false | string | ||
command | false | string | ||
disk_quota | false | integer (int64) | ||
environment_json | false | object | ||
instances | false | integer (int64) | ||
memory | false | integer (int64) | ||
name | false | string | ||
path | false | string | ||
routes_url | false | string | ||
space_guid | false | string | ||
state | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
since | false | number (double) | ||
state | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfApp | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
buildpack | false | string | ||
command | false | string | ||
disk_quota | false | integer (int64) | ||
environment_json | false | object | ||
guid | false | string | ||
instances | false | integer (int64) | ||
memory | false | integer (int64) | ||
name | false | string | ||
path | false | string | ||
routes | false | CfAppSummaryRoute array | ||
routes_url | false | string | ||
services | false | CfAppSummaryService array | ||
space_guid | false | string | ||
state | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
domain | false | CfDomain | ||
guid | false | string | ||
host | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
name | false | string | ||
service_plan | false | CfAppSummaryServicePlan |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
Service | false | CfAppSummaryServicePlanService | ||
guid | false | string | ||
name | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
label | false | string |
cfAppsResponse describes the Cloud Controller API result for a list of apps
Name | Description | Required | Schema | Default |
---|---|---|---|---|
resources | false | CfAppResource array | ||
total_pages | false | integer (int64) | ||
total_results | false | integer (int64) |
CFBindingResponse describes a CF Service Binding within the Cloud Controller
Name | Description | Required | Schema | Default |
---|---|---|---|---|
app_guid | false | string | ||
guid | false | string | ||
service_instance_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfBinding | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
resources | false | CfBindingResource array | ||
total_results | false | integer (int64) |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
source_app_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
domain_guid | false | string | ||
host | false | string | ||
space_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
name | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfDomain | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
error | false | string | ||
guid | false | string | ||
status | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfJob | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
url | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
domain_guid | false | string | ||
domain_url | false | string | ||
host | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfRoute | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
resources | false | CfRouteResource array | ||
total_pages | false | integer (int64) | ||
total_results | false | integer (int64) |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
label | false | string | ||
provider | false | string | ||
service_broker_guid | false | string | ||
service_plans_url | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
app_guid | false | string | ||
parameters | false | object | ||
service_instance_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
auth_password | false | string | ||
auth_username | false | string | ||
broker_url | false | string | ||
name | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfServiceBroker | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
resources | false | CfServiceBrokerResource array | ||
total_results | false | integer (int64) |
CfServiceContext describes a CF Service Instance within the Cloud Controller
Name | Description | Required | Schema | Default |
---|---|---|---|---|
AppName | false | string | ||
InstanceID | false | string | ||
InstanceName | false | string | ||
OrgName | false | string | ||
SpaceGUID | false | string | ||
SpaceName | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
name | false | string | ||
parameters | false | object | ||
service_plan_guid | false | string | ||
space_guid | false | string | ||
tags | false | string array |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfAppSummaryServicePlan | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
resources | false | CfServicePlanResource array | ||
total_results | false | integer (int64) |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfService | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
resources | false | CfServiceResource array | ||
total_results | false | integer (int64) |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
guid | false | string | ||
name | false | string | ||
organization_guid | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfSpace | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
credentials | false | object | ||
name | false | string | ||
route_service_url | false | string | ||
space_guid | false | string | ||
syslog_drain_url | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
entity | false | CfUserProvidedService | ||
metadata | false | CfMeta |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
name | false | string | ||
uris | false | string array |
Cost describers Cloud Foundry plan Cost
Name | Description | Required | Schema | Default |
---|---|---|---|---|
amount | false | Amount | ||
unit | false | string |
Dashboard describes Cloud Foundry dashboard
Name | Description | Required | Schema | Default |
---|---|---|---|---|
id | false | string | ||
redirect_uri | false | string | ||
secret | false | string |
Plan describes Cloud Foundry plan structure
Name | Description | Required | Schema | Default |
---|---|---|---|---|
description | false | string | ||
free | false | boolean | ||
id | false | string | ||
metadata | false | PlanMeta | ||
name | false | string |
PlanMeta describers Cloud Foundry plan meta-data
Name | Description | Required | Schema | Default |
---|---|---|---|---|
bullets | false | string array | ||
costs | false | string | ||
displayName | false | string |
Service describes Cloud Foundry service
Name | Description | Required | Schema | Default |
---|---|---|---|---|
bindable | false | boolean | ||
dashboard_client | false | Dashboard | ||
description | false | string | ||
id | false | string | ||
metadata | false | ServiceMeta | ||
name | false | string | ||
plans | false | Plan array | ||
requires | false | string array | ||
tags | false | string array |
ServiceBindingRequest describes Cloud Foundry service binding request
Name | Description | Required | Schema | Default |
---|---|---|---|---|
app_guid | false | string | ||
plan_id | false | string | ||
service_id | false | string |
ServiceBindingResponse describes Cloud Foundry service binding response
Name | Description | Required | Schema | Default |
---|---|---|---|---|
credentials | false | object |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
parameters | false | string array | ||
service_name | false | string |
ServiceCreationRequest describes Cloud Foundry service provisioning request
Name | Description | Required | Schema | Default |
---|---|---|---|---|
Parameters | false | object | ||
organization_guid | false | string | ||
plan_id | false | string | ||
service_id | false | string | ||
space_guid | false | string |
ServiceCreationResponse describes Cloud Foundry service provisioning response
Name | Description | Required | Schema | Default |
---|---|---|---|---|
dashboard_url | false | string |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
app | false | CfAppResource | ||
bindable | false | boolean | ||
configuration | false | ServiceConfiguration array | ||
dashboard_client | false | Dashboard | ||
description | false | string | ||
id | false | string | ||
metadata | false | ServiceMeta | ||
name | false | string | ||
plans | false | Plan array | ||
requires | false | string array | ||
tags | false | string array |
Name | Description | Required | Schema | Default |
---|---|---|---|---|
app | false | CfAppResource | ||
id | false | string | ||
service_id | false | string |
ServiceMeta describers Cloud Foundry service meta-data
Name | Description | Required | Schema | Default |
---|---|---|---|---|
displayName | false | string | ||
documentationUrl | false | string | ||
imageUrl | false | string | ||
longDescription | false | string | ||
providerDisplayName | false | string | ||
supportUrl | false | string |