Upload a Plug-in
post
/rest/{versionId}/admin/plugins
Use this (POST) method to upload the plug-in software package to the SDM server.
Request
Supported Media Types
- multipart/form-data
Path Parameters
Form Parameters
Back to Top
Response
Supported Media Types
- application/xml
- application/json
200 Response
successful operation
Root Schema : pluginInfo
Type:
Show Source
object
-
clusterMembers(optional):
array pluginClusterMember
-
description(optional):
string
-
emPluginAPIVersion(optional):
string
-
id(optional):
string
-
name(optional):
string
-
packageName(optional):
string
-
previousVersion(optional):
string
-
product(optional):
string
-
restPrefixName(optional):
string
-
type(optional):
string
-
vendor(optional):
string
-
version(optional):
string
400 Response
The user input is invalid.
401 Response
The session ID is invalid.
403 Response
There is no permission to access the resources.
404 Response
The object (resource URI, device, and so on) of your input request cannot be found.
500 Response
Internal server error
Examples
The following example shows how to retrieve all the existing plugins on the server by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL
<curl>
Example of cURL Data
The following shows an example of cURL data sent with the request.
data>curl -i -v -b sessionid.txt -X POST -F file=@/home/nncentral/NNC76Rest/plugin/sd1.0_Package.zip -H"Accept: application/xml" http://localhost:8080/rest/v1.1/admin/plugins
Example of Request Header
The following shows an example of the request header.
The plugin file ???sd1.0_Package.zip???.
Example of Response Body
The following example shows the contents of the response body in XML format.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <pluginInfo> <pluginClusterMembers> <pluginClusterMember> <clusterMemberStatus>ACTIVE</clusterMemberStatus> <ipAddress>10.196.0.194</ipAddress> <lastModifiedDate>2017-09-07 12:02:31</lastModifiedDate> <pluginStatus>UPLOADED</pluginStatus> <uploadedDate>2017-09-07 12:02:31</uploadedDate> </pluginClusterMember> </pluginClusterMembers> <description></description> <emPluginAPIVersion>1B1.0</emPluginAPIVersion> <id>ID6</id> <name>AcmeSD</name> <packageName>sd1.0_Package.zip</packageName> <product>Session Delivery</product> <type>EMS</type> <vendor>Oracle</vendor> <version>1.0</version> </pluginInfo>