- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Argument 'name' in show-object not implemented...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Argument 'name' in show-object not implemented?
If I try to show an object and use the name argument, I've got an error that parameter name is invalid.
# mgmt_cli show object name "nntp.ilk.net"
code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [name]"
Also in API Web Services. The reference documents name as vaild argument.
Is this an known bug?
Thanks,
Alex
- Labels:
-
General
-
Object Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Agreed that this "name" parameter does not work, the uid parameter works fine.
the web_api also returns
{
"code" : "generic_err_invalid_parameter_name",
"message" : "Unrecognized parameter [name]"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This does indeed look like a bug.
While we look into this you can try using the specific object type which are working as expected - show host, show network etc.
Hope that helps.
Yonatan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, workaround helps. Looking forward to an bug fix.
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
it still doesnt work according to sk113078. With name or with host. Any solution?
[Expert@chkp-sms-r80.10:0]# cat host.csv
name,ip-address,color
host-api1,2.1.1.1,green
[Expert@chkp-sms-r80.10:0]# mgmt_cli add host --batch host.csv
Username: mras
Password:
Line 2: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [name]"
[Expert@chkp-sms-r80.10:0]# cat host.csv
host,ip-address,color
host-api1,2.1.1.1,green
[Expert@chkp-sms-r80.10:0]# mgmt_cli add host --batch host.csv
Username: mras
Password:
Line 2: code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [host]"
BR
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fixed, "host" is a reserverd word, I removed it from the name and its working now.
