Deleting an Endpoint
Description
This API is used to delete a specified endpoint based on the input custom_endpoint_id.
Constraints
- This function is only supported in CN-Hong Kong.
- Endpoints with the same name cannot exist under the same account. A deleted endpoint cannot be used during creation.
URI
DELETE /v1/{project_id}/maas/services/custom-endpoint/endpoint/{custom_endpoint_id}
Parameter | Mandatory | Type | Description |
|---|---|---|---|
project-id | Yes | String | Definition: Project ID. For details about how to obtain the project ID, see Obtaining a Project ID and Name. Constraints: N/A. Range: N/A. Default Value: N/A. |
custom_endpoint_id | Yes | String | Definition: Endpoint ID. The endpoint ID is returned when an endpoint is created or obtained using the query API. For details, see Creating an Endpoint or Querying Custom Endpoints. Constraints: N/A. Range: N/A. Default Value: N/A. |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | Definition: User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. For details, see Authentication. Constraints: N/A. Range: N/A. Default Value: N/A. |
Response Parameters
Request Example
Delete the endpoint whose ID is c4513589-df2e-4d58-ab0c-d5a6f2******.
DELETE
/v1/{project_id}/maas/services/custom-endpoint/endpoint/c4513589-df2e-4d58-ab0c-d5a6f2****** Response Example
- Success response. Status code: 204. If the deletion is successful, no content is returned.
- Error response. Status code: 404.
{ "error_msg": "Invalid token.", "error_code": "ModelArts.0104" }
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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
