PUT /katello/api/products/bulk/destroy
Destroy one or more products

Examples

PUT /katello/api/products/bulk/destroy
{
  "ids": [
    785257261
  ],
  "organization_id": 114267492,
  "products_bulk_action": {
    "ids": [
      785257261
    ],
    "organization_id": 114267492
  }
}
200
{
  "displayMessages": {
    "success": [
      "Successfully initiated removal of 1 product(s)"
    ],
    "error": []
  }
}

Params

Param name Description
ids
required

List of product ids

Validations:

  • Must be an array of any type


PUT /katello/api/products/bulk/sync
Sync one or more products

Examples

PUT /katello/api/products/bulk/sync
{
  "ids": [
    785257261,
    905280015
  ],
  "organization_id": 114267492,
  "skip_metadata_check": true,
  "products_bulk_action": {
    "ids": [
      785257261,
      905280015
    ],
    "organization_id": 114267492,
    "skip_metadata_check": true
  }
}
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
ids
required

List of product ids

Validations:

  • Must be an array of any type

skip_metadata_check
optional

Force sync even if no upstream changes are detected. Non-yum repositories are skipped.

Validations:

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

validate_contents
optional

Force a sync and validate the checksums of all content. Non-yum repositories (or those with On Demand download policy) are skipped.

Validations:

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


PUT /katello/api/products/bulk/verify_checksum
Verify checksum for one or more products

Examples

PUT /katello/api/products/bulk/verify_checksum
{
  "ids": [
    785257261,
    905280015
  ],
  "organization_id": 114267492,
  "products_bulk_action": {
    "ids": [
      785257261,
      905280015
    ],
    "organization_id": 114267492
  }
}
204

Params

Param name Description
ids
required

List of product ids

Validations:

  • Must be an array of any type


PUT /katello/api/products/bulk/http_proxy
Update the HTTP proxy configuration on the repositories of one or more products.

Examples

PUT /katello/api/products/bulk/http_proxy
{
  "ids": [
    785257261
  ],
  "organization_id": 114267492,
  "http_proxy_policy": "global_default_http_proxy",
  "products_bulk_action": {
    "ids": [
      785257261
    ],
    "organization_id": 114267492,
    "http_proxy_policy": "global_default_http_proxy"
  }
}
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
ids
required

List of product ids

Validations:

  • Must be an array of any type

http_proxy_policy
optional

policy for HTTP proxy for content sync

Validations:

  • Must be one of: global_default_http_proxy, none, use_selected_http_proxy.

http_proxy_id
optional

HTTP Proxy identifier to associated

Validations:

  • Must be a number.


PUT /katello/api/products/bulk/sync_plan
Sync one or more products

Examples

PUT /katello/api/products/bulk/sync_plan
{
  "ids": [
    785257261,
    905280015
  ],
  "organization_id": 114267492,
  "products_bulk_action": {
    "ids": [
      785257261,
      905280015
    ],
    "organization_id": 114267492
  }
}
204

Params

Param name Description
ids
required

List of product ids

Validations:

  • Must be an array of any type

plan_id
required

Sync plan identifier to attach

Validations:

  • Must be a number.