GetAppliedConfigs

Last Updated: Mar 31, 2017

Gets configurations applied in the machine group.

Example:

GET /machinegroups/{groupName}/configs

  1. GET /machinegroups/{groupName}/configs HTTP/1.1
  2. Authorization: <AuthorizationString>
  3. Date: <GMT Date>
  4. Host: <Project Endpoint>
  5. x-log-apiversion: 0.6.0
  6. x-log-signaturemethod: hmac-sha1

Request parameters

URL parameters:

Name Type Required or Not Description
groupName string Yes Name of the machine group

Request header

No special request header is available. For details about the public request header of the log service API, refer to Public Request Header.

Response header

No special response header is available. For details about the public response header of the log service API, refer to Public Response Header.

Response element

When the request is successful. The response Body includes a list of all machines in the specified machine group in the following format:

Name Type Description
count Integer Number of returned configurations.
configs String array List of returned configuration names.
  1. {
  2. "count":2,
  3. "configs":
  4. ["config1","config2"]
  5. }

Error code

I addition to general error codes of the log service API, the following special error codes may be returned:

HTTP Status Code ErrorCode Error Message
404 GroupNotExist group {GroupName} not exist
500 InternalServerError internal server error

Detailed description

None

Example

Request example:
  1. GET /machinegroups/test-machine-group/configs HTTP/1.1
  2. Header :
  3. {
  4. "x-log-apiversion": "0.6.0",
  5. "Authorization": "LOG 94to3z418yupi6ikawqqd370:/Ntg290OaJ8JfInmhzYTG/GJwbE=",
  6. "Host": "ali-test-project.cn-hangzhou-devcommon-intranet.sls.aliyuncs.com",
  7. "Date": "Tue, 10 Nov 2015 19:45:48 GMT",
  8. "Content-Length": "0",
  9. "x-log-signaturemethod": "hmac-sha1",
  10. "User-Agent": "sls-java-sdk-v-0.6.0",
  11. "Content-Type": "application/x-protobuf",
  12. "x-log-bodyrawsize": "0"
  13. }
Response example:
  1. HTTP/1.1 200 OK
  2. Header :
  3. {
  4. "Date": "Tue, 10 Nov 2015 19:45:48 GMT",
  5. "Content-Length": "53",
  6. "x-log-requestid": "5642496C99248C8C7B00173F",
  7. "Connection": "close",
  8. "Content-Type": "application/json",
  9. "Server": "nginx/1.6.1"
  10. }
  11. Body :
  12. {
  13. "configs": [
  14. "two",
  15. "three",
  16. "test_logstore"
  17. ],
  18. "count": 3
  19. }
Thank you! We've received your feedback.