Skip to content

System User

Create System User

Parameters

Variable Necessity Type Description
username REQUIRED string System User Name
password REQUIRED string Password

HTTP REQUEST

POST https://api.cloudstick.io/api/v1/sysusers/servers/{server_id}/users/{user-id}

REQUEST

curl --request POST \
  --url 'https://api.cloudstick.io/api/v1/sysusers/servers/{server_id}/users/{user-id}?api_key={api-key}&secret_key={secret-key}' \
  --header 'Content-Type: application/json' \
  --data '{
    "user_name": "my_system_user",
    "password": "my_password"
}'

RESPONCE

200 Ok

List System Users

HTTP REQUEST

DELETE https://api.cloudstick.io/api/v1/sysusers/servers/{SERVER_ID}/users/{USER_ID}

REQUEST

curl --request GET \
  --url 'https://api.cloudstick.io/api/v1/sysusers/servers/759/users/190?api_key={API_KEY}&secret_key={SECRET_KEY}'

RESPONCE

Type :- 200 OK

Body :- 

[
  {
    "id": 2230,
    "created_at": "2021-09-12T11:31:55.835243Z",
    "user_name": "root",
    "email": "",
    "server_id": 759,
    "is_sudo": {
      "Bool": false,
      "Valid": false
    }
  },
  {
    "id": 2231,
    "created_at": "2021-09-12T11:31:55.8371Z",
    "user_name": "cloudstick",
    "email": "",
    "server_id": 759,
    "is_sudo": {
      "Bool": false,
      "Valid": false
    }
  }
  }
]

Delete System User

HTTP REQUEST

DELETE https://api.cloudstick.io/api/v1/sysusers/{id}/servers/{server_id}/users/{user-id}

REQUEST

curl --request DELETE \
  --url 'https://api.cloudstick.io/api/v1/sysusers/{id}/servers/759/users/190?api_key={API_KEY}&secret_key={SECRET_KEY}' \

RESPONCE

204 No Content