Add Hosts

Add Hosts

Add hosts

Request
URI
POST
https://{api_host}/hybridity/api//ztp/hosts
COPY
Header Parameters
string
apiKey
Optional

api key header parameter


Request Body
hostsAddRequest of type(s) application/json
Required
{
    "hosts": [
        {
            "address": "string",
            "ip": "string",
            "name": "string",
            "username": "string",
            "password": "string",
            "parent": "string",
            "type": "string",
            "location": {
                "city": "string",
                "country": "string",
                "address": "string",
                "longitude": "number",
                "latitude": "number"
            },
            "wipeDisks": false
        }
    ]
}
array of hostConfig
hosts
Optional

hosts

Authentication
This operation uses the following authentication methods.
Responses
200

Successfully added host.

Returns response of type(s) application/json
{
    "warnings": [
        {
            "message": "string"
        }
    ],
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}
array of warning
warnings
Optional

warnings

array of error
errors
Optional

errors


400

Bad Request

Returns response of type(s) application/json
{
    "warnings": [
        {
            "message": "string"
        }
    ],
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}
array of warning
warnings
Optional

warnings

array of error
errors
Optional

errors


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

500

Internal Server Error

Returns response of type(s) application/json
{
    "warnings": [
        {
            "message": "string"
        }
    ],
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}
array of warning
warnings
Optional

warnings

array of error
errors
Optional

errors