blueprint_update

PUT /users/{uid}/blueprints/{bpid}

Updates a blueprint from a user’s Blueprint Library.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: deployments_access

URI Parameters

  • uid (required): the id of the user
  • bpid (required): the id of the blueprint

HTTP Request Body Parameters

A blueprint object

Example Request

curl "https://uforge.example.com/api/users/{uid}/blueprints/{bpid}" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:blueprint xmlns:ns0="http://www.usharesoft.com/uforge">
        <xsi:type></xsi:type>
        <name>My Blueprint</name>
        <description>My description</description>
        <version>7.0</version>
        <blueprintServices>
                <blueprintService>
                        <serviceId>MariaDB</serviceId>
                        <minCores>2</minCores>
                        <minMemory>512</minMemory>
                        <config>
         brooklyn.config:
           http.port: 80
      </config>
                        <applianceSummary>
                                <uri>users/guest/appliance/204</uri>
                        </applianceSummary>
                </blueprintService>
        </blueprintServices>
</ns0:blueprint>

See also