cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
260
Views
0
Helpful
2
Replies
shamax_1983
Participant

Issue with ACI MSO (Multi-site Ochestrator) : API Call to create a new EPG using PATCH method.

Hi Guys, 

I've been trying to get this to work for few days now but couldn't figure out the issue. 

I can successfully create VRFs, BDs, etc using the API (PATCH + add method) in the MSO.   Please note that I want to use the PATCH method so I don't have to include the entire structure in each call (which is massive).

 

I am using the MSO version 2.2.3j

 

When I run the following (using Postman),

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

"value": {

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

}
}
]

I keep getting the error below.  

 

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

Can someone point out what is missing here?  Appreciate your input. 

 

Thanks

2 REPLIES 2
robin.martinez
Beginner

Did you ever get anywhere with this? I'm essentially having the same issue just trying to add a BD although the error is slightly different.

 

It happens using Postman or the API Explorer in the MSO GUI.

 

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

No, I couldn't get it working with EPG creation. Did you get it working for the EPG creaion?

 

In any case, I did get the BD creation fine using the following.

[{
"op": "add",
"path": "/templates/Template1/bds/-",
"value": {
"displayName" : "My BD",
"name" : "myBD", 
"subnets" : [],
"vrfRef": {
    "schemaId" : "603ed1ed324000e38f7244dd",
    "templateName": "Template1",
    "vrfName": "YourTestVRF"
    },
"intersiteBumTrafficAllow": true,
"optimizeWanBandwidth": true,
"l2Stretch": true
}
}]

 

 

Content for Community-Ad

This widget could not be displayed.