API referenceCloudflare-deployments

Retire Cloudflare Deployment

POST/api/v1/cloudflare-deployments/{deployment_id}/retire

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Path Parameters

deployment_id*Deployment Id

Header Parameters

If-Match?|

The resource's ETag: "{id}:{version}" of its current view, "{key}:{version}" for a model

X-Workspace-ID?|

The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/cloudflare-deployments/string/retire"
{  "account_id": "string",  "cleanup": {    "property1": "removed",    "property2": "removed"  },  "endpoint": "string",  "error": "string",  "id": "string",  "name": "string",  "operation": "deploy",  "provider_id": "string",  "source_image": "string",  "stage": "string",  "status": "deploying",  "version": 0,  "worker_name": "string"}