Delete timeflow via API

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
Is it currently possible to delete timeflows?

I am trying to do so via (as per API documentation):

DELETE `timeflow/${ this.props.selectedFlow }/delete`

and:

DELETE `timeflow/${ this.props.selectedFlow }`


But neither work and instead return a 405 method not allowed. Is this actually not allowed or am I missing something?

Thanks,

Avindra.
Photo of Avindra Goolcharan

Avindra Goolcharan

  • 404 Points 250 badge 2x thumb
  • confused

Posted 2 years ago

  • 0
  • 1
Photo of Eyal Kaspi

Eyal Kaspi, Employee

  • 970 Points 500 badge 2x thumb
It is possibly a bug, but I can see that the TimeFlow delete operation only supports the HTTP POST request method (while other delete operations in the Delphix API support both POST with a "delete" suffix or the DELETE request method). In other words, your first example should work if you use POST instead of DELETE.
Photo of Avindra Goolcharan

Avindra Goolcharan

  • 404 Points 250 badge 2x thumb
That seems to be closer. The documentation is wrong, it is instructing users to issue DELETEs. 

After changing it to a POST, here is the new (500) error:

{"type":"ErrorResult","status":"ERROR","error":{"type":"APIError","details":"A
server error occurred while processing your
request.","action":"Please contact Delphix
support.","id":null,"commandOutput":null}}
Photo of Jaclyn Schoof

Jaclyn Schoof, Community Manager

  • 5,092 Points 5k badge 2x thumb
Hey Avindra,
Can you post the link of the docs that you were using? I'd like to correct it ASAP to make sure no one else hits this issue
Photo of Avindra Goolcharan

Avindra Goolcharan

  • 404 Points 250 badge 2x thumb
Hi Jaclyn,

This is part of the internal documentation that isn't visible to the public. The url is in the form of:

http://${engineUrl}/api/#timeflow
Photo of Jaclyn Schoof

Jaclyn Schoof, Community Manager

  • 5,092 Points 5k badge 2x thumb
Ah, that is something that we own, I will file a bug to get it fixed in the product, thanks!
Photo of Eyal Kaspi

Eyal Kaspi, Employee

  • 970 Points 500 badge 2x thumb
Please open a support case to get a support engineer to investigate the failure you are experiencing.