Add user, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 183: Returned result, Interface uri access method returned result

Advertising
background image

Add User

Add a user with specified information.

Interface URI

/user

Access Method

HTTP

POST

Message body

<user>
<userName>wanger</userName>
<certification>wanger001</certification>
<address>Shanghai</address>
<phone>02088784567</phone>
<email>[email protected]</email>
<ssType>1</ssType>
<groupId>1</groupId>
</user>

Element description

user sub-elements

User name.

userName

String type. Required. No default value.

Identity number.

certification

String type. Required. No default value.

Contact address.

address

String type. Optional. The default value is empty.

Telephone number.

phone

String type. Optional. The default value is empty.

Email address.

email

String type. Optional. The default value is empty.

Returned Result

Status codes

201 (Created): Success.

409 (Conflict): Failure. See

Error Codes

.”

Message header

If the operation succeeds, the Location field gives the URI of the new resource. No message body
is included.

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/user/4

Add User 183

Advertising