Get Block Config program fetches the configurations for an installed module and instance.
/runtime/blocks/{instanceId}/config/get: get: tags: - "runtime" description: "Get block config: Get configurations for an installed module and instance" operationId: "getBlockConfig" produces: - "application/json" parameters: - in: "path" name: "instanceId" description: "UUID of the instantiated DCF block" required: true type: "string" responses: 200: description: "Returns Block Config" 400: description: "Invalid Request" 500: description: "Exception: In getting module answers from block"
Example:
Request : curl -k --user admin:changeme --request GET --url https://127.0.0.1:8443/dcc/v1/runtime/blocks/smarts-metrics70d9afac-516a-47f5-b38f-799fa530d55c/config/get
Response : { "smarts-metrics": { "primary": { "collect": { "sm": [ { "host": "localhost", "port": "12345", "name": "INCHARGE-AM-PM", "username": "admin", "password": "{FAF745B9C01D858B45D7F644CE55D30064E409A847AA2351B30B6FB74B3BA7FDEC5A9315ECA00C2F69D9C425039CA1F1}", "type": "both", "topologyPollingPeriod": "3600", "metricPollingPeriod": "240", "backendgroup": "group", "thread": { "poolsize": "3" }, "dmconnection": { "poolsize": "3" } } ] } }, "kafka": { "cluster": { "node": [ { "host": "localhost", "port": "9092" } ], "topic": "default-topic", "auth": "true", "username": "admin", "password": "admin-secret" } } } }