Unable to add new Marketplace connection
search cancel

Unable to add new Marketplace connection

book

Article ID: 325673

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • After the upgrade of the VCD from 10.4.1 to 10.5, under ContentHub section the "New" button is missing.
  • Cannot manage vmware marketplace resources.

Environment

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

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 #####

Body:
{
  "url": "https://gtw.marketplace.cloud.vmware.com/api/v1",
  "description": "",
  "sourceType": "VmwareMarketplace",
  "orgId": "urn:vcloud:org:a93c9db9-####-####-####-########5f9",
  "owner": {
    "name": "system",
    "id": "urn:vcloud:user:07e746aa-####-####-####-########c6a"
  },
  "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. See VCD API Token.
 
Take note of the VMware MarketPlace ID from the above response. i.e.
urn:vcloud:catalogContentSource:#######

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-####-####-####-########98d",
            "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:#######/configure/general

Additional Information