where
<cert_id> is the unique identifier of the x.509 certificate to download.
Body
Empty.
A successful download request returns a
200 OK HTTP status code. If the request does not succeed, the server returns a
4nn or
5nn HTTP status code in the response header and a message entity in the response body.
Syntax for uploading a configuration file from a NAS server
To upload an x.509 certificate from the local host to the storage system, use the following request components:
You must
POST the certificate file using a multipart/form-data format as if from a simple web page form, like that shown in the following example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<form enctype="multipart/form-data" method="post"
action="https://<IP_address>/upload/x509Certificate">
<input type="file" name="filename"/>
<input type="text" name="paramMap"/>
<input type="submit"/>
</form>
</body>
</html>
where
paramMap is in JSON format and is defined by the following attributes:
type - Certificate type, as defined by the
CertifcateTypeEnum enumeration.
service - Service with which the certificate is associated, as defined by the
ServiceTypeEnum enumeration.
scope (optional) - Certificate scope, as defined by the
certificateScope enumeration.
passphrase - Pass phrase used to decrypt the private key. This attribute is required if the file contains a private key.
For a list of enumeration values, see the
Unisphere Management REST API Reference Guide.
A successful upload request returns a
200 OK HTTP status code. If the request does not succeed, the server returns a
4nn or
5nn HTTP status code in the response header and a message entity in the response body.
Example 1: Downloading an x.509 certificate
The following example downloads the
vasa_http-vc1-cacert-1
certificate file to the local host:
Headers
Accept: application/json
X-EMC-REST-CLIENT: true
Request
GET https://10.108.53.216/download/x509Certificate/vasa_http-vc1-servercert-1
Request body
Empty.
Response body (raw) for a successful response
Contains the downloaded x.509 certificate file.
Example 2: Uploading an x.509 certificate file to a NAS server
The following example uploads
certificate1.pem to authorize communication between NAS server
nas_0 and the VASA provider.