Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
PeterH
Participant

show-objects with filter

The following command doesn't show the expected result.

 

As wrote in the API Guide, this show filter only in the ipv4 adress field. It doe's, but if the object is not in the database, it prints all existing ip addresses.

In my example the IP 11.1.1.3 is not existing

Command:

show-objects -d '{"type":"host","filter":"11.1.1.3","ip-only":"true"}' 

 

Result is soething like this:

}, {
"uid" : "da7514ee-2f17-437a-af4a-dfd504ee676a",
"name" : "gh_Test_Host3",
"type" : "host",
"domain" : {
"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",
"name" : "Global",
"domain-type" : "global domain"
},
"ipv4-address" : "10.1.1.3"
}, {
"uid" : "793b8725-52e8-43b0-8a73-a45ab5b2e68e",
"name" : "gh_Test_Host3_Clone",
"type" : "host",
"domain" : {
"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",
"name" : "Global",
"domain-type" : "global domain"
},
"ipv4-address" : "10.1.1.3"
}, {
"uid" : "73be94b0-3834-4547-9ea4-356b4d49a7ab",
"name" : "gh_Test_Host_11.1.1.1",
"type" : "host",
"domain" : {
"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",
"name" : "Global",
"domain-type" : "global domain"
},
"ipv4-address" : "11.1.1.2"
}, {
"uid" : "ece090d0-8a3b-45e6-9273-59f3bb95d5ee",
"name" : "gh_Test_Host_11.1.1.2",
"type" : "host",
"domain" : {
"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",
"name" : "Global",
"domain-type" : "global domain"
},
"ipv4-address" : "11.1.1.1"
} ]

 

Is there a bug?

Regards Peter

0 Kudos
1 Reply
PeterH
Participant

 Find out that this is not working in global domain only. In the CMA itself is the result as expected.

Peter

0 Kudos