Hi everyone,
I am currently working on service request that will allow creating new tenants in CloudForms/ManageIQ. I am looking for a way to create tenant via Automation module.
I have tried following options:
tenant = $evm.vmdb(:tenant).new(:name => “Tenant A”)
or
tenant = MiqAeMethodService::MiqAeServiceTenant.new(:name => “Tenant A”)
But it always fails with following error:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: missing FROM-clause entry for table “id”
LINE 1: SELECT “tenants”.* FROM “tenants” WHERE “id”.“name” = $1 LI…
…
I have also tried to use create method, but it seems that it does not exist.
In other words, is it even possible to create manageiq objects via automation?
If not, could this be done with REST API?
Thanks in advance.