Get Default Block Config program extracts the configurations if no block is installed.
/catalog/blocks/{blockId}/config/default: get: tags: - "block" description: "Get default block config: Get configurations if no block is installed" operationId: "getDefaultBlockConfig" produces: - "application/json" parameters: - in: "path" name: "blockId" description: "Block ID" required: true type: "string" responses: 200: description: "Returns default Block Config" 400: description: "Invalid Request" 500: description: "Exception: In getting module answers from block"
Example:
Request : curl -k -u admin:changeme --request GET --url https://127.0.0.1:8443/dcc/v1/catalog/blocks/smarts-metrics/config/default
Response : { "smarts-metrics": { "primary": { "collect": { "sm": [ { "host": "localhost", "port": "12345", "name": "INCHARGE-AM-PM", "username": "admin", "password": "{CCC8B6EFC8D913616264F4B8A0D25B5A52DBFAFE4F6EB5BB94B86D4B25BC2FA7F11E59A9A733BBA10002A20C5D60EE6A}", "type": "both", "topologyPollingPeriod": "3600", "metricPollingPeriod": "240", "backendgroup": "group", "thread": { "poolsize": "3" }, "dmconnection": { "poolsize": "3" } } ] } }, "kafka": { "cluster": { "node": [ { "host": "localhost", "port": "9092" } ], "topic": "default-topic", "authType": "SASL_PLAINTEXT", "username": "admin", "password": "{B07EA85D8D516D4CA4201CFC8DEBEE022E6DE44C0AE6CB9652FC850F08859AFF5A93A33A85220F3E9E1719D3595D6AA7}" } } } }