Get Block Objects program fetches block object id by capability.
/catalog/blocks/{capabilityType}/{metrics}: get: tags: - "block" summary: "" description: "Get block objects: Get block object id by capability" operationId: "getBlockObjects" produces: - "application/json" parameters: - name: "capabilityType" in: "path" description: "The type of data collector capability for the block" required: true type: "string" - name: "metrics" in: "path" description: "The capability type and metrics for this block" required: true type: "string" responses: 200: description: "Block object id successfully returned" 400: description: "Invalid Request" 404: description: "Block object id not found"
Example:
Request : curl -k -u admin:changeme --request GET --url https://127.0.0.1:8443/dcc/v1/catalog/blocks/smarts-metricsAPI/availability
Response : "smarts-metrics"