POST /users/{uid}/appliances/{aid}/installProfile/{ipid}/users
Summary
- Method:
POST
- Response Code:
201
- Response Formats:
application/xml
application/json
- Since:
UForge 3.4
Adds a new OS user in an install profile.
Refer to osuser-object
for the mandatory and optional attributes.
- Requires Authentication:
true
- Entitlements Required:
appliance_create
uid
(required): the user name (login name) of theuser-object
that has created the applianceipid
(required): the id of theinstallprofile-object
aid
(required): the id of theappliance-object
A osUser-object
object
curl "https://uforge.example.com/api/users/{uid}/appliances/{aid}/installProfile/{ipid}/users" -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:osUser xmlns:ns0="http://www.usharesoft.com/uforge">
<fullName>OSUserExample</fullName>
<homeDir>/home/OSUserExample</homeDir>
<name>OSUserExample</name>
<password>password</password>
<primaryGroupAuto>true</primaryGroupAuto>
<shell>/bin/bash</shell>
<systemUser>true</systemUser>
<userIdAuto>true</userIdAuto>
</ns0:osUser>
appliance-object
applianceinstallprofile-api-resources
installProfileGroup-create
installProfileGroup-delete
installProfileGroup-deleteAll
installProfileGroup-get
installProfileGroup-getAll
installProfileGroup-update
installProfileUser-delete
installProfileUser-deleteAll
installProfileUser-get
installProfileUser-getAll
installProfileUser-update
installprofile-object
osgroup-object
osuser-object