Taking an API Offline
Function
This API is used to remove an API from an environment in which it has been published. After this operation, the API can no longer be called in the environment.
URI
The following table lists the HTTP/HTTPS request method and URI of the API.
| Request Method | URI |
|---|---|
| DELETE | /v1.0/apigw/apis/publish/{api_id}[?env_id] |
The following table lists the parameters in the URI.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| api_id | Yes | String | API ID |
| env_id | Yes | String | ID of the environment in which the API has been published |
Request
N/A
Response
N/A
Status Codes
| Status Code | Description |
|---|---|
| 204 | No Content |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 409 | Conflict |
| 500 | Server Internal Error |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot