cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2818
Views
25
Helpful
3
Replies

FMC - How to download a large Object Group to text file

dheinen
Level 1
Level 1

We operate FMC with FTD 4140s, running 6.2.3.3.

 

I have a URL object group that has grown too large to maintain in the "Objects" tab. (540 entries).

My intention is to convert this to a URL Feed from an internal webserver,  Then use the feed in policy.

 

We would then delete the old URL Object group and URL objects..

Is there a way to download the Object group as a text file?

 

Thank You !

 

Dean H.

 

 

3 Accepted Solutions

Accepted Solutions

mikael.lahtela
Level 4
Level 4

Hi,

 

I would use Rest API to get it out as a json output.

You can connect to API through <fmc ip>/api/api-explorer/ from there you can go ahead to objects and add find the ID of the object to get a json output.

 

Here you can read more about the api explorer:

https://www.cisco.com/c/en/us/td/docs/security/firepower/620/api/REST/Firepower_Management_Center_REST_API_Quick_Start_Guide_620/About_the_API_Explorer.html

 

br, Micke

View solution in original post

To add to @mikael.lahtela response, these are the following API requests you have to send:

 

1) Send /api/fmc_config/v1/domain/<ID>/object/urlgroups request with no object UUID

2) Find the UUID of the url object group that you need.

3) Send request#1 with UUID determined in 2)

 

The result will be something like this:

{
  "links": {
    "self": "https://192.168.1.10/api/fmc_config/v1/domain/<id>/object/urlgroups/000C29E8-BB66-0ed3-0000-068719479541"
  },
  "type": "UrlGroup",
  "literals": [
    {
      "url": "cisco.*",
      "type": "Url"
    },
    {
      "url": "apple.*",
      "type": "Url"
    },
],
  "overridable": false,
  "description": " ",
  "name": "HundredPlusObject",
  "id": "000C29E8-0000-0ed3-0000-068719479541",
  "metadata": {
    "timestamp": 1537795383423,
    "lastUser": {
      "name": "admin"
    },
    "domain": {
      "name": "Global",
      "id": "aaaaaaa-e0f2-11e3-8169-6d9ed49b625f"
    }
  }
}

You can then extract the urls from the "literals" section.

View solution in original post

dheinen
Level 1
Level 1

Thanks !    

With the use of the API explorer, and the API manual,  these worked, 

however,  the user does need to get the "access token" for the API client . 

 

Dean

 

View solution in original post

3 Replies 3

mikael.lahtela
Level 4
Level 4

Hi,

 

I would use Rest API to get it out as a json output.

You can connect to API through <fmc ip>/api/api-explorer/ from there you can go ahead to objects and add find the ID of the object to get a json output.

 

Here you can read more about the api explorer:

https://www.cisco.com/c/en/us/td/docs/security/firepower/620/api/REST/Firepower_Management_Center_REST_API_Quick_Start_Guide_620/About_the_API_Explorer.html

 

br, Micke

To add to @mikael.lahtela response, these are the following API requests you have to send:

 

1) Send /api/fmc_config/v1/domain/<ID>/object/urlgroups request with no object UUID

2) Find the UUID of the url object group that you need.

3) Send request#1 with UUID determined in 2)

 

The result will be something like this:

{
  "links": {
    "self": "https://192.168.1.10/api/fmc_config/v1/domain/<id>/object/urlgroups/000C29E8-BB66-0ed3-0000-068719479541"
  },
  "type": "UrlGroup",
  "literals": [
    {
      "url": "cisco.*",
      "type": "Url"
    },
    {
      "url": "apple.*",
      "type": "Url"
    },
],
  "overridable": false,
  "description": " ",
  "name": "HundredPlusObject",
  "id": "000C29E8-0000-0ed3-0000-068719479541",
  "metadata": {
    "timestamp": 1537795383423,
    "lastUser": {
      "name": "admin"
    },
    "domain": {
      "name": "Global",
      "id": "aaaaaaa-e0f2-11e3-8169-6d9ed49b625f"
    }
  }
}

You can then extract the urls from the "literals" section.

dheinen
Level 1
Level 1

Thanks !    

With the use of the API explorer, and the API manual,  these worked, 

however,  the user does need to get the "access token" for the API client . 

 

Dean

 

Review Cisco Networking for a $25 gift card