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
.
- Requires Authentication:
true
- Entitlements Required:
cloud_account_create
uid
(required): the user name (login name) of theuser-object
caid
(required): the id of thecredaccount-object
A certificate-object
object
curl "https://uforge.example.com/api/users/{uid}/accounts/{caid}/certs" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: 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