Deleting a Configuration
Function
This API is used to delete a configuration.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource (*: required)
Condition Key
Alias
Dependency
cse:namespace:update
read
engine
cse:namespace:write
-
URI
DELETE /v1/{project_id}/kie/kv/{kv_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Fixed value: default. |
|
kv_id |
Yes |
String |
ID of the configuration to be deleted. For details about how to obtain the ID, see Querying the Configuration List. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Authorization |
No |
String |
This parameter is mandatory if security authentication is enabled for an exclusive microservice engine. Otherwise, this parameter is not required. The token of an exclusive microservice engine with security authentication enabled is in the following format: Authorization:Bearer {Token}
For details about how to obtain the token, see Obtaining the User Token of an Exclusive Microservice Engine. |
Response
Status code: 200
Successfully deleted.
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_message |
String |
Error message. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_message |
String |
Error message. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_message |
String |
Error message. |
Example Request
Delete the configuration whose configuration ID is 8a9e6a5d-8d65-48fb-a40c-5150c8479da8.
DELETE https://{endpoint}/v1/{project_id}/kie/kv/8a9e6a5d-8d65-48fb-a40c-5150c8479da8
Example Response
Status code: 204
Successfully deleted.
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
No Content |
|
400 |
Bad Request |
|
404 |
Not Found |
|
500 |
Internal Server Error |
Error Code
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