action anchore_get_analysis_archive_rule { label: "get_analysis_archive_rule" provider: anchore method: GET path: "/archives/rules/{ruleId}" encoding: json input: { type: "object" properties: { ruleId: { type: "string" } } required: ["ruleId"] additionalProperties: false } output: { type: "object" description: "A rule for auto-archiving image analysis by time and/or tag-history" required: ["transition"] properties: { analysis_age_days: { type: "integer" description: "Matches if the analysis is strictly older than this number of days" } created_at: { type: "string" format: "date-time" } exclude: { type: "object" description: "Which Images to exclude from auto-archiving logic" properties: { expiration_days: { type: "integer" description: "How long the image selected will be excluded from the archive transition" } selector: { type: "object" description: "A set of selection criteria to match an image by a tagged pullstring based on its components, with regex support in each field" properties: { registry: { type: "string" description: "The registry section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"docker.io\"" } repository: { type: "string" description: "The repository section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"anchore/anchore-engine\"" } tag: { type: "string" description: "The tag-only section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"latest\"" } } } } } last_updated: { type: "string" format: "date-time" } max_images_per_account: { type: "integer" description: "This is the maximum number of image analyses an account can have. Can only be set on system_global rules" } rule_id: { type: "string" description: "Unique identifier for archive rule" } selector: { type: "object" description: "A set of selection criteria to match an image by a tagged pullstring based on its components, with regex support in each field" properties: { registry: { type: "string" description: "The registry section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"docker.io\"" } repository: { type: "string" description: "The repository section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"anchore/anchore-engine\"" } tag: { type: "string" description: "The tag-only section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"latest\"" } } } system_global: { type: "boolean" description: "True if the rule applies to all accounts in the system. This is only available to admin users to update/modify, but all users with permission to list rules can see them" } tag_versions_newer: { type: "integer" description: "Number of images mapped to the tag that are newer" } transition: { type: "string" description: "The type of transition to make. If \"archive\", then archive an image from the working set and remove it from the working set. If \"delete\", then match against archived images and delete from the archive if match." enum: ["archive", "delete"] } } } }