kickstart.snippet

Description

Provides methods to create kickstart files

Namespace:

kickstart.snippet

Method: createOrUpdate

HTTP POST

Description:

Will create a snippet with the given name and contents if it doesn’t exist. If it does exist, the existing snippet will be updated.

Parameters:

  • string sessionKey

  • string name

  • string contents

Returns:

  • * struct snippet

    • string "name"

    • string "contents"

    • string "fragment" - the string to include in a kickstart file that will generate this snippet

    • string "file" - the local path to the file containing this snippet

Method: delete

HTTP POST

Description:

Delete the specified snippet. If the snippet is not found, 0 is returned.

Parameters:

  • string sessionKey

  • string name

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: listAll

HTTP GET

Description:

List all cobbler snippets for the logged in user

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct snippet

    • string "name"

    • string "contents"

    • string "fragment" - the string to include in a kickstart file that will generate this snippet

    • string "file" - the local path to the file containing this snippet

Method: listCustom

HTTP GET

Description:

List only custom snippets for the logged in user. These snipppets are editable.

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct snippet

    • string "name"

    • string "contents"

    • string "fragment" - the string to include in a kickstart file that will generate this snippet

    • string "file" - the local path to the file containing this snippet

Method: listDefault

HTTP GET

Description:

List only pre-made default snippets for the logged in user. These snipppets are not editable.

Parameters:

  • string sessionKey

Returns:

  • array :

  • struct snippet

    • string "name"

    • string "contents"

    • string "fragment" - the string to include in a kickstart file that will generate this snippet

    • string "file" - the local path to the file containing this snippet