Hi,
I’m trying to delete an environment through Rancher API and getting 404 error.
When I click delete in actions on one of the environments(project in API), it says no action is needed.
And so I posted the http request
curl -u “${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY}”
-X POST
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{}’
‘http://192.168.54.207/v1/projects/1a94/?action=delete’
to delete the environment but gettting the below error
HTTP Response:
HTTP/1.1 404
Date: Mon, 23 May 2016 05:36:47 GMT
X-Api-Client-Ip: 192.168.54.113
Server: Jetty(9.2.11.v20150529)
X-Api-Account-Id: 1a1
Content-Type: application/json; charset=utf-8
X-Api-Schemas: http://192.168.54.207/v1/schemas
Content-Length: 152
Expires: Thu, 01 Jan 1970 00:00:00 GMT
{
“id”: “c12f3875-8c9b-49fe-aea2-102735a055ff”,
“type”: “error”,
“links”: { },
“actions”: { },
“status”: 404,
“code”: “Not Found”,
“message”: “Not Found”,
“detail”: null,
}
Can anyone please tell me what I’m missing?
Thank you