Remove a Blueprint Version from a vRealize Automation Service Broker Catalog
If you want to remove a blueprint version, you make a POST request. The body of the input indicates the version to remove.
If you have versioned and
released blueprint in vRealize Automation Service
Broker, it appears in the catalog source. If you do not want that
blueprint 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 Blueprints.
- Verify that you have the blueprint ID for the blueprint you want to remove. See Create and Update a Blueprint.
- Verify that you have the blueprint version that you want to remove from the catalog. See Version and Release a Blueprint to a vRealize Automation Service Broker Catalog.
Procedure
Results
Example: Remove a Blueprint Version
Remove version 5 of your blueprint with ID fa6b42d5-ac46-451d-8917-b2f7e527b785.
Assign variables.
$ url='https://appliance.domain.com' $ api_version='2019-09-12' $ blueprint_id='fa6b42d5-ac46-451d-8917-b2f7e527b785' $ blueprint_version='v5'
Remove the blueprint version.
$ curl -X POST \ $url/blueprint/api/blueprints/$blueprint_id/versions/$blueprint_version/action/unrelease?apiVersion=$api_version \ -H "Authorization: Bearer $access_token" \ -H 'Content-Type: application/json' | jq "."
A snippet of the response shows the blueprint version with a VERSIONED status.
... "blueprintId": "1f170637-81a3-4257-b1cd-b2219ee8034c", "name": "MyExampleBlueprint", "description": "Basic Cloud Machine blueprint", "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 }