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": 591165714,
  "organization_id": 114267492,
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "created_at": "2022-11-08 19:26:07 UTC",
  "updated_at": "2022-11-08 19:26:07 UTC",
  "gpg_key_products": [],
  "gpg_key_repos": [],
  "ssl_ca_alternate_content_sources": [],
  "ssl_client_alternate_content_sources": [],
  "ssl_client_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