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

ASA REST API - How do I create a network object of type IPv4 Host?

Scott Moore
Level 1
Level 1

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'

}

}

1 Accepted Solution

Accepted Solutions

Scott Moore
Level 1
Level 1

kind = IPv4Address  sorted the issue

View solution in original post

1 Reply 1

Scott Moore
Level 1
Level 1

kind = IPv4Address  sorted the issue