Examples

PUT /katello/api/repositories/84409059/import_uploads
{
  "uploads": [
    {
      "id": "1",
      "size": "12333",
      "checksum": "asf23421324",
      "name": "test"
    }
  ],
  "content_type": "docker_manifest",
  "repository": {
    "content_type": "docker_manifest"
  }
}
202
{
  "id": null,
  "label": null,
  "pending": null,
  "username": null,
  "started_at": null,
  "ended_at": null,
  "state": null,
  "result": null,
  "progress": null,
  "input": null,
  "output": {},
  "humanized": null,
  "cli_example": null,
  "available_actions": {
    "cancellable": null,
    "resumable": null
  }
}

Params

Param name Description
id
required

Repository id

Validations:

  • Must be a number.

async
optional

Do not wait for the ImportUpload action to finish. Default: false

Validations:

  • Must be one of: true, false, 1, 0.

publish_repository
optional

Whether or not to regenerate the repository on disk. Default: true

Validations:

  • Must be one of: true, false, 1, 0.

sync_capsule
optional

Whether or not to sync an external capsule after upload. Default: true

Validations:

  • Must be one of: true, false, 1, 0.

content_type
optional

content type ('deb', 'docker_manifest', 'file', 'ostree_ref', 'rpm', 'srpm')

Validations:

  • Must be one of: deb, docker_manifest, file, ostree_ref, python_package, rpm, srpm.

uploads
optional

Array of uploads to import

Validations:

  • Must be an Array of nested elements

uploads[id]
required

Validations:

  • String

uploads[content_unit_id]
optional

Validations:

  • String

uploads[size]
optional

Validations:

  • String

uploads[checksum]
optional

Validations:

  • String

uploads[name]
required

Needs to only be set for file repositories or docker tags

Validations:

  • String

uploads[digest]
optional

Needs to only be set for docker tags

Validations:

  • String

ostree_ref
optional

OSTree ref branch that holds the reference to the last commit

Validations:

  • String

ostree_repository_name
optional

Name of the repository in the ostree archive

Validations:

  • String