Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.72 KB

cloudAccountCert_create.rst

File metadata and controls

68 lines (46 loc) · 1.72 KB

cloudAccountCert_create

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

Summary

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

Creates a new certificate for a cloud account.

This provides the meta-data of the certificate as well as the certificate contents. If the certificate is a file, then please use cloudAccountCert-upload.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: cloud_account_create

URI Parameters

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

HTTP Request Body Parameters

A certificate-object object

Example Request

curl "https://uforge.example.com/api/users/{uid}/accounts/{caid}/certs" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:certificate xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>x509 cert for Amazon EC2</name>
    <type>x509</type>
    <certStr>certifacte-content</certStr>
</ns0:certificate>
  • cloudAccountCert-delete
  • cloudAccountCert-download
  • cloudAccountCert-upload
  • cloudAccountResources-get
  • cloudAccount-create
  • cloudAccount-delete
  • cloudAccount-get
  • cloudAccount-getAll
  • cloudAccount-update
  • credaccount-object