Artifacts

This is a simple module that supports listing existing Artifacts

Example Syntax


name: List artifacts
ionoscloudsdk.ionoscloud.registry_artifact_info:
  registry: ''
register: artifacts_response

Returned object

{
    "href": "<base_url>/registries/0d6fd999-9bf9-462c-a148-951198ebca8f/artifacts",
    "id": "artifacts",
    "items": [
        {
            "href": "<base_url>/registries/0d6fd999-9bf9-462c-a148-951198ebca8f/repositories/image-test/artifacts/<digest>",
            "id": "<digest>",
            "metadata": {
                "created_by": null,
                "created_by_user_id": null,
                "created_date": null,
                "last_modified_by": null,
                "last_modified_by_user_id": null,
                "last_modified_date": null,
                "last_pulled_at": null,
                "last_pushed_at": "<datetime>",
                "last_scanned_at": "<datetime>",
                "pull_count": 0,
                "push_count": 1,
                "resource_urn": null,
                "vuln_fixable_count": 45,
                "vuln_max_severity": "critical",
                "vuln_total_count": 57,
                "vuln_total_score": 389.39993
            },
            "properties": {
                "digest": "<digest>",
                "media_type": "application/vnd.docker.distribution.manifest.v2+json",
                "repository_name": "image-test",
                "tags": [
                    "latest"
                ]
            },
            "type": "artifact"
        }
    ],
    "limit": 100,
    "links": {
        "next": null,
        "prev": null,
        "var_self": "<base_url>/registries/0d6fd999-9bf9-462c-a148-951198ebca8f/artifacts?limit=100&offset=100&orderBy=-pullCount"
    },
    "offset": 0,
    "type": "collection"
}

For more examples please check out the tests here.

Available parameters:

Name
Required
Description

registry str

True

The ID or name of an existing Registry.

repository str

False

The name of an existing Repository.

filters dict

False

Filter that can be used to list only objects which have a certain set of propeties. Filters should be a dict with a key containing keys and value pair in the following format: 'properties.name': 'server_name'

api_url str

False

The Ionos API base URL.

certificate_fingerprint str

False

The Ionos API certificate fingerprint.

username str

False

The Ionos username. Overrides the IONOS_USERNAME environment variable.

password str

False

The Ionos password. Overrides the IONOS_PASSWORD environment variable.

token str

False

The Ionos token. Overrides the IONOS_TOKEN environment variable.

Last updated