@RestController @RequestMapping(value="/v2/service_instances/{instanceId}") public class ServiceInstanceController extends BaseController
catalogService| Constructor and Description |
|---|
ServiceInstanceController(CatalogService catalogService,
ServiceInstanceService serviceInstanceService) |
| Modifier and Type | Method and Description |
|---|---|
ResponseEntity<?> |
createServiceInstance(String serviceInstanceId,
CreateServiceInstanceRequest request,
boolean acceptsIncomplete) |
ResponseEntity<?> |
deleteServiceInstance(String serviceInstanceId,
String serviceDefinitionId,
String planId,
boolean acceptsIncomplete) |
ResponseEntity<?> |
getServiceInstanceLastOperation(String serviceInstanceId) |
ResponseEntity<ErrorMessage> |
handleException(ServiceInstanceExistsException ex) |
ResponseEntity<ErrorMessage> |
handleException(ServiceInstanceUpdateNotSupportedException ex) |
ResponseEntity<String> |
updateServiceInstance(String serviceInstanceId,
UpdateServiceInstanceRequest request,
boolean acceptsIncomplete) |
getErrorResponse, getRequiredServiceDefinition, getServiceDefinition, handleException, handleException, handleException, handleException, handleException, handleException, handleException@Autowired public ServiceInstanceController(CatalogService catalogService, ServiceInstanceService serviceInstanceService)
@RequestMapping(method=PUT) public ResponseEntity<?> createServiceInstance(@PathVariable(value="instanceId") String serviceInstanceId, @RequestBody CreateServiceInstanceRequest request, @RequestParam(value="accepts_incomplete",required=false) boolean acceptsIncomplete)
@RequestMapping(value="/last_operation", method=GET) public ResponseEntity<?> getServiceInstanceLastOperation(@PathVariable(value="instanceId") String serviceInstanceId)
@RequestMapping(method=DELETE) public ResponseEntity<?> deleteServiceInstance(@PathVariable(value="instanceId") String serviceInstanceId, @RequestParam(value="service_id") String serviceDefinitionId, @RequestParam(value="plan_id") String planId, @RequestParam(value="async",required=false) boolean acceptsIncomplete)
@RequestMapping(method=PATCH) public ResponseEntity<String> updateServiceInstance(@PathVariable(value="instanceId") String serviceInstanceId, @RequestBody UpdateServiceInstanceRequest request, @RequestParam(value="accepts_incomplete",required=false) boolean acceptsIncomplete)
@ExceptionHandler(value=ServiceInstanceExistsException.class) public ResponseEntity<ErrorMessage> handleException(ServiceInstanceExistsException ex)
@ExceptionHandler(value=ServiceInstanceUpdateNotSupportedException.class) public ResponseEntity<ErrorMessage> handleException(ServiceInstanceUpdateNotSupportedException ex)