03-22-2017 07:09 AM - edited 03-01-2019 02:56 AM
Hi,
I have managed to create IPv4Network objects using the JSON below with the PUT method. However when I try and add an IPv4Host I receive an error? Does anyone know the correct syntax for this type of entry? The address I need to add is a /32 subnet which I can add manually using ADSM as an IPv4 Host network object (13.66.58.59/32) but cannot seem to add via the API. If I try and add the /32 address and an IPv4Network I get the following error - "kind IPv4Network mismatches with object"
Thanks,
Scott
{
'kind': 'object#NetworkObjGroup',
'name': 'Office365',
'members':[
{
'kind': 'IPv4Network',
'value': '13.107.6.156/31'
},
{
'kind': 'IPv4Network',
'value': '13.107.7.190/31'
},
{
'kind': 'IPv4Network',
'value': '13.107.9.156/31'
},
{
'kind': 'IPv4Network',
'value': '157.55.227.192/26'
}
],
'description':'o365',
'objectId': 'Office365'
}
}
Solved! Go to Solution.
03-23-2017 09:41 AM
kind = IPv4Address sorted the issue
03-23-2017 09:41 AM
kind = IPv4Address sorted the issue
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide