activationkey

The following spacecmd commands are available for use with activation keys.

1. activationkey_addchildchannels

Add child channels to an activation key.

usage: activationkey_addchildchannels KEY <CHANNEL ...>

2. activationkey_addconfigchannels

Add configuration channels to an activation key.

usage: activationkey_addconfigchannels KEY <CHANNEL ...> [options]

options:
  -t add channels to the top of the list
  -b add channels to the bottom of the list

3. activationkey_addentitlements

Add available entitlements to an activation key.

usage: activationkey_addentitlements KEY <ENTITLEMENT ...>

In the WebUI entitlements are known as System Types. Nevertheless the spacecmd backend still utilizes the entitlements term. Therefore any scripts you may be using can remain unchanged.

4. activationkey_addgroups

Add existing groups to an activation key.

usage: activationkey_addgroups KEY <GROUP ...>

5. activationkey_addpackages

Add packages to an activation key.

usage: activationkey_addpackages KEY <PACKAGE ...>

6. activationkey_clone

Clone an existing activation key.

usage examples:
                 activationkey_clone foo_key -c bar_key
                 activationkey_clone foo_key1 foo_key2 -c prefix
                 activationkey_clone foo_key -x "s/foo/bar"
                 activationkey_clone foo_key1 foo_key2 -x "s/foo/bar"

options:
  -c CLONE_NAME  : Name of the resulting key, treated as a prefix for multiple
                   keys
  -x "s/foo/bar" : Optional regex replacement, replaces foo with bar in the
                   clone description, base-channel label, child-channel
                   labels, config-channel names

7. activationkey_create

Create a new activation key.

usage: activationkey_create [options]

options:
  -n NAME
  -d DESCRIPTION
  -b BASE_CHANNEL
  -u set key as universal default
  -e [enterprise_entitled,virtualization_host]

8. activationkey_delete

Delete an existing activation key.

usage: activationkey_delete KEY

9. activationkey_details

Show details of an existing activation key.

usage: activationkey_details KEY ...

10. activationkey_diff

Check the difference between two activation keys.

usage: activationkey_diff SOURCE_ACTIVATIONKEY TARGET_ACTIVATIONKEY

11. activationkey_disable

Disable an existing activation key.

usage: activationkey_disable KEY [KEY ...]

12. activationkey_disableconfigdeployment

Disable configuration channel deployment for an existing activation key.

usage: activationkey_disableconfigdeployment KEY

13. activationkey_enable

Enable an existing activation key.

usage: activationkey_enable KEY [KEY ...]

14. activationkey_enableconfigdeployment

Enable configuration channel deployment for an existing activation key.

usage: activationkey_enableconfigdeployment KEY

15. activationkey_export

Export activation keys to a JSON formatted file.

usage: activationkey_export [options] [<KEY> ...]

options:
    -f outfile.json : specify an output filename, defaults to <KEY>.json
                      if exporting a single key, akeys.json for multiple keys,
                      or akey_all.json if no KEY specified (export ALL)

Note : KEY list is optional, default is to export ALL keys

16. activationkey_import

Import activation keys from JSON files

usage: activationkey_import <JSONFILE ...>

17. activationkey_list

List all existing activation keys.

usage: activationkey_list

18. activationkey_listbasechannel

List the base channel associated with an activation key.

usage: activationkey_listbasechannel KEY

19. activationkey_listchildchannels

List child channels associated with an activation key.

usage: activationkey_listchildchannels KEY

20. activationkey_listconfigchannels

List configuration channels associated with an activation key.

usage: activationkey_listconfigchannels KEY

21. activationkey_listentitlements

List entitlements associated with an activation key.

usage: activationkey_listentitlements KEY

22. activationkey_listgroups

List groups associated with an activation key

usage: activationkey_listgroups KEY

23. activationkey_listpackages

List packages associated with an activation key.

usage: activationkey_listpackages KEY

24. activationkey_listsystems

List systems registered with an activation key.

usage: activationkey_listsystems KEY

25. activationkey_removechildchannels

Remove child channels from an activation key.

usage: activationkey_removechildchannels KEY <CHANNEL ...>

26. activationkey_removeconfigchannels

Remove configuration channels from an activation key.

usage: activationkey_removeconfigchannels KEY <CHANNEL ...>

27. activationkey_removeentitlements

Remove entitlements from an activation key.

usage: activationkey_removeentitlements KEY <ENTITLEMENT ...>

28. activationkey_removegroups

Remove groups from an activation key.

usage: activationkey_removegroups KEY <GROUP ...>

29. activationkey_removepackages

Remove packages from an activation key.

usage: activationkey_removepackages KEY <PACKAGE ...>

30. activationkey_setbasechannel

Set the base channel for an activation key.

usage: activationkey_setbasechannel KEY CHANNEL

31. activationkey_setconfigchannelorder

Set the ranked order of configuration channels.

usage: activationkey_setconfigchannelorder KEY

32. activationkey_setcontactmethod

Set the contact method to use for systems registered with a specific key. (Use the XML-RPC API to access the latest contact methods.)

usage: activationkey_setcontactmethod KEY CONTACT_METHOD

33. activationkey_setdescription

Add a description for an activation key.

usage: activationkey_setdescription KEY DESCRIPTION

34. activationkey_setuniversaldefault

Set a specific key as the universal default.

usage: activationkey_setuniversaldefault KEY

Using a universal default key is not a Best Practice recommendation.