Firepower Management Center – API Explorer – Bulk create hosts (Tested with FMC 6.6.5)

Browse the following URL

https://yourfmcaddress/api/api-explorer

Login and choose:

[POST] /api/fmc_config/v1/domain/{domainUUID}/object/hosts

Enter your Domain UUID (usually it is already filled)

Click [Try it out] in the right top corner to enable editing the body field

To bulk create hosts you also need to enable bulk –> set it to true

To create multiple objects you need to follow the given syntax:

[
    {
        "name": "myfirstapihost",
        "type": "Host",
        "value": "192.0.2.10",
        "description": "Test - create my first host over API"
    },
    {
        "name": "mysecondapihost",
        "type": "Host",
        "value": "192.0.2.11",
        "description": "Test - create my second host over API"
    }
]

If you just want to create an single object you need to use the following syntax

{
        "name": "mythirdhost",
        "type": "Host",
        "value": "192.0.2.11",
        "description": "Test - create my third host over API"
 }

Leave a Reply

Your email address will not be published. Required fields are marked *