GET /katello/api/sync_plans
List sync plans

GET /katello/api/organizations/:organization_id/sync_plans

Parametry

Nazwa parametru Opis
organization_id
wymagany

Filter sync plans by organization name or label

Validations:

  • number.

name
opcjonalny

filter by name

Validations:

  • String

sync_date
opcjonalny

filter by sync date

Validations:

  • String

interval
opcjonalny

filter by interval

Validations:

  • Must be one of: hourly, daily, weekly.

search
opcjonalny

Search string

Validations:

  • String

page
opcjonalny

Page number, starting at 1

Validations:

  • number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • number.

order
opcjonalny

Sort field and order, eg. 'name DESC'

Validations:

  • String

full_result
opcjonalny

Whether or not to show all results

Validations:

  • boolean

sort
opcjonalny

Hash version of 'order' param

Validations:

  • Hash

sort[by]
opcjonalny

Field to sort the results on

Validations:

  • String

sort[order]
opcjonalny

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String


GET /katello/api/organizations/:organization_id/sync_plans/:id
Show a sync plan

GET /katello/api/sync_plans/:id
Show a sync plan

Parametry

Nazwa parametru Opis
organization_id
opcjonalny

Filter sync plans by organization name or label

Validations:

  • number.

id
wymagany

sync plan numeric identifier

Validations:

  • number.


POST /katello/api/organizations/:organization_id/sync_plans
Create a sync plan

Parametry

Nazwa parametru Opis
organization_id
wymagany

Filter sync plans by organization name or label

Validations:

  • number.

name
wymagany

sync plan name

Validations:

  • String

interval
wymagany

how often synchronization should run

Validations:

  • Must be one of: hourly, daily, weekly.

sync_date
wymagany

start datetime of synchronization

Validations:

  • String

description
opcjonalny

sync plan description

Validations:

  • String

enabled
wymagany

enables or disables synchronization

Validations:

  • boolean


PUT /katello/api/organizations/:organization_id/sync_plans/:id
Update a sync plan

PUT /katello/api/sync_plans/:id
Update a sync plan

Parametry

Nazwa parametru Opis
organization_id
opcjonalny

Filter sync plans by organization name or label

Validations:

  • number.

id
wymagany

sync plan numeric identifier

Validations:

  • number.

name
opcjonalny

sync plan name

Validations:

  • String

interval
opcjonalny

how often synchronization should run

Validations:

  • Must be one of: hourly, daily, weekly.

sync_date
opcjonalny

start datetime of synchronization

Validations:

  • String

description
opcjonalny

sync plan description

Validations:

  • String

enabled
opcjonalny

enables or disables synchronization

Validations:

  • boolean


DELETE /katello/api/organizations/:organization_id/sync_plans/:id
Destroy a sync plan

DELETE /katello/api/sync_plans/:id
Destroy a sync plan

Parametry

Nazwa parametru Opis
organization_id
opcjonalny

Filter sync plans by organization name or label

Validations:

  • number.

id
opcjonalny

sync plan numeric identifier

Validations:

  • number.


PUT /katello/api/organizations/:organization_id/sync_plans/:id/add_products
Add products to sync plan

Parametry

Nazwa parametru Opis
id
wymagany

ID of the sync plan

Validations:

  • String

product_ids
wymagany

List of product ids to add to the sync plan

Validations:

  • Must be an array of any type


PUT /katello/api/organizations/:organization_id/sync_plans/:id/remove_products
Remove products from sync plan

Parametry

Nazwa parametru Opis
id
wymagany

ID of the sync plan

Validations:

  • String

product_ids
wymagany

List of product ids to remove from the sync plan

Validations:

  • Must be an array of any type


PUT /katello/api/sync_plans/:id/sync
Initiate a sync of the products attached to the sync plan

PUT /katello/api/organizations/:organization_id/sync_plans/:id/sync
Initiate a sync of the products attached to the sync plan

Parametry

Nazwa parametru Opis
id
wymagany

ID of the sync plan

Validations:

  • String