Examples

POST /katello/api/activation_keys
{
  "organization_id": 114267492,
  "activation_key": {
    "name": "Unlimited Key",
    "unlimited_hosts": true
  }
}
201
{
  "service_level": null,
  "content_overrides": [],
  "id": null,
  "name": "Unlimited Key",
  "description": null,
  "unlimited_hosts": true,
  "auto_attach": true,
  "content_view_id": null,
  "environment_id": null,
  "usage_count": 0,
  "user_id": 135138680,
  "max_hosts": null,
  "release_version": null,
  "purpose_usage": null,
  "purpose_role": null,
  "organization_id": 114267492,
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "created_at": null,
  "updated_at": null,
  "content_view": null,
  "environment": null,
  "products": [
    {
      "id": 785257261,
      "name": "Fedora"
    }
  ],
  "host_collections": [],
  "purpose_addons": [],
  "permissions": {
    "view_activation_keys": true,
    "edit_activation_keys": true,
    "destroy_activation_keys": true
  }
}

Params

Param name Description
organization_id
required

organization identifier

Validations:

  • Must be a number.

name
required

name

Validations:

  • String

description
optional

description

Validations:

  • String

environment
optional

environment

Validations:

  • Hash

environment_id
optional

environment id

Validations:

  • Must be a number.

content_view_id
optional

content view id

Validations:

  • Must be a number.

max_hosts
optional

maximum number of registered content hosts

Validations:

  • Must be a number.

unlimited_hosts
optional

can the activation key have unlimited hosts

Validations:

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

release_version
optional

content release version

Validations:

  • String

service_level
optional

service level

Validations:

  • String

auto_attach DEPRECATED
optional

auto attach subscriptions upon registration

Validations:

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

purpose_usage
optional

Sets the system purpose usage

Validations:

  • String

purpose_role
optional

Sets the system purpose usage

Validations:

  • String

purpose_addons
optional

Sets the system add-ons

Validations:

  • Must be an array of any type