Once the entry leg is executed successfully, then 2 orders are created, one for Target and another one for Stop Loss. The status for these orders will be PENDING until executed.
Do note that both these orders will have different Order ID.
I am assuming you are talking about Bracket Order. Once a bracket order is executed, then the two legs created do not have a relation with the main order entry leg. Hence, there is no mapping maintained in the system.
When you place BO order, you will get order ID for the entry order as response. You can fetch this Order ID details and keep track of whether it is executed or not. Post this execution, there will be two different orders created in your account, which you can get using Order List, of same instrument. This orders will be OCO on our end i.e. if either one of this is executed, then the other one is cancelled. If you cancel any one of this, then the other one will be automatically executed, and your position will be closed.