edit-icon download-icon

Publish configuration

Last Updated: Apr 17, 2018

## Description

It publishes configurations on ACM.

Request Type

POST

Request URL

/diamond-server/basestone.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
content String Yes Configuration content

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 publishing 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/basestone.do?method=syncUpdateAll

http body:
dataId=dataIdparam&group=groupParam&tenant=tenantParam&content=contentParam

Response example

true
Thank you! We've received your feedback.