Assertions

assertions_find

Introduced in version 1

Summary: GET /api/v1/snaps/assertions/<assertion_type>/<path:assertion_key>

Return the assertion matching the given assertion_type and assertion_key

URL Parameters

{
    "properties": {
        "max-format": {
            "description": "Expected max format of the returned assertion. \"-1\" means the highest supported format for this assertion type.",
            "type": "string"
        },
        "sequence": {
            "description": "The expected sequence of the assertion. Must be a positive integer or \"latest\"; only has meaning for sequence forming assertion types.",
            "type": "string"
        }
    },
    "type": "object"
}
  • max-format
    • description: Expected max format of the returned assertion. "-1" means the highest supported format for this assertion type.
  • sequence
    • description: The expected sequence of the assertion. Must be a positive integer or "latest"; only has meaning for sequence forming assertion types.

assertions_find_v2

Introduced in version 24

Summary: GET /v2/assertions/<assertion_type>/<path:assertion_key>

Return the assertion matching the given assertion_type and assertion_key

assertions_find_v2 changelog

  • Version 24: Added Assertions V2 API

© 2019 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.