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

vManage RestApi

rhonin201
Level 1
Level 1

Hello,

I have a problem with vManage RestApi. I'am going to edit prefix list in my localized policy with Postman, I use PUT method using resources like below:

 

/dataservice/template/policy/list/prefix/95adbbf7-4bac-448d-b5fe-7436f6fd8ea2

 

This is my config in JSON format (GET method):

 

{
"listId": "95adbbf7-4bac-448d-b5fe-7436f6fd8ea2",
"name": "XXX",
"type": "prefix",
"description": "Desc Not Required",
"entries": [
{
"ipPrefix": "10.5.56.0/24"
}
],
"lastUpdated": 1563194920731,
"owner": "admin",
"readOnly": false,
"version": "0",
"referenceCount": 2,
"activatedId": [
"1a7354a7-631e-4741-a45b-d6a52fdf9c15",
"48cf6c52-77d6-4f60-aea1-afeff67c117c"
],
"isActivatedByVsmart": false
}

 

Now I'am trying to change prefix value to 10.5.57.0/24 with PUT method and everything looks ok.

 

 This is my response:

 

{
"processId": "push_feature_template_configuration-ed0ce44d-fd64-464c-85cf-f5ae62635dd0",
"masterTemplatesAffected": [
"d497147c-12d3-444f-b086-d6b128aa7631",
"0f475d1b-f3d1-4199-a09d-75cf66cad4cf"
]
}

 

In vManage GUI I see every changes I've made, but after few minutes, all my changes roll back.

I suspect, the problem is in activate/edit devices templetes where the policy is attached.

So my question is, should I use some other RestApi resource to activate this changes (like in vManage GUI)? If yes, where should I find it?

 

P.S.

In PUT response I noticed field "masterTemplatesAffected" with device templates ids. Thats why I suspect I miss something else releted to activation.

Thanks.

0 Replies 0