DeleteSourceModelElement
Deletes a single Source UModel element.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:DeleteSourceModelElement |
delete |
*Project
|
None | None |
Request syntax
DELETE /source-models/elements/{domain}/{kind}/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| domain |
string |
No |
The namespace of the element. This namespace, together with kind and name, uniquely identifies an element. For elements generated by Simple Log Service, this value is typically sls. |
sls |
| kind |
string |
No |
The element type, such as log_set, metric_set, runbook_set, sls_logstore, and storage_link. |
log_set |
| name |
string |
No |
The name of the element to delete. This is the name field in the element metadata. |
orders_log |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
No |
The project name. The model belongs to this project, and each project corresponds to exactly one model. |
my-project |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. Returns the result of the deletion. |
||
| status |
string |
The status of the operation. A value of success is returned if the deletion succeeds. Deleting a non-existent element also returns success. When an element is deleted, storage links that use it as an endpoint are also deleted. However, other elements that are no longer referenced are not reclaimed. |
success |
Examples
Success response
JSON format
{
"status": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.