ViCE Image Registry
API endpoint of the ViCE Image Registry: search, deploy, and import virtual environments from supported execution environments like OpenStack, Docker, or bwLehrpool.
Version: 0.1
BasePath:/v1
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
- HTTP Basic Authentication
[ Jump to Models ]
Table of Contents
Create a new execution environment for authenticated user (createEnvironment)
Consumes
This API call consumes the following media types via the
Content-Type request header:
application/json
application/xml
Request body
Return type
Example data
Content-Type: application/json
{
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
201
Created
Environment
401
Authentication information is missing or invalid
405
Invalid input
500
Internal Server Error
Create a new image (createImage)
Consumes
This API call consumes the following media types via the
Content-Type request header:
application/json
application/xml
Request body
Return type
Example data
Content-Type: application/json
{
"imagetype" : "implicit",
"imported" : true,
"originEnvironment" : {
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"contenttype" : "disk-raw",
"environmentReference" : "aeiou",
"specifics" : "{}"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
201
Created
Image
401
Authentication information is missing or invalid
405
Invalid input
500
Internal Server Error
Create a new user in the system (createUser)
Consumes
This API call consumes the following media types via the
Content-Type request header:
application/json
application/xml
Request body
Return type
Example data
Content-Type: application/json
{
"password" : "aeiou",
"id" : "aeiou",
"fullname" : "aeiou",
"email" : "aeiou",
"username" : "aeiou"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
User
401
Authentication information is missing or invalid
500
Internal Server Error
Up
delete /deployment/{deploymentId}
Removes an image deployment from the environment (deleteDeployment)
Path parameters
deploymentId (required)
Path Parameter —
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
Up
delete /environment/{environmentId}
Deletes an execution environment (deleteEnvironment)
Path parameters
environmentId (required)
Path Parameter —
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
Up
delete /image/{imageId}
Deletes an image (deleteImage)
Path parameters
imageId (required)
Path Parameter —
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
Create an image into an environment (deployImage)
Consumes
This API call consumes the following media types via the
Content-Type request header:
application/json
application/xml
Request body
Return type
Example data
Content-Type: application/json
{
"imageid" : "aeiou",
"environmentId" : "aeiou",
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"environmentReference" : "aeiou"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
201
Created
Deployment
401
Authentication information is missing or invalid
405
Invalid input
500
Internal Server Error
Up
get /image/{imageId}/file
Download a file as image (downloadImage)
Path parameters
imageId (required)
Path Parameter —
Return type
File
Example data
Content-Type:
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
File
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
List all deployments of authenticated user (findDeployments)
Return type
Example data
Content-Type: application/json
[ {
"imageid" : "aeiou",
"environmentId" : "aeiou",
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"environmentReference" : "aeiou"
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
An array of deployments.
401
Authentication information is missing or invalid
500
Internal Server Error
List by user accessible execution environments (findEnvironment)
Query parameters
filterManagementlayer (optional)
Query Parameter —
filterRuntimetechnology (optional)
Query Parameter —
Return type
Example data
Content-Type: application/json
[ {
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
An array of accessible execution environments.
401
Authentication information is missing or invalid
500
Internal Server Error
List available images (findImages)
Return type
Example data
Content-Type: application/json
[ {
"imagetype" : "implicit",
"imported" : true,
"originEnvironment" : {
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"contenttype" : "disk-raw",
"environmentReference" : "aeiou",
"specifics" : "{}"
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
An array of images.
500
Internal Server Error
Up
get /deployment/{deploymentId}
Get a deployment (getDeployment)
Path parameters
deploymentId (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"imageid" : "aeiou",
"environmentId" : "aeiou",
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"environmentReference" : "aeiou"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
Deployment
401
Authentication information is missing or invalid
404
Deployment not found
500
Internal Server Error
Up
get /environment/{environmentId}
Get execution environment by id (getEnvironment)
Path parameters
environmentId (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
Environment
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
Get an image by id (getImage)
Path parameters
imageId (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"imagetype" : "implicit",
"imported" : true,
"originEnvironment" : {
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"contenttype" : "disk-raw",
"environmentReference" : "aeiou",
"specifics" : "{}"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
Image
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
Provide internal statistics about import/export queue length and workers (getRuntimeStats)
Return type
Example data
Content-Type: application/json
{
"importsPending" : 0,
"exportWorker" : 5,
"importWorker" : 6,
"storePending" : 5,
"exportsPending" : 1,
"storeWorker" : 2
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
RuntimeStats
401
Authentication information is missing or invalid
500
Internal Server Error
Provide user information about logged in user (getUser)
Return type
Example data
Content-Type: application/json
{
"password" : "aeiou",
"id" : "aeiou",
"fullname" : "aeiou",
"email" : "aeiou",
"username" : "aeiou"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
User
401
Authentication information is missing or invalid
500
Internal Server Error
Update an existing execution environment (updateEnvironment)
Consumes
This API call consumes the following media types via the
Content-Type request header:
application/json
application/xml
Request body
Return type
Example data
Content-Type: application/json
{
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
201
Updated
Environment
401
Authentication information is missing or invalid
404
Element not found
405
Invalid input
500
Internal Server Error
Update an existing image (updateImage)
Consumes
This API call consumes the following media types via the
Content-Type request header:
application/json
application/xml
Request body
Return type
Example data
Content-Type: application/json
{
"imagetype" : "implicit",
"imported" : true,
"originEnvironment" : {
"credentials" : {
"password" : "aeiou",
"location" : "aeiou",
"username" : "aeiou",
"specifics" : "{}"
},
"managementlayer" : {
"software" : "aeiou",
"type" : "basic",
"version" : "aeiou"
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"runtimetechnology" : {
"software" : "aeiou",
"type" : "virtualmachine",
"version" : "aeiou"
}
},
"id" : "aeiou",
"title" : "aeiou",
"userid" : "aeiou",
"contenttype" : "disk-raw",
"environmentReference" : "aeiou",
"specifics" : "{}"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
201
Updated
Image
401
Authentication information is missing or invalid
404
Element not found
405
Invalid input
500
Internal Server Error
Up
post /image/{imageId}/file
Upload a file as image (uploadImage)
Path parameters
imageId (required)
Path Parameter —
Consumes
This API call consumes the following media types via the
Content-Type request header:
Form parameters
upfile (optional)
Form Parameter — The file to upload.
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
400
Bad request
401
Authentication information is missing or invalid
404
Element not found
500
Internal Server Error
[ Jump to Methods ]
Table of Contents
Credentials
-
Deployment
-
Environment
-
Image
-
ManagementLayer
-
RuntimeStats
-
RuntimeTechnology
-
User
-
location (optional)
username (optional)
password (optional)
specifics (optional)
id (optional)
title (optional)
userid (optional)
imageid (optional)
environmentId (optional)
environmentReference (optional)
id (optional)
title (optional)
userid (optional)
credentials (optional)
runtimetechnology (optional)
managementlayer (optional)
id (optional)
title (optional)
userid (optional)
imagetype (optional)
implicit
declarative
contenttype (optional)
disk-raw
disk-qcow2
disk-vmdk
docker-file
docker-image
packerfile
imported (optional)
originEnvironment (optional)
environmentReference (optional)
specifics (optional)
type (optional)
basic
cloudcomputing
containercluster
jobscheduler
software (optional)
version (optional)
importsPending (optional)
importWorker (optional)
exportsPending (optional)
exportWorker (optional)
storePending (optional)
storeWorker (optional)
type (optional)
virtualmachine
container
application
software (optional)
version (optional)
id (optional)
username (optional)
password (optional)
email (optional)
fullname (optional)