Class ServiceInstanceController
java.lang.Object
org.springframework.cloud.servicebroker.controller.BaseController
org.springframework.cloud.servicebroker.controller.ServiceInstanceController
Provide endpoints for the service instances API.
- Author:
- S Greenberg, Scott Frederick, Roy Clarkson
- See Also:
-
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.controller.BaseController
catalogService
-
Constructor Summary
ConstructorDescriptionServiceInstanceController
(CatalogService catalogService, ServiceInstanceService serviceInstanceService) Construct a newServiceInstanceController
. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ResponseEntity<CreateServiceInstanceResponse>>
createServiceInstance
(Map<String, String> pathVariables, String serviceInstanceId, boolean acceptsIncomplete, String apiInfoLocation, String originatingIdentityString, String requestIdentity, @Valid CreateServiceInstanceRequest request) REST controller for creating a service instance.reactor.core.publisher.Mono<ResponseEntity<DeleteServiceInstanceResponse>>
deleteServiceInstance
(Map<String, String> pathVariables, String serviceInstanceId, String serviceDefinitionId, String planId, boolean acceptsIncomplete, String apiInfoLocation, String originatingIdentityString, String requestIdentity) REST controller for deleting a service instance.reactor.core.publisher.Mono<ResponseEntity<GetServiceInstanceResponse>>
getServiceInstance
(Map<String, String> pathVariables, String serviceInstanceId, String serviceDefinitionId, String planId, String apiInfoLocation, String originatingIdentityString, String requestIdentity) REST controller for getting a service instance.reactor.core.publisher.Mono<ResponseEntity<GetLastServiceOperationResponse>>
getServiceInstanceLastOperation
(Map<String, String> pathVariables, String serviceInstanceId, String serviceDefinitionId, String planId, String operation, String apiInfoLocation, String originatingIdentityString, String requestIdentity) REST controller for getting the last operation of a service instance.reactor.core.publisher.Mono<ResponseEntity<UpdateServiceInstanceResponse>>
updateServiceInstance
(Map<String, String> pathVariables, String serviceInstanceId, boolean acceptsIncomplete, String apiInfoLocation, String originatingIdentityString, String requestIdentity, @Valid UpdateServiceInstanceRequest request) REST controller for updating a service instance.Methods inherited from class org.springframework.cloud.servicebroker.controller.BaseController
configureCommonRequestFields, configureCommonRequestFields, getAsyncResponseCode, getRequiredServiceDefinition, getRequiredServiceDefinitionPlan, getServiceDefinition, getServiceDefinitionPlan, parseOriginatingIdentity
-
Constructor Details
-
ServiceInstanceController
public ServiceInstanceController(CatalogService catalogService, ServiceInstanceService serviceInstanceService) Construct a newServiceInstanceController
.- Parameters:
catalogService
- the catalog serviceserviceInstanceService
- the service instance service
-
-
Method Details
-
createServiceInstance
@PutMapping({"/{platformInstanceId}/v2/service_instances/{instanceId}","/v2/service_instances/{instanceId}"}) public reactor.core.publisher.Mono<ResponseEntity<CreateServiceInstanceResponse>> createServiceInstance(@PathVariable Map<String, String> pathVariables, @PathVariable("instanceId") String serviceInstanceId, @RequestParam(value="accepts_incomplete",required=false) boolean acceptsIncomplete, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString, @RequestHeader(value="X-Broker-API-Request-Identity",required=false) String requestIdentity, @Valid @RequestBody @Valid CreateServiceInstanceRequest request) REST controller for creating a service instance.- Parameters:
pathVariables
- the path variablesserviceInstanceId
- the service instance IDacceptsIncomplete
- indicates an asynchronous requestapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentityString
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platformrequest
- the request body- Returns:
- the response
-
getServiceInstance
@GetMapping({"/{platformInstanceId}/v2/service_instances/{instanceId}","/v2/service_instances/{instanceId}"}) public reactor.core.publisher.Mono<ResponseEntity<GetServiceInstanceResponse>> getServiceInstance(@PathVariable Map<String, String> pathVariables, @PathVariable("instanceId") String serviceInstanceId, @RequestParam(value="service_id",required=false) String serviceDefinitionId, @RequestParam(value="plan_id",required=false) String planId, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString, @RequestHeader(value="X-Broker-API-Request-Identity",required=false) String requestIdentity) REST controller for getting a service instance.- Parameters:
pathVariables
- the path variablesserviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition IDplanId
- the plan IDapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentityString
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platform- Returns:
- the response
-
getServiceInstanceLastOperation
@GetMapping({"/{platformInstanceId}/v2/service_instances/{instanceId}/last_operation","/v2/service_instances/{instanceId}/last_operation"}) public reactor.core.publisher.Mono<ResponseEntity<GetLastServiceOperationResponse>> getServiceInstanceLastOperation(@PathVariable Map<String, String> pathVariables, @PathVariable("instanceId") String serviceInstanceId, @RequestParam(value="service_id",required=false) String serviceDefinitionId, @RequestParam(value="plan_id",required=false) String planId, @RequestParam(value="operation",required=false) String operation, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString, @RequestHeader(value="X-Broker-API-Request-Identity",required=false) String requestIdentity) REST controller for getting the last operation of a service instance.- Parameters:
pathVariables
- the path variablesserviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition IDplanId
- the plan IDoperation
- description of the operation being performedapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentityString
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platform- Returns:
- the response
-
deleteServiceInstance
@DeleteMapping({"/{platformInstanceId}/v2/service_instances/{instanceId}","/v2/service_instances/{instanceId}"}) public reactor.core.publisher.Mono<ResponseEntity<DeleteServiceInstanceResponse>> deleteServiceInstance(@PathVariable Map<String, String> pathVariables, @PathVariable("instanceId") String serviceInstanceId, @RequestParam("service_id") String serviceDefinitionId, @RequestParam("plan_id") String planId, @RequestParam(value="accepts_incomplete",required=false) boolean acceptsIncomplete, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString, @RequestHeader(value="X-Broker-API-Request-Identity",required=false) String requestIdentity) REST controller for deleting a service instance.- Parameters:
pathVariables
- the path variablesserviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition IDplanId
- the plan IDacceptsIncomplete
- indicates an asynchronous requestapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentityString
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platform- Returns:
- the response
-
updateServiceInstance
@PatchMapping({"/{platformInstanceId}/v2/service_instances/{instanceId}","/v2/service_instances/{instanceId}"}) public reactor.core.publisher.Mono<ResponseEntity<UpdateServiceInstanceResponse>> updateServiceInstance(@PathVariable Map<String, String> pathVariables, @PathVariable("instanceId") String serviceInstanceId, @RequestParam(value="accepts_incomplete",required=false) boolean acceptsIncomplete, @RequestHeader(value="X-Api-Info-Location",required=false) String apiInfoLocation, @RequestHeader(value="X-Broker-API-Originating-Identity",required=false) String originatingIdentityString, @RequestHeader(value="X-Broker-API-Request-Identity",required=false) String requestIdentity, @Valid @RequestBody @Valid UpdateServiceInstanceRequest request) REST controller for updating a service instance.- Parameters:
pathVariables
- the path variablesserviceInstanceId
- the service instance IDacceptsIncomplete
- indicates an asynchronous requestapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentityString
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platformrequest
- the request body- Returns:
- the response
-