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
Path Parameters
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : pluginInfo
Type: object
Show Source
Nested Schema : pluginClusterMembers
Type: array
Show Source
Nested Schema : pluginClusterMember
Type: object
Show Source

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
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to upload a plug-in by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -b sessionid.txt -F file=@sp_edge_core2.2_Package.zip \
    --header "Accept: application/xml" \
    --header "Content-Type: multipart/form-data" \
    "https://example.com:8443/rest/v1.3/admin/plugins"

Example of Accessing the API with Python

The following example shows how to upload a plug-in by submitting a POST request on the REST resource using Python. This example assumes the cookie variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.

import requests
url = "https://example.com:8443/rest/v1.3/admin/plugins"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.post(url, headers=headers)

Example of the Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Date: Tue, 07 May 2019 18:51:51 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
vary: Origin,Accept-Encoding
Content-Length: 660
Content-Type: application/xml

Example of the 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.0.0.55</ipAddress>
      <lastModifiedDate>2019-05-07 14:51:52</lastModifiedDate>
      <pluginStatus>UPLOADED</pluginStatus>
      <uploadedDate>2019-05-07 14:51:52</uploadedDate>
    </pluginClusterMember>
  </pluginClusterMembers>
  <description/>
  <emPluginAPIVersion>2B18.3</emPluginAPIVersion>
  <id>ID4</id>
  <name>SP Edge &amp; Core</name>
  <packageName>sp_edge_core2.2_Package.zip</packageName>
  <product>Session Delivery</product>
  <type>EMS</type>
  <vendor>Oracle</vendor>
  <version>2.2</version>
</pluginInfo>
Back to Top