Interface IServiceInstanceDeferred
- Namespace
- OpenServiceBroker.Instances
- Assembly
- OpenServiceBroker.Server.dll
Manages Service Instances with potentially deferred (asynchronous) operations.
public interface IServiceInstanceDeferred : IServiceInstanceBase
- Inherited Members
- Extension Methods
Methods
DeprovisionAsync(ServiceInstanceContext, string?, string?)
Deprovisions/deletes a Service Instance.
Task<AsyncOperation> DeprovisionAsync(ServiceInstanceContext context, string? serviceId = null, string? planId = null)
Parameters
context
ServiceInstanceContextThe id of instance being deleted.
serviceId
stringThe id of the service associated with the instance being deleted.
planId
stringThe id of the plan associated with the instance being deleted.
Returns
- Task<AsyncOperation>
A potentially deferred (asynchronous) operation.
Exceptions
- GoneException
The instance does not exist (anymore).
GetLastOperationAsync(ServiceInstanceContext, string?, string?, string?)
Gets the state of the last requested deferred (asynchronous) operation for a Service Instance.
Task<LastOperationResource> GetLastOperationAsync(ServiceInstanceContext context, string? serviceId = null, string? planId = null, string? operation = null)
Parameters
context
ServiceInstanceContextThe id of instance to find last operation applied to it
serviceId
stringThe id of the service associated with the instance.
planId
stringThe id of the plan associated with the instance.
operation
stringThe value provided in Operation.
Returns
Exceptions
- GoneException
The instance requested to be deleted does not exist (anymore).
ProvisionAsync(ServiceInstanceContext, ServiceInstanceProvisionRequest)
Provisions a Service Instance.
Task<ServiceInstanceAsyncOperation> ProvisionAsync(ServiceInstanceContext context, ServiceInstanceProvisionRequest request)
Parameters
context
ServiceInstanceContextThe id of instance to provision
request
ServiceInstanceProvisionRequestParameters for the requested Service Instance provision
Returns
- Task<ServiceInstanceAsyncOperation>
A potentially deferred (asynchronous) operation.
Exceptions
- ConflictException
instance with the same id already exists but with different attributes
UpdateAsync(ServiceInstanceContext, ServiceInstanceUpdateRequest)
Updates a Service Instance.
Task<ServiceInstanceAsyncOperation> UpdateAsync(ServiceInstanceContext context, ServiceInstanceUpdateRequest request)
Parameters
context
ServiceInstanceContextThe id of instance to update.
request
ServiceInstanceUpdateRequestParameters for the requested Service Instance update
Returns
- Task<ServiceInstanceAsyncOperation>
A potentially deferred (asynchronous) operation.
Exceptions
- BrokerException
The requested change is not supported.