Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.71 KB

cloudAccountCert_upload.rst

File metadata and controls

61 lines (43 loc) · 1.71 KB

cloudAccountCert_upload

POST /users/{uid}/accounts/{caid}/certs/{certid}/{fileName}

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 2.0

Uploads a certificate to a user's cloud account.

Note

If you wish to replace a certificate, then prior to uploading please delete the current certificate by using cloudAccountCert-delete.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: cloud_account_create,cloud_account_edit

URI Parameters

  • uid (required): the user name (login name) of the user-object
  • fileName (required): the file name of the certificate
  • caid (required): the id of the credaccount-object
  • certid (required): the id of the certificate-object

HTTP Request Body Parameters

The file to upload.

Example Request

curl "https://uforge.example.com/api/users/{uid}/accounts/{caid}/certs/{certid}/{fileName}" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@binaryFilePath"
  • certificate-object
  • cloudAccountCert-create
  • cloudAccountCert-delete
  • cloudAccountCert-download
  • cloudAccountCert-upload
  • cloudAccountResources-get
  • cloudAccount-create
  • cloudAccount-delete
  • cloudAccount-get
  • cloudAccount-getAll
  • cloudAccount-update
  • credaccount-object