@wayne-workman Thanks you for your aid! Those Powershell scripts helped me. For those in the future with the same problem as me.
{
“name”:“test-api1”,
“description”:“test-api1”,
“storagegroups”:“2”,
“osID”:“9”,
“path”:“test-api1”,
“imageTypeID”:“1”,
“imagePartitionTypeID”:“1”,
“isEnabled”:“1”,
“toReplicate”:“1”,
“compress”:“6”,
“imagemanage”:“5”
}
That’s how the body should more or less look like
Best posts made by makswojciech
-
RE: Create Image via API
-
RE: centos 7 kickstart - were to put ks file
Hey,
Recently I have been doing exactly same think as you are doing now and in my case worked:
kernel tftp://${fog-ip}/os/centos/7/vmlinuz
initrd tftp://${fog-ip}/os/centos/7/initrd.img
imgargs vmlinuz initrd=initrd.img root=live:nfs://${fog-ip}:/images/os/centos/7/LiveOS/squashfs.img ip=dhcp inst.repo=nfs:${fog-ip}:/images/os/centos/7 inst.ks=nfs:${fog-ip}:/images/dev/ks.cfg splash quiet
boot || goto MENUNote, that in my case I had to have kickstart file located in /images/dev.
Latest posts made by makswojciech
-
RE: Create Image via API
@wayne-workman Thanks you for your aid! Those Powershell scripts helped me. For those in the future with the same problem as me.
{
“name”:“test-api1”,
“description”:“test-api1”,
“storagegroups”:“2”,
“osID”:“9”,
“path”:“test-api1”,
“imageTypeID”:“1”,
“imagePartitionTypeID”:“1”,
“isEnabled”:“1”,
“toReplicate”:“1”,
“compress”:“6”,
“imagemanage”:“5”
}
That’s how the body should more or less look like -
Create Image via API
Hey,
I’m trying to create image via API using Postman, but all i get is “error”: “Required database field is empty”. Does anyone have any experience with it?
This is my body:
{
“name”:“test-api1”,
“description”:“test-api1”,
“storagegroup”:“2”,
“os”:“9”,
“file”:“test-api1”,
“imagetype”:“1”,
“imagepartitiontype”:“1”,
“isEnabled”:“on”,
“toReplicate”:“on”,
“compress”:“6”,
“imagemanage”:“5”
} -
RE: centos 7 kickstart - were to put ks file
Hey,
Recently I have been doing exactly same think as you are doing now and in my case worked:
kernel tftp://${fog-ip}/os/centos/7/vmlinuz
initrd tftp://${fog-ip}/os/centos/7/initrd.img
imgargs vmlinuz initrd=initrd.img root=live:nfs://${fog-ip}:/images/os/centos/7/LiveOS/squashfs.img ip=dhcp inst.repo=nfs:${fog-ip}:/images/os/centos/7 inst.ks=nfs:${fog-ip}:/images/dev/ks.cfg splash quiet
boot || goto MENUNote, that in my case I had to have kickstart file located in /images/dev.