Delete a specific Service
delete
/api/v2/services/{service_id}
Deletes a specific service. You identify the service using the service_id parameter.
Request
Path Parameters
-
service_id: string
service_id
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- application/json
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to delete a service. You perform this task by submitting a DELETE request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "DELETE"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/v2/services/alpine-linux"
In this example, alpine-linux is the service_id.
Example of Response Body
{"deleted": "alpine-linux"}