This tutorial shows how to check the operation status for the provisioning and deprovisioning operations.
-
Export the operation ID that you obtained during provisioning or deprovisioning as an environment variable:
export OPERATION_ID={OBTAINED_OPERATION_ID}
NOTE: Ensure that the BROKER_URL and INSTANCE_ID environment variables are exported as well before you proceed.
-
Make a call to Kyma Environment Broker with a proper Authorization request header to verify that provisioning or deprovisioning succeeded.
curl --request GET "https://$BROKER_URL/oauth/v2/service_instances/$INSTANCE_ID/last_operation?operation=$OPERATION_ID&service_id=47c9dcbf-ff30-448e-ab36-d3bad66ba281" \ --header 'X-Broker-API-Version: 2.13' \ --header "$AUTHORIZATION_HEADER"
A successful call returns the operation status and description:
{ "state": "succeeded", "description": "Operation succeeded." }