Hello
I have a problem with API, for add user/VM to role in Veeam Entreprise Management
The host id is correct , it's my vCenter id , the vm id is correct too
Veeam Version : 12.1.2.172
My request :
POST : https://#SERVER#:9398/api/security/accounts/
Body :
<?xml version="1.0" encoding="utf-8"?>
<EnterpriseAccountCreateSpec xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AccountType>User</AccountType>
<AccountName>commun\administrator</AccountName>
<Roles>
<EnterpriseRole>
<EnterpriseRoleUid>urn:veeam:EnterpriseRole:f84a8b62-49b8-4d0c-b25b-92321b52bab6</EnterpriseRoleUid>
</EnterpriseRole>
</Roles>
<AllowRestoreAllVms>false</AllowRestoreAllVms>
<HierarchyScopeObjects>
<HierarchyScopeItem>
<HierarchyObjRef>urn:VMware:Vm:5911201c-bdeb-46c3-8a3e-4f00fa1c0c5a.vm-159341</HierarchyObjRef>
<ObjectName>TinyLinuxVM</ObjectName>
</HierarchyScopeItem>
</HierarchyScopeObjects>
</EnterpriseAccountCreateSpec>
Result :
<?xml version="1.0" encoding="utf-8"?>
<Error xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Message="Host instance id not found. Host id: 5911201c-bdeb-46c3-8a3e-4f00fa1c0c5a" StatusCode="500" Status="InternalServerError" xmlns="http://www.veeam.com/ent/v1.0" />
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
Re: Host instance id not found when i had user/vm to Veeam Entreprise Management
If I add manually the VM in the role and get the detail with API:
https://#SERVER#:9398/api/security/accounts/3505ae93-cfca-41d0-b0e9-d6eae3c6b9dc/scopes
The HierarchyRootName is the same.
Result:
<?xml version="1.0" encoding="utf-8"?>
<EnterpriseAccountHierarchyScopes xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.veeam.com/ent/v1.0">
<EnterpriseAccountHierarchyScope Href="https://#SERVER#:9398/api/security/accounts/3505ae93-cfca-41d0-b0e9-d6eae3c6b9dc/scopes/6a256f96-cc1c-4b0e-8ea4-defde56b69cb">
<Links>
<Link Href="https://#SERVER#:9398/api/security/accounts/3505ae93-cfca-41d0-b0e9-d6eae3c6b9dc/scopes/6a256f96-cc1c-4b0e-8ea4-defde56b69cb" Rel="Delete" />
</Links>
<Name>TinyLinuxVM</Name>
<HierarchyRootName>5911201c-bdeb-46c3-8a3e-4f00fa1c0c5a</HierarchyRootName>
<Platform>VMware</Platform>
<HierarchyObjectType>Vm</HierarchyObjectType>
<State>Processed</State>
</EnterpriseAccountHierarchyScope>
</EnterpriseAccountHierarchyScopes>
https://#SERVER#:9398/api/security/accounts/3505ae93-cfca-41d0-b0e9-d6eae3c6b9dc/scopes
The HierarchyRootName is the same.
Result:
<?xml version="1.0" encoding="utf-8"?>
<EnterpriseAccountHierarchyScopes xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.veeam.com/ent/v1.0">
<EnterpriseAccountHierarchyScope Href="https://#SERVER#:9398/api/security/accounts/3505ae93-cfca-41d0-b0e9-d6eae3c6b9dc/scopes/6a256f96-cc1c-4b0e-8ea4-defde56b69cb">
<Links>
<Link Href="https://#SERVER#:9398/api/security/accounts/3505ae93-cfca-41d0-b0e9-d6eae3c6b9dc/scopes/6a256f96-cc1c-4b0e-8ea4-defde56b69cb" Rel="Delete" />
</Links>
<Name>TinyLinuxVM</Name>
<HierarchyRootName>5911201c-bdeb-46c3-8a3e-4f00fa1c0c5a</HierarchyRootName>
<Platform>VMware</Platform>
<HierarchyObjectType>Vm</HierarchyObjectType>
<State>Processed</State>
</EnterpriseAccountHierarchyScope>
</EnterpriseAccountHierarchyScopes>
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Jun 30, 2022 7:45 am
- Full Name: JP
- Contact:
Re: Host instance id not found when i had user/vm to Veeam Entreprise Management
Open case #07288146
I have verify in sql database in hosts table.
The request is succssfully if i use "id" of the table but the other request api use "unique_id'
I have verify in sql database in hosts table. The request is successfully if i use "id" but the the others requests api use "unique_id' I think i have a bug in 2 requests :
POST /security/accounts
POST /security/accounts/{ID}/scopes
I have verify in sql database in hosts table.
The request is succssfully if i use "id" of the table but the other request api use "unique_id'
I have verify in sql database in hosts table. The request is successfully if i use "id" but the the others requests api use "unique_id' I think i have a bug in 2 requests :
POST /security/accounts
POST /security/accounts/{ID}/scopes
-
- Veeam Software
- Posts: 2015
- Liked: 671 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Host instance id not found when i had user/vm to Veeam Entreprise Management
Hi,
Reviewed your case, can see that you have already requested a private fix. Looks like a recurring bug that, as I remember, we already discussed internally in scope of 12.1 release cycle. Noted it for a close inspection with QA so that the bugfix is also included in the next release.
Best regards,
Oleg
Reviewed your case, can see that you have already requested a private fix. Looks like a recurring bug that, as I remember, we already discussed internally in scope of 12.1 release cycle. Noted it for a close inspection with QA so that the bugfix is also included in the next release.
Best regards,
Oleg
Who is online
Users browsing this forum: No registered users and 4 guests