This API call deletes the specified environment. An environment must be disabled before it can be deleted.
To execute this request, you need the Service Provider API (ServiceProviderAPI
) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/cluster/v2/environments
The ID of the environment to be deleted.
Deleted. Response does not have a body.
Failed. For example, if an environment is not disabled.
Deletes the environment 19a963a7-b19f-4382-964a-4df674c8eb8e
.
curl -X DELETE "https://myManaged.cluster.com/api/cluster/v2/environments/19a963a7-b19f-4382-964a-4df674c8eb8e" -H "accept: */*" -H "Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890"
https://myManaged.cluster.com/api/cluster/v2/environments/19a963a7-b19f-4382-964a-4df674c8eb8e
Response does not have a body.
204