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

Examples

PUT /katello/api/products/bulk/destroy
{
  "ids": [
    "123123123001",
    "123123123004"
  ],
  "organization_id": 114267492,
  "products_bulk_action": {
    "ids": [
      "123123123001",
      "123123123004"
    ],
    "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/sync
Sync one or more products

Examples

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

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,
  "plan_id": 1,
  "products_bulk_action": {
    "ids": [
      785257261,
      905280015
    ],
    "organization_id": 114267492,
    "plan_id": 1
  }
}
200
{
  "displayMessages": {
    "success": [
      "Successfully changed sync plan for 2 product(s)"
    ],
    "error": []
  }
}

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.