Remove a Cloud Template Version from a vRealize Automation Service Broker Catalog
If you want to remove a cloud template version, you make a POST request. The body of the input indicates the version to remove.
If you have a versioned and
released cloud template in vRealize Automation Service
Broker, it appears in the catalog source. If you do not want that
cloud template version to be available for deployment, you must remove it from the
catalog.
Prerequisites
- Verify that all general prerequisites have been satisfied. See Prerequisites for Working with Cloud Templates.
- Verify that you have the cloud template ID for the cloud template you want to remove. See Create and Update a Cloud Template.
- Verify that you have the cloud template version that you want to remove from the catalog. See Version and Release a Cloud Template to a vRealize Automation Service Broker Catalog.
Procedure
Results
Example: Remove a Cloud Template Version
Remove version 5 of your cloud template with ID fa6b42d5-ac46-451d-8917-b2f7e527b785.
Assign variables.
$ url='https://appliance.domain.com' $ api_version='2019-09-12' $ cloud_template_id='fa6b42d5-ac46-451d-8917-b2f7e527b785' $ cloud_template_version='v5'
Remove the cloud template version.
$ curl -X POST \ $url/blueprint/api/blueprints/$cloud_template_id/versions/$cloud_template_version/action/unrelease?apiVersion=$api_version \ -H "Authorization: Bearer $access_token" \ -H 'Content-Type: application/json' | jq "."
A snippet of the response shows the cloud template version with a VERSIONED status.
... "blueprintId": "1f170637-81a3-4257-b1cd-b2219ee8034c", "name": "MyExampleCloudTemplate", "description": "Basic Cloud Machine cloud template", "version": "v5", "tags": [], "content": "formatVersion: 1\ninputs:\n flavor:\n type: string\n title: Flavor\n description: Flavor Mapping Name\n image:\n type: string\n title: Image\n description: Image Mapping Name\n count:\n type: integer\n minimum: 1\n default: 1\n maximum: 2\n title: Number of Instances\nresources:\n BasicCloudMachine:\n type: Cloud.Machine\n properties:\n name: BasicCloudMachine\n flavor: '${input.flavor}' \n image: '${input.image}'\n count: '${input.count}'\n tags: [\n {\n \"key\": \"env\",\n \"value\": \"prod\"\n }\n ]\n", "status": "VERSIONED", "versionDescription": "Creating a version from the current draft", "versionChangeLog": "Creating a version v5", "valid": true }