create a laptop
Simplified API to create a laptop
- application/json
Request Body
- clientNames string[] required
list of hostName of computers
- os string required
Possible values: [
WINDOWS
,UNIX_AND_MAC
]the os type of computers
- userName string required
username required for authentication of jobs
- password string required
password (base64 encoded) required for authentication of jobs
Responses
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- taskId int32
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
Bad Request
Requested Details not found
POST /v4/laptop
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'
curl -L -X POST 'https://localhost/webconsole/api/V4/Laptop' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientNames": [
"string"
],
"os": "WINDOWS",
"userName": "string",
"password": "string"
}'