Deleting an API
Function
This API is used to delete a specified API. Only users who have the permission to delete the service to which the API belongs can delete the API.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer. Obtain its CLI example hcloud ModelArts DeleteAppAuthApi.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
DELETE /v1/{project_id}/services/{service_id}/app-auth-apis/{api_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
|
service_id |
Yes |
String |
Service ID. |
|
api_id |
Yes |
String |
API ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
workspace_id |
No |
String |
Definition: Workspace ID. . Constraints: There must be a workspace in use. Range: N/A Default Value: 0 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 204
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Link trace ID |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Link trace ID |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Link trace ID |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Link trace ID |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Example Requests
DELETE https://{endpoint}/v1/{project_id}/services/{service_id}/app-auth-apis/{api_id}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
No Content |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
500 |
Server Internal Error |
Error Codes
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