edit-icon download-icon

Delete configuration

Last Updated: Apr 17, 2018

## Description

It deletes configurations on ACM.

Request Type

POST

Request URL

/diamond-server/datum.do

Request parameters

Name Type Required Description
tenant String Yes The tenant, corresponding to the namespace field of ACM
dataId String Yes Configuration ID
group String Yes Configuration group

Header parameter

Name Type Required Description
Spas-AccessKey String Yes accessKey is obtained from ACM console
timeStamp String Yes Request time string in millisecond
Spas-Signature String Yes SpasSigner.sign(Tenant+ group+ timeStamp, secretKey) // Sign “tenant+group+timestamp” with secret key. The signature algorithm is HmacSHA1. Adding a timestamp prevents replay attacks. A signature expires in 60 seconds.

Response parameters

Parameter type Description
boolean If the deletion is successful

Error code

Error code Description Meaning
400 Bad Request Syntax error in client request
403 Forbidden No permission
404 Not Found Client error, not found
500 Internal Server Error Internal server error
200 OK Normal

Example

Request example

http:serverIp:8080/diamond-server/datum.do?method=deleteAllDatums

http body:
dataId=dataIdparam&group=groupParam

Response example

true
Thank you! We've received your feedback.