Registers the user during the first-time logging in. Refer to Logging in to NAKIVO Backup and Replication for an explanation.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
curl
curl --request POST \ --url https://<Director_IP_address>:4443/c/router \ --header "content-type: application/json" \ --cookie @cookies.txt \ --data "{ "action": "RegistrationManagement", "method": "register", "data": ["john", "PasswordXYZ", "john.dent@company.com", null], "type": "rpc", "tid": 1}"
Request Fields
Field | Type | Value(s) | Description |
---|---|---|---|
action | string | RegistrationManagement | The action that is invoked |
method | string | register | The method that is invoked |
data | array | Parameters of the method to be invoked | |
type | string | rpc | Type of communication protocol |
tid | integer | 1 | Transaction ID. Used to identify the request by both the client and the server |
Data
Field | Type | Description |
---|---|---|
username | string | User name to be registered as the application administrator |
password | string | Password of the user to be registered |
string | Email of the user to be registered | |
ec2InstanceId | string | EC2 Instance ID, optional |
Response Sample
Response Fields
Field | Value | Description |
---|---|---|
message | string | Message if the request failed |
where | string | Reference to the method where the problem occurred |
cause | string | Cause of failure |
data | string |