activationkey
- 1. activationkey_addchildchannels
- 2. activationkey_addconfigchannels
- 3. activationkey_addentitlements
- 4. activationkey_addgroups
- 5. activationkey_addpackages
- 6. activationkey_clone
- 7. activationkey_create
- 8. activationkey_delete
- 9. activationkey_details
- 10. activationkey_diff
- 11. activationkey_disable
- 12. activationkey_disableconfigdeployment
- 13. activationkey_enable
- 14. activationkey_enableconfigdeployment
- 15. activationkey_export
- 16. activationkey_import
- 17. activationkey_list
- 18. activationkey_listbasechannel
- 19. activationkey_listchildchannels
- 20. activationkey_listconfigchannels
- 21. activationkey_listentitlements
- 22. activationkey_listgroups
- 23. activationkey_listpackages
- 24. activationkey_listsystems
- 25. activationkey_removechildchannels
- 26. activationkey_removeconfigchannels
- 27. activationkey_removeentitlements
- 28. activationkey_removegroups
- 29. activationkey_removepackages
- 30. activationkey_setbasechannel
- 31. activationkey_setconfigchannelorder
- 32. activationkey_setcontactmethod
- 33. activationkey_setdescription
- 34. activationkey_setuniversaldefault
- 35. activationkey_setusagelimit
The following spacecmd commands are available for use with activation keys.
1. activationkey_addchildchannels
Add child channels to an activation key.
用法:activationkey_addchildchannels KEY <频道 ...>
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.
用法:activationkey_addentitlements KEY <权利 ...>
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.
用法:activationkey_addgroups KEY <组 ...>
5. activationkey_addpackages
Add packages to an activation key.
用法:activationkey_addpackages KEY <软件包 ...>
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.
用法:activationkey_delete KEY
9. activationkey_details
Show details of an existing activation key.
用法: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.
用法:activationkey_disable KEY [KEY ...]
12. activationkey_disableconfigdeployment
Disable configuration channel deployment for an existing activation key.
用法:activationkey_disableconfigdeployment KEY
13. activationkey_enable
Enable an existing activation key.
用法:activationkey_enable KEY [KEY ...]
14. activationkey_enableconfigdeployment
Enable configuration channel deployment for an existing activation key.
用法: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
用法:activationkey_import <JSON 文件 ...>
17. activationkey_list
List all existing activation keys.
用法:activationkey_list
18. activationkey_listbasechannel
List the base channel associated with an activation key.
用法:activationkey_listbasechannel KEY
19. activationkey_listchildchannels
List child channels associated with an activation key.
用法:activationkey_listchildchannels KEY
20. activationkey_listconfigchannels
List configuration channels associated with an activation key.
用法:activationkey_listconfigchannels KEY
21. activationkey_listentitlements
List entitlements associated with an activation key.
用法:activationkey_listentitlements KEY
22. activationkey_listgroups
List groups associated with an activation key
用法:activationkey_listgroups KEY
23. activationkey_listpackages
List packages associated with an activation key.
用法:activationkey_listpackages KEY
24. activationkey_listsystems
List systems registered with an activation key.
用法:activationkey_listsystems KEY
25. activationkey_removechildchannels
Remove child channels from an activation key.
用法:activationkey_removechildchannels KEY <频道 ...>
26. activationkey_removeconfigchannels
Remove configuration channels from an activation key.
用法:activationkey_removeconfigchannels KEY <频道 ...>
27. activationkey_removeentitlements
Remove entitlements from an activation key.
用法:activationkey_removeentitlements KEY <权利 ...>
28. activationkey_removegroups
Remove groups from an activation key.
用法:activationkey_removegroups KEY <组 ...>
29. activationkey_removepackages
Remove packages from an activation key.
用法:activationkey_removepackages KEY <软件包 ...>
30. activationkey_setbasechannel
Set the base channel for an activation key.
用法:activationkey_setbasechannel KEY CHANNEL
31. activationkey_setconfigchannelorder
Set the ranked order of configuration channels.
用法: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.) The following contact methods are available for use with traditional spacecmd: ['default', 'ssh-push', 'ssh-push-tunnel']
用法:activationkey_setcontactmethod KEY CONTACT_METHOD
33. activationkey_setdescription
Add a description for an activation key.
用法:activationkey_setdescription KEY DESCRIPTION
34. activationkey_setuniversaldefault
Set a specific key as the universal default.
用法:activationkey_setuniversaldefault KEY
Using a universal default key is not a Best Practice recommendation. |
35. activationkey_setusagelimit
Set the usage limit of an activation key, can be a number or unlimited
.
usage: activationkey_setbasechannel KEY <usage limit> usage: activationkey_setbasechannel KEY unlimited
Usage limits are only applicable to traditionally managed systems. Currently usage limits do not apply to Salt or foreign managed systems. |