Unable to add new Marketplace connection in Cloud Director 10.5.
search cancel

Unable to add new Marketplace connection in Cloud Director 10.5.

book

Article ID: 325673

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • After the upgrade of the VCD from 10.4.1 to 10.5, under ContentHub section the "New" button is missing.
  • Cannot create/add marketplace.


Environment

VMware Cloud Director 10.x

Cause

This is a known issue for VMware Cloud Director multisite feature, creating and managing VMware Marketplace resources using the Service Provider Admin Portal is not possible. This issue does not affect tenants.

Resolution

To add VMware marketplace in VCD 10.5 multisite and share it to tenants, please follow the steps below:
 
1. Please check the following to add VMware Marketplace using API through Postman:


Reference : https://developer.vmware.com/apis/vmware-cloud-director/v38.1/cloudapi/1.0.0/catalogContentSources/post/
 
POST https://<VCD IP or FQDN>/cloudapi/1.0.0/catalogContentSources
 
Headers:
Accept: application/json;version=39.0.0-alpha
Content-Type: application/json;version=39.0.0-alpha
Authorization: Bearer XXXXX

Body:
{
  "url": "https://gtw.marketplace.cloud.vmware.com/api/v1",
  "description": "",
  "sourceType": "VmwareMarketplace",
  "orgId": "urn:vcloud:org:a93c9db9-7471-3192-8d09-a8f7eeda85f9",
  "owner": {
    "name": "system",
    "id": "urn:vcloud:user:07e746aa-1835-39f8-962a-717e352f5c6a"
  },
  "name": "<Name of VMware Marketplace>",
  "lastSynced": null,
  "apiToken": "<Generated token from https://console.cloud.vmware.com/csp/gateway/discovery>"
}

NOTE: Add the name and the API token.Please refer to the documentation on how to generate an API token.

Take note of the VMware MarketPlace ID from the above response. i.e.
urn:vcloud:catalogContentSource:xxxxxxxx

2. To share the new VMware Marketplace created using API through Postman:

Reference : https://developer.vmware.com/apis/vmware-cloud-director/v38.1/cloudapi/1.0.0/catalogContentSources/catalogContentSourceId/accessControls/put/
PUT https://<VCD IP or FQDN>/cloudapi/1.0.0/catalogContentSources/urn:vcloud:catalogContentSource:<VMware MarketPlace ID from the above POST call>/accessControls
 
Headers:
Accept: application/json;version=39.0.0-alpha
Content-Type: application/json;version=39.0.0-alpha
Authorization: Bearer XXXXX

Body:
{
    "resultTotal": 1,
    "pageCount": 1,
    "page": 1,
    "pageSize": 25,
    "associations": null,
    "values": [
        {
            "id": "urn:vcloud:accessControl:8f3f6906-b6db-4917-9029-8467736c098d",
            "tenant": {
                "name": "<name of Org>",
                "id": "urn:vcloud:org:<id of org>"
            },
            "grantType": "MembershipAccessControlGrant",
            "objectId": "urn:vcloud:catalogContentSource:<VMware MarketPlace ID from the above POST call>:<VMware MarketPlace ID from the above POST call>",
            "accessLevelId": "urn:vcloud:accessLevel:ReadOnly",
            "memberId": "urn:vcloud:org:<id of org>"
        }
    ]
}

NOTE:The ID of the Organization can be taken from the VCD URL, i.e. https://<VCD IP or FQDN>/provider/cloud/organizations/urn:vcloud:org:xxxxxxxx/configure/general

Additional Information

Impact/Risks:
System administrators are unable create and manage VMware Marketplace resources.