No ErrorResponse is returned

matsujirushi 636 Reputation points MVP
2020-09-01T11:52:16.197+00:00

No ErrorResponse is returned when called delete for product api.

Success:

   {"TenantId":"31908d60-fc8a-4403-b739-348ee8705d66","OperationId":"0a8a1023-1c61-4f6c-831e-dab66a4448e8","CreatedDateUTC":"2020-08-31T11:52:04.407902Z","StartedDateUTC":null,"CompletedDateUTC":null,"OperationType":10,"State":0,"ResourceLocation":"","Error":null}  

Error: <- device group and device using product

   {"TenantId":"31908d60-fc8a-4403-b739-348ee8705d66","OperationId":"d122cee1-bda3-4c72-93e9-1b91d18e0c94","CreatedDateUTC":"2020-08-31T11:50:01.5251166Z","StartedDateUTC":null,"CompletedDateUTC":null,"OperationType":10,"State":0,"ResourceLocation":"","Error":null}  

Is there any way to know if the delete was successful or not?

Related Issues:
デバイスに割り当てられたデバイスグループが削除できない

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} vote

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2020-09-16T22:02:40.287+00:00

    Hello @matsujirushi , Below is the response from the product team, I hope this helps in your query.

    Below is the response of the product 'Delete' API Async call. [Make a note of the OperationId]

    {"TenantId":"31908d60-fc8a-4403-b739-348ee8705d66","OperationId":"d122cee1-bda3-4c72-93e9-1b91d18e0c94","CreatedDateUTC":"2020-08-31T11:50:01.5251166Z","StartedDateUTC":null,"CompletedDateUTC":null,"OperationType":10,"State":0,"ResourceLocation":"","Error":null}

    As This is an asynchronous API, the user needs to poll the operation to get the result.

    Use the OperationId from the response of 'Delete of product' in the below GET call.

    GET https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/operations/{operationId}  
    

    In the future we will document the async nature of the APIs.

    Please let us know if you further help in this matter.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.