- VMware url: https://vcd.provider.com/tenant/myCompanyName/vdcs
- Veeam url: https://vssp.provider.com:9398
- username
- password
Vmware Cloud Director has Veeam Plug-in.
I need to login to Veeam Backup Enterprise Manager REST API, which works together with Vmware Cloud Director.
I use this: https://helpcenter.veeam.com/docs/backu ... ml?ver=120
I send the request using Vmware Cloud Director username and password.
Code: Select all
curl -X POST -L 'https://vssp.provider.com:9398/api/sessionMngr/?v=v1_7' -u 'username:password' -d ''
Code: Select all
{"FirstChanceExceptionMessage":null,"StackTrace":null,"Message":"The user name or password is incorrect","StatusCode":401,"Status":"Unauthorized"}
1. I send the request using Vmware Cloud Director username and password in the request header and body.
Code: Select all
curl -X POST -L 'https://vssp.provider.com:9398/api/sessionMngr/?v=v1_7' -u 'username:password' -H 'Content-Type: application/xml' \
-d '<?xml version="1.0" encoding="utf-8"?>
<LoginSpec 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">
<TenantCredentials>
<Username>username</Username>
<Password>password</Password>
</TenantCredentials>
</LoginSpec>'
Code: Select all
<?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="The user name or password is incorrect" StatusCode="401" Status="Unauthorized" xmlns="http://www.veeam.com/ent/v1.0" />
Code: Select all
curl -k -X POST -L 'https://vssp.provider.com:9398/api/sessionMngr/?v=v1_7' -u 'username:password' -H 'Content-Type: application/xml' \
--data '<LoginSpec xmlns="http://www.veeam.com/ent/v1.0">
<VCloudOrganizationCredentials>
<OrganizationName>company</OrganizationName>
<Login>username</Login>
<Password>password</Password>
</VCloudOrganizationCredentials>a
</LoginSpec>'
Code: Select all
<?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="The user name or password is incorrect" StatusCode="401" Status="Unauthorized" xmlns="http://www.veeam.com/ent/v1.0" />
The provider talk that credentials from Vmware Cloud Director should work for Veeam Backup Enterprise Manager REST API as well. Vmware Cloud Director and Veeam Backup Enterprise Manager REST API can have different credentials or always similar?