Zum Inhalt
HALOWERK

Finopswerk

ecr priority expiration preview

Originalstandardimagepushdays/tagsets andpriorityrules determine simultaneousoriginalpopulation count/strictage candidates,highesttagmatchingrule protection andwhole perimage/ruleexpirationpreview. Finite literalprefixsubset,distinctpushtimes,no manifests/refartifacts/restored/archive/pulltime/nativepolicyJSON/actualdelete orreclaimedbytescertification. One boundedmissingtagcapture retains2wholeworlds. Allrulescountoriginalpopulation beforeanyexpiration;lowerpriority.

POST https://finops.halowerk.com/v1/ecr-priority-expiration-preview

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
now_dayintegerJa
imagesarrayJa
rulesarrayJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "now_day": {
      "type": "integer",
      "minimum": 1,
      "maximum": 730
    },
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pushed_day": {
            "type": "integer",
            "minimum": 0,
            "maximum": 365
          },
          "tag_domain": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,7}$",
                "minLength": 1,
                "maxLength": 8
              },
              "minItems": 0,
              "maxItems": 3
            },
            "minItems": 1,
            "maxItems": 2
          }
        },
        "required": [
          "pushed_day",
          "tag_domain"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 8
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "priority": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "tag_status": {
            "enum": [
              "tagged",
              "untagged",
              "any"
            ]
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,7}$",
              "minLength": 1,
              "maxLength": 8
            },
            "minItems": 0,
            "maxItems": 2
          },
          "count_type": {
            "enum": [
              "keep_count",
              "age_days"
            ]
          },
          "number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          }
        },
        "required": [
          "priority",
          "tag_status",
          "prefixes",
          "count_type",
          "number"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 3
    },
    "report": {
      "type": "object",
      "properties": {
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "owner_priority": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 99
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expire_priority": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 99
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expire": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "owner_priority",
              "expire_priority",
              "expire"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 8
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "matching_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 8
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "selected_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 8
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "applied_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 8
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "matching_count",
              "selected_count",
              "applied_count"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 3
        },
        "total": {
          "type": "object",
          "properties": {
            "expired": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 8
                },
                {
                  "type": "null"
                }
              ]
            },
            "retained": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 8
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "expired",
            "retained"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "images",
        "rules",
        "total"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "now_day",
    "images",
    "rules",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "now_day": 10,
  "images": [
    {
      "pushed_day": 0,
      "tag_domain": [
        [
          "prod"
        ]
      ]
    },
    {
      "pushed_day": 1,
      "tag_domain": [
        [
          "prod"
        ]
      ]
    },
    {
      "pushed_day": 2,
      "tag_domain": [
        [
          "dev"
        ]
      ]
    },
    {
      "pushed_day": 3,
      "tag_domain": [
        [
          "prod"
        ]
      ]
    }
  ],
  "rules": [
    {
      "priority": 1,
      "tag_status": "tagged",
      "prefixes": [
        "prod"
      ],
      "count_type": "keep_count",
      "number": 1
    },
    {
      "priority": 2,
      "tag_status": "any",
      "prefixes": [],
      "count_type": "age_days",
      "number": 5
    }
  ],
  "report": {
    "images": [
      {
        "owner_priority": 1,
        "expire_priority": 1,
        "expire": true
      },
      {
        "owner_priority": 1,
        "expire_priority": 1,
        "expire": true
      },
      {
        "owner_priority": 2,
        "expire_priority": 2,
        "expire": true
      },
      {
        "owner_priority": 1,
        "expire_priority": 0,
        "expire": false
      }
    ],
    "rules": [
      {
        "matching_count": 3,
        "selected_count": 2,
        "applied_count": 2
      },
      {
        "matching_count": 4,
        "selected_count": 4,
        "applied_count": 1
      }
    ],
    "total": {
      "expired": 3,
      "retained": 1
    }
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →