kickstart

Description

Provides methods to create kickstart files

Namespace:

kickstart

Method: cloneProfile

HTTP POST

Description:

Clone a Kickstart Profile

Parameters:

  • string sessionKey

  • string ksLabelToClone - Label of the kickstart profile to clone

  • string newKsLabel - label of the cloned profile

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: createProfile

HTTP POST

Description:

Create a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartHost - Kickstart hostname (of a Uyuni server or proxy) used to construct the default download URL for the new kickstart profile.

  • string rootPassword - Root password.

  • string updateType - Should the profile update itself to use the newest tree available? Possible values are: none (default) or all (includes custom Kickstart Trees).

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: createProfile

HTTP POST

Description:

Create a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartHost - Kickstart hostname (of a Uyuni server or proxy) used to construct the default download URL for the new kickstart profile.

  • string rootPassword - Root password.

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: createProfileWithCustomUrl

HTTP POST

Description:

Create a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • boolean downloadUrl - Download URL, or 'default' to use the kickstart tree’s default URL.

  • string rootPassword - Root password.

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: createProfileWithCustomUrl

HTTP POST

Description:

Create a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • boolean downloadUrl - Download URL, or 'default' to use the kickstart tree’s default URL.

  • string rootPassword - Root password.

  • string updateType - Should the profile update itself to use the newest tree available? Possible values are: none (default) or all (includes custom Kickstart Trees).

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: deleteProfile

HTTP POST

Description:

Delete a kickstart profile

Parameters:

  • string sessionKey

  • string ksLabel - The label of the kickstart profile you want to remove

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: disableProfile

HTTP POST

Description:

Enable/Disable a Kickstart Profile

Parameters:

  • string sessionKey

  • string profileLabel - Label for the kickstart tree you want to en/disable

  • string disabled - true to disable the profile

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: findKickstartForIp

HTTP GET

Description:

Find an associated kickstart for a given ip address.

Parameters:

  • string sessionKey

  • string ipAddress - The ip address to search for (i.e. 192.168.0.1)

Returns:

  • string label - label of the kickstart. Empty string if not found

Method: importFile

HTTP POST

Description:

Import a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartFileContents - Contents of the kickstart file to import.

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: importFile

HTTP POST

Description:

Import a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartHost - Kickstart hostname (of a Uyuni server or proxy) used to construct the default download URL for the new kickstart profile. Using this option signifies that this default URL will be used instead of any url/nfs/cdrom/harddrive commands in the kickstart file itself.

  • string kickstartFileContents - Contents of the kickstart file to import.

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: importFile

HTTP POST

Description:

Import a kickstart profile.

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartHost - Kickstart hostname (of a Uyuni server or proxy) used to construct the default download URL for the new kickstart profile. Using this option signifies that this default URL will be used instead of any url/nfs/cdrom/harddrive commands in the kickstart file itself.

  • string kickstartFileContents - Contents of the kickstart file to import.

  • string updateType - Should the profile update itself to use the newest tree available? Possible values are: none (default) or all (includes custom Kickstart Trees).

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: importRawFile

HTTP POST

Description:

Import a raw kickstart file into #product().

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartFileContents - Contents of the kickstart file to import.

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: importRawFile

HTTP POST

Description:

Import a raw kickstart file into #product().

Parameters:

  • string sessionKey

  • string profileLabel - Label for the new kickstart profile.

  • string virtualizationType - none, para_host, qemu, xenfv or xenpv.

  • string kickstartableTreeLabel - Label of a kickstartable tree to associate the new profile with.

  • string kickstartFileContents - Contents of the kickstart file to import.

  • string updateType - Should the profile update itself to use the newest tree available? Possible values are: none (default) or all (includes custom Kickstart Trees).

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: isProfileDisabled

HTTP GET

Description:

Returns whether a kickstart profile is disabled

Parameters:

  • string sessionKey

  • string profileLabel - kickstart profile label

Returns:

  • boolean disabled - true if profile is disabled

Method: listAllIpRanges

HTTP GET

Description:

List all Ip Ranges and their associated kickstarts available in the user’s org.

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct kickstart IP range

    • string "ksLabel" - the kickstart label associated with the IP range

    • string "max" - the max IP of the range

    • string "min" - the min IP of the range

Method: listAutoinstallableChannels

HTTP GET

Description:

List autoinstallable channels for the logged in user.

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct channel

    • int "id"

    • string "name"

    • string "label"

    • string "arch_name"

    • string "arch_label"

    • string "summary"

    • string "description"

    • string "checksum_label"

    • dateTime.iso8601 "last_modified"

    • string "maintainer_name"

    • string "maintainer_email"

    • string "maintainer_phone"

    • string "support_policy"

    • string "gpg_key_url"

    • string "gpg_key_id"

    • string "gpg_key_fp"

    • dateTime.iso8601 "yumrepo_last_sync" - (optional)

    • string "end_of_life"

    • string "parent_channel_label"

    • string "clone_original"

    • array "contentSources"

      • struct content source

        • int "id"

        • string "label"

        • string "sourceUrl"

        • string "type"

Method: listKickstartableChannels

HTTP GET

Description:

List kickstartable channels for the logged in user.

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct channel

    • int "id"

    • string "name"

    • string "label"

    • string "arch_name"

    • string "arch_label"

    • string "summary"

    • string "description"

    • string "checksum_label"

    • dateTime.iso8601 "last_modified"

    • string "maintainer_name"

    • string "maintainer_email"

    • string "maintainer_phone"

    • string "support_policy"

    • string "gpg_key_url"

    • string "gpg_key_id"

    • string "gpg_key_fp"

    • dateTime.iso8601 "yumrepo_last_sync" - (optional)

    • string "end_of_life"

    • string "parent_channel_label"

    • string "clone_original"

    • array "contentSources"

      • struct content source

        • int "id"

        • string "label"

        • string "sourceUrl"

        • string "type"

Method: listKickstarts

HTTP GET

Description:

Provides a list of kickstart profiles visible to the user’s org

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct kickstart

    • string "label"

    • string "tree_label"

    • string "name"

    • boolean "advanced_mode"

    • boolean "org_default"

    • boolean "active"

    • string "update_type"

Method: renameProfile

HTTP POST

Description:

Rename a kickstart profile in #product().

Parameters:

  • string sessionKey

  • string originalLabel - Label for the kickstart profile you want to rename

  • string newLabel - new label to change to

Returns:

  • int - 1 on success, exception thrown otherwise.