cloudAccountCert_create¶
-
POST /users/{uid}/accounts/{caid}/certs
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 usercaid
(required): the id of the credAccount
HTTP Request Body Parameters¶
A certificate 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>