machineImage_publish¶
-
POST /users/{uid}/appliances/{aid}/pimages
Request to publish (register) a generated machine image to a target cloud environment.
The response body is a publish image ticket
that provides the meta-data of the published machine image. The actual publication is done asynchronously. To poll the status of this publication, use machineImagePublishedStatus_getAll.
This request is similar to applianceImage_publish
Security Summary¶
- Requires Authentication:
true
- Entitlements Required:
image_publish
URI Parameters¶
HTTP Request Body Parameters¶
A publishImage object
Example Request¶
curl "https://uforge.example.com/api/users/{uid}/appliances/{aid}/pimages" -X POST \
-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:publishImage xmlns:ns0="http://www.usharesoft.com/uforge">
<xsi:type></xsi:type>
<applianceUri>users/root/appliances/4</applianceUri>
<credAccount>
<xsi:type></xsi:type>
<targetPlatform>
<name>openstack</name>
</targetPlatform>
<glanceUrl>http://ip:9292</glanceUrl>
<keystoneUrl>http://ip:5000</keystoneUrl>
<login>username</login>
<password>password</password>
<keystoneVersion>v2.0</keystoneVersion>
</credAccount>
<imageUri>users/root/appliances/4/images/7</imageUri>
<instances></instances>
<displayName>Machine Image Name Example</displayName>
<publicImage>false</publicImage>
<tenantName>mytenantname</tenantName>
</ns0:publishImage>
See also
- appliance
- machineImageGeneration_cancel
- machineImagePublish_cancel
- machineImagePublishedStatus_get
- machineImagePublishedStatus_getAll
- machineImagePublished_delete
- machineImagePublished_deleteAll
- machineImagePublished_download
- machineImagePublished_get
- machineImagePublished_getAll
- machineImageStatus_get
- machineImageStatus_getAll
- machineImage_delete
- machineImage_deleteAll
- machineImage_download
- machineImage_downloadFile
- machineImage_generate
- machineImage_get
- machineImage_getAll
- machineImage_publish
- machineImage_publish
- machineImage_regenerate
- publishImage