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

Creating EPG in MSO using PATCH method

shamax_1983
Level 3
Level 3

Hi Guys,

 

Can someone give me an example snippet of creating an EGP in MSO using Patch method (I am using Postman)?

 

I have been trying this but keep getting the following error no matter what I do.

I can create BDs fine, only getting the following error when trying to create EPGs using PATCH method.

Any help would be much appreciated.

 

MSO Version: 3.2.1f

 

Here's what I'm trying,

 

Running API calls agains : 

https://{{mso-ip}}/api/v1/schemas/603ed1ed650000e38f7244dd

 

Body:

 

[
    {
"op": "add",
"path": "/templates/Stretched/anps/testANP2/epgs/-",

"value": {
                              
    "name": "myEPG",
    "displayName": "MY EPG",
    "contractRelationships": [],
    "subnets": [],
    "uSegEpg": false,
    "uSegAttrs": [],
    "intraEpg": "unenforced",
    "proxyArp": false,
    "preferredGroup": false,
    "selectors": [],
    "bdRef": "/schemas/603ed1ed650000e38f7244dd/templates/Stretched/bds/myBD"

}
}
]

 

 

Result.

 

 

{
    "code": 400,
    "message": "Bad Request: (1)(7)/epgs(0)/schemaId error.path.missing"
}

 

 

2 Replies 2

Ruben Cocheno
Spotlight
Spotlight

@shamax_1983 

Just following up on this and see if you still need help?

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/