Examples

POST /katello/api/content_credentials
{
  "content": "asdf",
  "content_type": "gpg_key",
  "name": "foo",
  "organization_id": 114267492,
  "content_credential": {
    "name": "foo",
    "organization_id": 114267492,
    "content": "asdf",
    "content_type": "gpg_key"
  }
}
201
{
  "name": "foo",
  "content_type": "gpg_key",
  "content": "asdf",
  "id": 591165715,
  "organization_id": 114267492,
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "created_at": "2023-08-23 19:57:09 UTC",
  "updated_at": "2023-08-23 19:57:09 UTC",
  "gpg_key_products": [],
  "gpg_key_repos": [],
  "ssl_ca_alternate_content_sources": [],
  "ssl_client_alternate_content_sources": [],
  "ssl_key_alternate_content_sources": [],
  "ssl_ca_products": [],
  "ssl_ca_root_repos": [],
  "ssl_client_products": [],
  "ssl_client_root_repos": [],
  "ssl_key_products": [],
  "ssl_key_root_repos": [],
  "permissions": {
    "view_content_credenials": false,
    "edit_content_credenials": false,
    "destroy_content_credenials": false
  }
}

Params

Param name Description
organization_id
required

Organization identifier

Validations:

  • Must be a number.

name
required

Name of the Content Credential

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

content_type
required

Type of content: “cert”, “gpg_key”

Validations:

  • String

content
required

Public key block in DER encoding or certificate content

Validations:

  • String