VDB deletion through API

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
Hi Guys,

We are trying the deletion of the VDB through API.We have used the below code but not getting the correct output.
curl -X POST -k http://$DE/resources/json/delphix/database/ORACLE-DB_CONTAINER-54/delete \
-b ~/cookies.txt -H "Content-Type: application/json"
{
"type": "OracleDeleteParameters"
}
{"type":"ErrorResult","status":"ERROR","error":{"type":"APIError","details":"The reference \"ORACLE-DB_CONTAINER-54\" is invalid or of the incorrect type.","action":"Check the source of the reference and the documentation for the requested API. Try again with the correct reference type.","id":"exception.webservices.api.invalid.reference","commandOutput":null,"diagnoses":[]}}[root@oraclesource ~]# {
> "type": "OracleDeleteParameters"
> }
Photo of Swathy Sukumar

Swathy Sukumar

  • 886 Points 500 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Scott MacDonald

Scott MacDonald, Staff Engineer

  • 2,522 Points 2k badge 2x thumb
Official Response
Hi Swathy,

It's a simple typo mistake here, you need to use the container reference "ORACLE_DB_CONTAINER-54", you have a hyphen instead of an underscore after the word ORACLE in your example.

Hope that helps,

Scott.