GET /katello/api/capsules/:id/content/counts
List content counts for the smart proxy

Examples

GET /katello/api/capsules/281110143/content/counts
200

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer


POST /katello/api/capsules/:id/content/update_counts
Update content counts for the smart proxy

Examples

POST /katello/api/capsules/281110143/content/update_counts
{
  "capsule_content": {}
}
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

Id of the smart proxy

Validations:

  • Integer


GET /katello/api/capsules/:id/content/lifecycle_environments
List the lifecycle environments attached to the smart proxy

Examples

GET /katello/api/capsules/281110143/content/lifecycle_environments
200
{
  "total": 0,
  "subtotal": 0,
  "selectable": 0,
  "page": null,
  "per_page": null,
  "error": null,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": []
}

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer

organization_id
optional

Id of the organization to limit environments on

Validations:

  • Integer


GET /katello/api/capsules/:id/content/available_lifecycle_environments
List the lifecycle environments not attached to the smart proxy

Examples

GET /katello/api/capsules/281110143/content/available_lifecycle_environments
204

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer

organization_id
optional

Id of the organization to limit environments on

Validations:

  • Integer


POST /katello/api/capsules/:id/content/lifecycle_environments
Add lifecycle environments to the smart proxy

Examples

POST /katello/api/capsules/281110143/content/lifecycle_environments
{
  "environment_id": 562075838,
  "capsule_content": {
    "environment_id": 562075838
  }
}
204

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer

environment_id
required

Id of the lifecycle environment

Validations:

  • Integer


DELETE /katello/api/capsules/:id/content/lifecycle_environments/:environment_id
Remove lifecycle environments from the smart proxy

Examples

DELETE /katello/api/capsules/281110143/content/lifecycle_environments/562075838
{
  "capsule_content": {}
}
200
{
  "total": 0,
  "subtotal": 0,
  "selectable": 0,
  "page": null,
  "per_page": null,
  "error": null,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": []
}

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer

environment_id
required

Id of the lifecycle environment

Validations:

  • Integer


POST /katello/api/capsules/:id/content/sync
Synchronize the content to the smart proxy

Examples

POST /katello/api/capsules/281110143/content/sync
{
  "environment_id": 562075838,
  "capsule_content": {
    "environment_id": 562075838
  }
}
204

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer

environment_id
optional

Id of the environment to limit the synchronization on

Validations:

  • Integer

content_view_id
optional

Id of the content view to limit the synchronization on

Validations:

  • Integer

repository_id
optional

Id of the repository to limit the synchronization on

Validations:

  • Integer

skip_metadata_check
optional

Skip metadata check on each repository on the smart proxy

Validations:

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


GET /katello/api/capsules/:id/content/sync
Get current smart proxy synchronization status

Examples

GET /katello/api/capsules/281110143/content/sync
200
{
  "last_sync_time": null,
  "download_policy": null,
  "active_sync_tasks": [],
  "last_failed_sync_tasks": [],
  "last_sync_task": null,
  "last_failed_reclaim_tasks": [],
  "lifecycle_environments": [],
  "last_sync_words": null,
  "unsyncable_content_types": [],
  "content_counts": null
}

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer

organization_id
optional

Id of the organization to get the status for

Validations:

  • Integer


DELETE /katello/api/capsules/:id/content/sync
Cancel running smart proxy synchronization

Examples

GET /katello/api/capsules/281110143/content/sync
200
{
  "message": "There's no running synchronization for this smart proxy."
}

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Integer


POST /katello/api/capsules/:id/content/reclaim_space
Reclaim space from all On Demand repositories on a smart proxy

Examples

POST /katello/api/capsules/281110143/content/reclaim_space
{
  "capsule_content": {}
}
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

Id of the smart proxy

Validations:

  • Must be a number.


POST /katello/api/capsules/:id/content/verify_checksum
Check for missing or corrupted artifacts, and attempt to redownload them.

Params

Param name Description
id
required

Id of the smart proxy

Validations:

  • Must be a number.

environment_id
optional

Id of the environment to limit verifying checksum on

Validations:

  • Integer

content_view_id
optional

Id of the content view to limit verifying checksum on

Validations:

  • Integer

repository_id
optional

Id of the repository to limit verifying checksum on

Validations:

  • Integer