Hi Arogarth,
Admittedly API reference is not the most exhaustive imaginable so I did some digging in the Prism guide and found the below:
“To set up an image placement policy, do the following:
- Create categories for the following entities:
- Clusters (for example, create categories based on cluster location or region)
- Images (for example, create categories based on operating system and size)
For information about creating a category, see Creating a Category. - Apply the cluster categories to clusters and image categories to images. For information about associating categories with a Nutanix cluster, see Associating a Registered Nutanix Cluster with Categories. For information about associating categories with an image, see Associating an Image with Categories.
- Configure the image placement policy. See Configuring an Image Placement Policy.”
As you can see image placement policy is not configurable for a storage container entity.
I also found a possible solution in APIv2 which allows to specify the container. I understand that’s not exactly what you were looking for but you will find quite often at least at this stage that API functionality while overlapping is not exactly mirrored in each version. Some versions will have options that others miss.
Please let me know if that helps.
Hi, thanks to this information - but I still found them.
And I know that API v2 is able to place images to defined storage container - but API v2 is only available on cluster itself.
We have multiple AHV Cluster and I want to manage this images Centralized by Prism Central but this seems to wo work while missing this feature…
My current workaround is to upload the images to each cluster separately using API v2 - but nice is other...
@Arogarth you have it correct. As of the latest release Prism Central image upload allows cluster selection but does not allow container selection. If you need ISOs or disk images for cloning to be located in a specific container these will need to be uploaded via Prism Element directly. Images uploaded through Prism Central will be sent to the Self Service container.
I’m guessing you’re working on clone-base images for disks, since container location matters much less for ISO images to be attached on the virtual CD-ROM drive.
You might find one of the options in this article useful:
“Transferring Virtual Disks to an AHV Cluster”