cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
280
Views
0
Helpful
0
Replies

Using http PUT method to restore FMC objects with a given ID.

matiz.kata
Level 1
Level 1

Good morning,

I am working on some scripts to automate the process of backup&restore for all configurable fmc objects as for example hosts, networks, extendedaccesslists etc..

I am quite confused about the PUT method presented in /api/api-explorer. Although updating option for resource with given id works perfectly, than creating a new one using PUT /api/fmc_config/v1/domain/{domainUUID}/object/hosts/{objectId}, providing the identifier and compatible json object fields does'nt let me to create a resource with user-defined id under the specified URI (responds with 404 code).

The purpose is to restore the records gathered from fmc to new image after reinstalling, but inconsistency of elementary object's id affects the whole reference structure (especially for more complex objects as ACL).

I'd be grateful if you helped me to resolve this issue.

Regards,

 

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: