Labels

Summary

Get a list of Label Keys observed for a filtered set of data within a time frame.

End point

/containers/labels

Query Arguments
Parameter Description Default Allowed
start/end Start/ End date for usage results. Required Format YYYY-MM-DD
filters Filter the reported data as per the dimension values provided. N/A
pretty Pretty-print the JSON response. None true
Example Request
curl "https://api.usgov.cloudability.com/v3/containers/labels?pretty=true&start=2025-01-01&end=2025-01-05" \
-H "apptio-opentoken: ${token}" \
-H "apptio-environmentid: ${env_id}"

Sample Response

{
    "result": {
        "labels": [
            {
                "key": "cldy:labels:app",
                "keyDisplay": "app"
            },
            {
                "key": "cldy:labels:apptio.com/env",
                "keyDisplay": "apptio.com/env"
            },
            {
                "key": "cldy:labels:apptio.com/environment",
                "keyDisplay": "apptio.com/environment"
            },
            {
                "key": "cldy:labels:environment",
                "keyDisplay": "environment"
            }
        ],
        "query": {
            "orgId": "1",
            "accountIds": null,
            "interval": {
                "start": "",
                "end": ""
            },
            "filters": null
        }
    }
}