This is a short document that lists the xmlrpc calls needed.
-- login:
curl -XPOST -d '
login
cobbler
cobbler
' http://localhost:25151/
ZyWe2dxicTWGsDpbo+WT3z1WZ2trEgfoaw==
-- create new system:
curl -XPOST -d '
new_system
ZyWe2dxicTWGsDpbo+WT3z1WZ2trEgfoaw==
' http://localhost:25151/
___NEW___system::qxK4MZaxtZzTaxZW98nNZWbgkmyTXtU14Q==
-- set system name:
curl -XPOST -d '
modify_system
___NEW___system::qxK4MZaxtZzTaxZW98nNZWbgkmyTXtU14Q==
name
systemname01
ZyWe2dxicTWGsDpbo+WT3z1WZ2trEgfoaw==
' http://localhost:25151/
1
-- set system profile:
curl -XPOST -d '
modify_system
___NEW___system::qxK4MZaxtZzTaxZW98nNZWbgkmyTXtU14Q==
profile
centos7-x86_64
ZyWe2dxicTWGsDpbo+WT3z1WZ2trEgfoaw==
' http://localhost:25151/
-- configure network interface (still need to figure out name of gateway property):
curl -XPOST -d '
modify_system
___NEW___system::ridhgThzSpL5wwjdWSonGsM8nv/HtSfNQQ==
modify_interface
macaddress-eth0
01:02:03:04:05:06
ipaddress-eth0
10.20.30.40
dnsname-eth0
systemname01.domain.tld
subnetmask-eth0
255.255.255.0
if-gateway-eth0
10.20.30.1
ZyWe2dxicTWGsDpbo+WT3z1WZ2trEgfoaw==
' http://localhost:25151/
1
-- save the system:
curl -XPOST -d '
save_system
___NEW___system::qxK4MZaxtZzTaxZW98nNZWbgkmyTXtU14Q==
ZyWe2dxicTWGsDpbo+WT3z1WZ2trEgfoaw==
' http://localhost:25151/
1
result will be 0 if save failed.
--- sync
curl -XPOST -d '
sync
zYli1fFyS3Hi6qlSPMorEWfiUhBfAuOsrA==
' http://localhost:25151/
1
-- create a kickstart file:
curl -XPOST -d '
read_or_write_kickstart_template
/var/lib/cobbler/kickstarts/foo.ks
0
# test content for the kickstart file
zYli1fFyS3Hi6qlSPMorEWfiUhBfAuOsrA==
' http://localhost:25151/
-- get a kickstart file:
curl -XPOST -d '
read_or_write_kickstart_template
/var/lib/cobbler/kickstarts/foo.ks
1
securetoken99
' http://localhost:25151/
-- create a snippet:
curl -XPOST -d '
read_or_write_snippet
/var/lib/cobbler/snippets/foo
0
# test content for the snippet file
zYli1fFyS3Hi6qlSPMorEWfiUhBfAuOsrA==
' http://localhost:25151/
-- get a snippet:
curl -XPOST -d '
read_or_write_snippet
/var/lib/cobbler/snippets/some-snippet
1
securetoken99
' http://localhost:25151/
-- get distros:
curl -XPOST -d '
get_distros
-1
4f8464lmE6s+6YmQcOr+ACJvdyd5kIzV0w==
' http://localhost:25151/
comment
kernel
/var/www/cobbler/ks_mirror/Ubuntu-14.04/install/netboot/ubuntu-installer/amd64/linux
uid
MTQ1MTg1NjMzNC4yMTk0MTg3My43Mzg0NTM
kernel_options_post
redhat_management_key
<<inherit>>
kernel_options
redhat_management_server
<<inherit>>
initrd
/var/www/cobbler/ks_mirror/Ubuntu-14.04/install/netboot/ubuntu-installer/amd64/initrd.gz
mtime
1451856336.460383
template_files
ks_meta
tree
http://@@http_server@@/cblr/links/Ubuntu-14.04-x86_64
boot_files
breed
ubuntu
os_version
trusty
mgmt_classes
fetchable_files
tree_build_time
0
arch
x86_64
name
Ubuntu-14.04-x86_64
owners
admin
ctime
1451856334.214615
source_repos
depth
0
-- get distro:
curl -XPOST -d '
get_distro
Ubuntu-14.04-x86_64
4f8464lmE6s+6YmQcOr+ACJvdyd5kIzV0w==
' http://localhost:25151/
comment
kernel
/var/www/cobbler/ks_mirror/Ubuntu-14.04/install/netboot/ubuntu-installer/amd64/linux
uid
MTQ1MTg1NjMzNC4yMTk0MTg3My43Mzg0NTM
kernel_options_post
redhat_management_key
<<inherit>>
kernel_options
redhat_management_server
<<inherit>>
initrd
/var/www/cobbler/ks_mirror/Ubuntu-14.04/install/netboot/ubuntu-installer/amd64/initrd.gz
mtime
1451856336.460383
template_files
ks_meta
tree=http://@@http_server@@/cblr/links/Ubuntu-14.04-x86_64
boot_files
breed
ubuntu
os_version
trusty
mgmt_classes
fetchable_files
tree_build_time
0
arch
x86_64
name
Ubuntu-14.04-x86_64
owners
admin
ctime
1451856334.214615
source_repos
depth
0
-- get profiles:
curl -XPOST -d '
get_profiles
-1
4f8464lmE6s+6YmQcOr+ACJvdyd5kIzV0w==
' http://localhost:25151/
comment
kickstart
/var/lib/cobbler/kickstarts/sample.seed
name_servers_search
ks_meta
kernel_options_post
repos
redhat_management_key
<<inherit>>
virt_path
kernel_options
virt_file_size
5
mtime
1451856335.087784
enable_gpxe
0
template_files
uid
MTQ1MTg1NjMzNS4wOTk4MTczMTYuMTI1ODc
virt_auto_boot
1
virt_cpus
1
mgmt_parameters
<<inherit>>
boot_files
mgmt_classes
distro
Ubuntu-14.04-x86_64
virt_disk_driver
raw
virt_bridge
virbr0
parent
virt_type
kvm
proxy
enable_menu
1
fetchable_files
name_servers
name
Ubuntu-14.04-x86_64
dhcp_tag
default
owners
admin
ctime
1451856335.087784
virt_ram
512
server
<<inherit>>
redhat_management_server
<<inherit>>
depth
1
template_remote_kickstarts
0
-- get profile:
curl -XPOST -d '
get_profile
Ubuntu-14.04-x86_64
4f8464lmE6s+6YmQcOr+ACJvdyd5kIzV0w==
' http://localhost:25151/
comment
kickstart
/var/lib/cobbler/kickstarts/sample.seed
name_servers_search
ks_meta
kernel_options_post
repos
redhat_management_key
<<inherit>>
virt_path
kernel_options
virt_file_size
5
mtime
1451856335.087784
enable_gpxe
0
template_files
uid
MTQ1MTg1NjMzNS4wOTk4MTczMTYuMTI1ODc
virt_auto_boot
1
virt_cpus
1
mgmt_parameters
<<inherit>>
boot_files
mgmt_classes
distro
Ubuntu-14.04-x86_64
virt_disk_driver
raw
virt_bridge
virbr0
parent
virt_type
kvm
proxy
enable_menu
1
fetchable_files
name_servers
name
Ubuntu-14.04-x86_64
dhcp_tag
default
owners
admin
ctime
1451856335.087784
virt_ram
512
server
<<inherit>>
redhat_management_server
<<inherit>>
depth
1
template_remote_kickstarts
0
-- get systems:
curl -XPOST -d '
get_systems
-1
4f8464lmE6s+6YmQcOr+ACJvdyd5kIzV0w==
' http://localhost:25151/
comment
profile
Ubuntu-14.04-x86_64
kickstart
<<inherit>>
name_servers_search
ks_meta
kernel_options_post
image
redhat_management_key
<<inherit>>
power_type
ether_wake
power_user
kernel_options
virt_file_size
<<inherit>>
mtime
1451856819.487791
enable_gpxe
0
template_files
gateway
uid
MTQ1MTg1NjgxOS40OTE4ODYyODQuNzAxMTY
virt_auto_boot
<<inherit>>
monit_enabled
0
virt_cpus
<<inherit>>
mgmt_parameters
<<inherit>>
boot_files
hostname
repos_enabled
0
name
test
virt_type
<<inherit>>
mgmt_classes
power_pass
netboot_enabled
1
ipv6_autoconfiguration
0
status
production
virt_path
<<inherit>>
interfaces
power_address
proxy
<<inherit>>
fetchable_files
name_servers
ldap_enabled
0
ipv6_default_device
virt_pxe_boot
0
virt_disk_driver
<<inherit>>
owners
admin
ctime
1451856819.487791
virt_ram
<<inherit>>
power_id
server
<<inherit>>
redhat_management_server
<<inherit>>
depth
2
ldap_type
authconfig
template_remote_kickstarts
0
-- get system:
curl -XPOST -d '
get_system
test
4f8464lmE6s+6YmQcOr+ACJvdyd5kIzV0w==
' http://localhost:25151/
comment
profile
Ubuntu-14.04-x86_64
kickstart
<<inherit>>
name_servers_search
ks_meta
kernel_options_post
image
redhat_management_key
<<inherit>>
power_type
ether_wake
power_user
kernel_options
virt_file_size
<<inherit>>
mtime
1451856819.487791
enable_gpxe
0
template_files
gateway
uid
MTQ1MTg1NjgxOS40OTE4ODYyODQuNzAxMTY
virt_auto_boot
<<inherit>>
monit_enabled
0
virt_cpus
<<inherit>>
mgmt_parameters
<<inherit>>
boot_files
hostname
repos_enabled
0
name
test
virt_type
<<inherit>>
mgmt_classes
power_pass
netboot_enabled
1
ipv6_autoconfiguration
0
status
production
virt_path
<<inherit>>
interfaces
power_address
proxy
<<inherit>>
fetchable_files
name_servers
ldap_enabled
0
ipv6_default_device
virt_pxe_boot
0
virt_disk_driver
<<inherit>>
owners
admin
ctime
1451856819.487791
virt_ram
<<inherit>>
power_id
server
<<inherit>>
redhat_management_server
<<inherit>>
depth
2
ldap_type
authconfig
template_remote_kickstarts
0