application program interface API Overview: activationkey
( Return to API Overview )

Available methods

Description

Contains methods to access common activation key functions available from the web interface.

Namespace: activationkey


Method: addChildChannels

Description:
Add child channels to an activation key.

Parameters:

Returns: int - 1 on success.


Method: addConfigChannels

Description:
Given a list of activation keys and configuration channels, this method appends the configuration channels to either the top or the bottom (whichever you specify) of an activation key's configuration channels list. The ordering of the configuration channels provided in the add list is maintained while adding. If one of the configuration channels in the 'add' list already exists in an activation key, the configuration channel will be re-ranked to the appropriate place.

Parameters:

Returns: int - 1 on success.


Method: addEntitlements

Description:
Add entitlements to an activation key. Currently only add-on entitlements are permitted. (monitoring_entitled, provisioning_entitled, virtualization_host, virtualization_host_platform)

Parameters:

Returns: int - 1 on success.


Method: addPackageNames

Description:
Add package names to an activation key.

Parameters:

Returns: int - 1 on success.


Method: addServerGroups

Description:
Add server groups to an activation key.

Parameters:

Returns: int - 1 on success.


Method: create

Description:
Create a new activation key. The activation key parameter passed in will be prefixed with the organization ID, and this value will be returned from the create call. Eg. If the caller passes in the key "foo" and belong to an organization with the ID 100, the actual activation key will be "100-foo". This call allows for the setting of a usage limit on this activation key. If unlimited usage is desired see the similarly named API method with no usage limit argument.

Parameters:

Returns: string - The new activation key.


Method: create

Description:
Create a new activation key with unlimited usage. The activation key parameter passed in will be prefixed with the organization ID, and this value will be returned from the create call. Eg. If the caller passes in the key "foo" and belong to an organization with the ID 100, the actual activation key will be "100-foo".

Parameters:

Returns: string - The new activation key.


Method: delete

Description:
Delete an activation key.

Parameters:

Returns: int - 1 on success.


Method: getDetails

Description:
Lookup an activation key's details.

Parameters:

Returns: struct (activation key)


Method: listActivationKeys

Description:
List activation keys that are visible to the user.

Parameters:

Returns: array


Method: listConfigChannels

Description:
List configuration channels associated to an activation key.

Parameters:

Returns: array


Method: removeChildChannels

Description:
Remove child channels from an activation key.

Parameters:

Returns: int - 1 on success.


Method: removeConfigChannels

Description:
Remove configuration channels from the given activation keys.

Parameters:

Returns: int - 1 on success.


Method: removeEntitlements

Description:
Remove entitlements from an activation key. Currently only add-on entitlements are permitted. (monitoring_entitled, provisioning_entitled, virtualization_host, virtualization_host_platform)

Parameters:

Returns: int - 1 on success.


Method: removePackageNames

Description:
Remove package names from an activation key.

Parameters:

Returns: int - 1 on success.


Method: removeServerGroups

Description:
Remove server groups from an activation key.

Parameters:

Returns: int - 1 on success.


Method: setConfigChannels

Description:
Replace the existing set of configuration channels on the given activation keys. Channels are ranked by their order in the array.

Parameters:

Returns: int - 1 on success.


Method: setDetails

Description:
Update the details of an activation key.

Parameters:

Returns: int - 1 on success.