VMware Cloud Community
bthecloud
Contributor
Contributor

vCloud Director multi-branding

Branding the director is quite easy for 1 company.  Is it possible to support multiple brands?

I see that several service providers are offering white-labeled versions of the director and wondered how they were doing it.

Tags (1)
8 Replies
IamTHEvilONE
Immortal
Immortal

single branding for sake of the vCloud website.

for the purposes of logging in, you could do SAML federation and the SSO page could have different branding (since it's configured external to vCD)

Reply
0 Kudos
santapaz
Contributor
Contributor

Hi ,

On vCloud Director 10 you can customize the system branding as well as per tenant .

Check the doc.vmware.com

I'm struggling to change system branding. all GET request works .

PUT requests return error:

{

    "minorErrorCode": "NOT_AUTHENTICATED",

    "message": "[ 70b5a3aa-246d-4e8c-a8ce-e03213b278e5 ] This operation is denied.",

    "stackTrace": null

}

Can anyone hellp? I'm using Basic Auth with username and password.

Thanks

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

I'm having the same issue with setting portal color with this script:

GitHub - jondwaite/vcd-h5-themes: VMware vCloud Director 9.x PowerShell cmdlets to assist managing H...

Even played around in Postman, but still get 405 error when trying to get the color. Will open case with VMware later on when I have the time..

/Andreas

Reply
0 Kudos
santapaz
Contributor
Contributor

Hi andreaspa​,

I've overcome this some time ago.

Try this on POSTMAN

1.Login via

POST https://ip_of_your_vcd/cloudapi/1.0.0/sessions/provider

Use headers:

Authorization : Basic username : admin_user@system

                                       password: admin_user_password

You should get a Header Response with the authorization token to be used on all follwing calls.

X-VMWARE-VCLOUD-ACCESS-TOKEN _ value

X-VMWARE-VCLOUD-TOKEN-TYPE : Bearer

To make a PUT to set branding use

https://your_vcd_ip/cloudapi/branding/

Set headers

Authorization : Bearer . The value has to be the value of X-VMWARE-VCLOUD-ACCESS-TOKEN you got on login

Set header param X-VMWARE-VCLOUD-ACCESS-TOKEN with exact same value .

It should work on vCloud Director 10 and 10.1 .

I've attached some screenshots for you to check the headers .

Also you start by reading the doc below. This will get you up to speed 🙂

Hope it helped

Online Documentation - vCloud API Programming Guide for Service Providers - VMware {code}

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

Thanks, I'll try this as soon as I can!

Reply
0 Kudos
raffapolNet
Contributor
Contributor

Hi,

tried to login using

POST https://ip_of_your_vcd/cloudapi/1.0.0/sessions/provider

Use headers:

Authorization : Basic username : admin_user@system

                                       password: admin_user_password

on vCD 9.t, but getting:

"minorErrorCode": "RESOURCE_NOT_FOUND",

    "message": "Resource not found",

Status: 404 Not Found

Reply
0 Kudos
santapaz
Contributor
Contributor

Hi

raffapolNet
Contributor
Contributor

Got it.

Thank you!

Raff

Reply
0 Kudos