cannot find matching image mappings for image error.Aria Automation 8.x
The failure is caused by incorrect usage of the api.
While the ui offers a feature to match images by name only when making the request via api you need to specify the image id.
There is no option to leverage the image name matching feature via the /iaas/api/image-profiles api.
To resolve the issue ensure to include the image id in the api payload post operation to /iaas/api/image-profiles:
{
"name": "...",
"regionId": "...",
"imageMapping": {
"RHEL8": {
"id": "<ImageState-UUID-from-fabric-images-API>",
"name": "ContentLibrary-LNX / rhel8-golden-image"
}
}
}