Hi All,
I got a error while creating access rule with api call.
This error shown as below:
{
code : generic_err_object_field_not_unique,
message : Requested object name [tcp_3389] is not unique.
}
Firstly i added host and service objects and i got status code 200,
{url: https://x.x.x.x:443/web_api/add-service-tcp, payload: {name: tcp_3389, port: 3389, ignore-warnings: true}, status_code: 200}
{url: https://x.x.x.x:443/web_api/add-host, payload: {name: 2.1.2.1, ip-address: 2.1.2.1, ignore-warnings: true}, status_code: 200}
{url: https://x.x.x.x:443/web_api/add-host, payload: {name: 1.2.1.2, ip-address: 1.2.1.2, ignore-warnings: true}, status_code: 200}
Then i tried to add access rule with payload below, i got error
{url: https://x.x.x.x:443/web_api/add-access-rule, payload: {position: top, layer: Network, source: [1.2.1.2], destination: [2.1.2.1], service: [tcp_3389], time: Any, action: Accept, comments: test-1, ignore-warnings: true, track: {type: Log}}, status_code: 400}
Does anyone have an idea about that?
Thanks