Highlighted
Super Contributor.
Super Contributor.
217 views

restAPI example for queryNameWithParameters

Jump to solution

Hello,

We cannot find any documentation regarding the restAPI method /topology/queryNameWithParameters .

In the swagger the body seems to be a copy/paste of the standard topology query.

I assume the body should be something like the queryName + its defined customer parameters instead.

Thanks,
Best Regards,
Yann Pingot

1 Solution

Accepted Solutions
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: restAPI example for queryNameWithParameters

Jump to solution

Hi,

 

“Usage example:

/rest-api/topology/queryNameWithParameters?chunkSize=200

JSON Body for request:

{

               "name": "test",

               "nodes": [

                             

                                                            {

                                                                           "elementLabel": "Interface",

                                                                           "attributeConditions":[

                                                                           {

                                                                           "attribute": "interface_name",

                                                                           "operator": "like",

                                                                           "value": "%A%"

                                                            }                                                                                        

                                             ]

                              }

               ]

}”

 

The body was built according to the request in the ER - QCCR1H123023. This ER is visible on SSO.

 

Thanks,

 

Diana

View solution in original post

3 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: restAPI example for queryNameWithParameters

Jump to solution

Hi,

 

“Usage example:

/rest-api/topology/queryNameWithParameters?chunkSize=200

JSON Body for request:

{

               "name": "test",

               "nodes": [

                             

                                                            {

                                                                           "elementLabel": "Interface",

                                                                           "attributeConditions":[

                                                                           {

                                                                           "attribute": "interface_name",

                                                                           "operator": "like",

                                                                           "value": "%A%"

                                                            }                                                                                        

                                             ]

                              }

               ]

}”

 

The body was built according to the request in the ER - QCCR1H123023. This ER is visible on SSO.

 

Thanks,

 

Diana

View solution in original post

Highlighted
Micro Focus Expert
Micro Focus Expert

Re: restAPI example for queryNameWithParameters

Jump to solution
0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: restAPI example for queryNameWithParameters

Jump to solution

Thanks Diana and Bogdan 🙂

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.