Examples

POST /katello/api/alternate_content_sources
{
  "name": "Yum ACS RHUI_bad_content_type_test",
  "smart_proxy_ids": [
    767380118
  ],
  "http_proxy_id": 1022235470,
  "ssl_ca_cert_id": 70104267,
  "ssl_client_cert_id": 60750479,
  "ssl_client_key_id": 81778079,
  "content_type": "file",
  "base_url": "https://fixtures.pulpproject.org/",
  "subpaths": [],
  "alternate_content_source_type": "rhui",
  "verify_ssl": true,
  "use_http_proxies": null,
  "upstream_username": "admin",
  "upstream_password": "changeme",
  "alternate_content_source": {
    "name": "Yum ACS RHUI_bad_content_type_test",
    "ssl_ca_cert_id": 70104267,
    "ssl_client_cert_id": 60750479,
    "ssl_client_key_id": 81778079,
    "base_url": "https://fixtures.pulpproject.org/",
    "subpaths": [],
    "content_type": "file",
    "alternate_content_source_type": "rhui",
    "verify_ssl": true,
    "upstream_username": "admin",
    "upstream_password": "changeme",
    "use_http_proxies": null,
    "smart_proxy_ids": [
      767380118
    ]
  }
}
422
{
  "displayMessage": "Validation failed: Content type 'file' is not valid for RHUI ACS",
  "errors": {
    "content_type": [
      "'file' is not valid for RHUI ACS"
    ]
  }
}

Params

Param name Description
content_type
optional

The content type for the Alternate Content Source

Validations:

  • Must be one of: file, yum.

alternate_content_source_type
optional

The Alternate Content Source type

Validations:

  • Must be one of: custom, simplified, rhui.

name
optional

Name of the alternate content source

Validations:

  • String

description
optional

Description for the alternate content source

Validations:

  • String

base_url
optional

Base URL for finding alternate content

Validations:

  • String

subpaths
optional

Path suffixes for finding alternate content

Validations:

  • Must be an array of any type

smart_proxy_ids
optional

Ids of smart proxies to associate

Validations:

  • Must be an array of any type

smart_proxy_names
optional

Names of smart proxies to associate

Validations:

  • Must be an array of any type

upstream_username
optional

Basic authentication username

Validations:

  • String

upstream_password
optional

Basic authentication password

Validations:

  • String

ssl_ca_cert_id
optional

Identifier of the content credential containing the SSL CA Cert

Validations:

  • Must be a number.

ssl_client_cert_id
optional

Identifier of the content credential containing the SSL Client Cert

Validations:

  • Must be a number.

ssl_client_key_id
optional

Identifier of the content credential containing the SSL Client Key

Validations:

  • Must be a number.

verify_ssl
optional

If SSL should be verified for the upstream URL

Validations:

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

use_http_proxies
optional

If the smart proxies' assigned HTTP proxies should be used

Validations:

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

product_ids
optional

IDs of products to copy repository information from into a Simplified Alternate Content Source. Products must include at least one repository of the chosen content type.

Validations:

  • Must be an array of any type