Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.15 KB

05-30-operation-status.md

File metadata and controls

30 lines (21 loc) · 1.15 KB

Check Operation Status

This tutorial shows how to check the operation status for the provisioning and deprovisioning operations.

Steps

  1. 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.

  2. 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."
    }