03-02-2021 11:10 PM
Hi all
In my company, we're fetching data from CISCO FirePower FMC via Rest API.
Lets say this FMC is managing 2 FTDs working in cluster mode and I'm using these two API calls: "/api/fmc_config/v1/domain/{domainUUID}/deviceclusters/ftddevicecluster"
"/api/fmc_config/v1/domain/{domainUUID}/deviceclusters/ftddevicecluster/{objectId}"
What does the response for these calls look like ?
Can anyone provide an example ?
Many Thanks Champs !
Solved! Go to Solution.
03-05-2021 08:54 AM
Hi,
The sample response for the all the available API endpoints is available at https://<FMC-IP>/api/api-explorer/
Sample Response (if the request return 200 as response code) will be :
"/api/fmc_config/v1/domain/{domainUUID}/deviceclusters/ftddevicecluster"
{ "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster?offset=0&limit=1&expanded=true" }, "items": [ { "id": "<container_uuid>", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster/<container_uuid>" }, "name": "<cluster_name>" }, { "id": "<container_uuid>", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster/<container_uuid>" }, "name": "<cluster_name>" }, { "id": "<container_uuid>", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster/<container_uuid>" }, "name": "<cluster_name>" } ], "paging": { "offset": 0, "limit": 3, "count": 3, "pages": 1 } }
For "/api/fmc_config/v1/domain/{domainUUID}/deviceclusters/ftddevicecluster/{objectId}"
{ "id": "35874370-9957-11e8-af35-2038dcb5d0fa", "type": "DeviceCluster", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster?offset=0&limit=1&expanded=true" }, "name": "<cluster_name>", "masterDevice": { "id": "<master_device_UUID>", "type": "Device", "keepLocalEvents": false }, "slaveDevices": [ { "id": "<slave1_device_UUID>", "type": "Device", "keepLocalEvents": false }, { "id": "<slave2_device_UUID>", "type": "Device", "keepLocalEvents": false }, { "id": "<slave3_device_UUID>", "type": "Device", "keepLocalEvents": false } ], "metadata": { "clusterDeviceGroup": { "id": "<device_group_id>", "type": "DeviceGroup", "name": "<device_group_name>" }, "lastUser": { "name": "admin", "type": "User" }, "domain": { "id": "<domain_uuid>", "type": "Domain" } } }
03-06-2021 11:24 PM
@meidanmeshulam this is a sample api response which you get in api explorer against the requested api endpoint. I gave this output from my lab virtual FMC which is running version 6.6.1
03-05-2021 08:54 AM
Hi,
The sample response for the all the available API endpoints is available at https://<FMC-IP>/api/api-explorer/
Sample Response (if the request return 200 as response code) will be :
"/api/fmc_config/v1/domain/{domainUUID}/deviceclusters/ftddevicecluster"
{ "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster?offset=0&limit=1&expanded=true" }, "items": [ { "id": "<container_uuid>", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster/<container_uuid>" }, "name": "<cluster_name>" }, { "id": "<container_uuid>", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster/<container_uuid>" }, "name": "<cluster_name>" }, { "id": "<container_uuid>", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster/<container_uuid>" }, "name": "<cluster_name>" } ], "paging": { "offset": 0, "limit": 3, "count": 3, "pages": 1 } }
For "/api/fmc_config/v1/domain/{domainUUID}/deviceclusters/ftddevicecluster/{objectId}"
{ "id": "35874370-9957-11e8-af35-2038dcb5d0fa", "type": "DeviceCluster", "links": { "self": "/fmc_config/v1/domain/DomainUUID/deviceclusters/ftddevicecluster?offset=0&limit=1&expanded=true" }, "name": "<cluster_name>", "masterDevice": { "id": "<master_device_UUID>", "type": "Device", "keepLocalEvents": false }, "slaveDevices": [ { "id": "<slave1_device_UUID>", "type": "Device", "keepLocalEvents": false }, { "id": "<slave2_device_UUID>", "type": "Device", "keepLocalEvents": false }, { "id": "<slave3_device_UUID>", "type": "Device", "keepLocalEvents": false } ], "metadata": { "clusterDeviceGroup": { "id": "<device_group_id>", "type": "DeviceGroup", "name": "<device_group_name>" }, "lastUser": { "name": "admin", "type": "User" }, "domain": { "id": "<domain_uuid>", "type": "Domain" } } }
03-06-2021 10:15 PM
03-06-2021 10:25 PM - edited 03-06-2021 10:43 PM
@Madhuri Dewangan Can you tell me what chassis is this ? What FirePower version are we looking at ?
Thanks !
03-06-2021 11:24 PM
@meidanmeshulam this is a sample api response which you get in api explorer against the requested api endpoint. I gave this output from my lab virtual FMC which is running version 6.6.1
03-16-2021 07:46 AM
@Madhuri Dewangan
I thought cluster is not supported for FTDv.
You're saying that you have a lab with virtual devices and you have clustering capabilities ? can you please explain ?
03-16-2021 08:21 AM
Yes Cluster is not supported in Virtual FTD. Since the question was around how the response for the mentioned call will look like. I had shared the response format from api explorer, this is not an actual response.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide