<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ASA REST-API in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807573#M79</link>
    <description>&amp;gt;&amp;gt;&amp;gt; Using ASDM I can successfully create copy of ACE in ACL, I mean that I can in ACL create two absolutely equal ACEs.&lt;BR /&gt;&lt;BR /&gt;Hello, are you sure you could create duplicate ACE? As it should not allowed on command line.&lt;BR /&gt;&lt;BR /&gt;I guess ASDM was doing it by creating different object-groups; for example:&lt;BR /&gt;&lt;BR /&gt;object-group network DM_INLINE_NETWORK_1&lt;BR /&gt;network 8.8.8.8 255.255.255.255&lt;BR /&gt;&lt;BR /&gt;object-group network DM_INLINE_NETWORK_2&lt;BR /&gt;network 8.8.8.8 255.255.255.255&lt;BR /&gt;&lt;BR /&gt;access-list ACL permit ip extended host 192.168.0.2 object-group DM_INLINE_NETWORK_1&lt;BR /&gt;access-list ACL permit ip extended host 192.168.0.2 object-group DM_INLINE_NETWORK_2&lt;BR /&gt;&lt;BR /&gt;You may follow the same logic to do via REST API.&lt;BR /&gt;</description>
    <pubDate>Fri, 22 Feb 2019 11:57:33 GMT</pubDate>
    <dc:creator>ngkin2010</dc:creator>
    <dc:date>2019-02-22T11:57:33Z</dc:date>
    <item>
      <title>ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807562#M78</link>
      <description>&lt;P&gt;Hi, all.&lt;/P&gt;
&lt;P&gt;I have Cisco ASA 5515X with installed REST-API agent&lt;/P&gt;
&lt;P&gt;asa# sh run | i rest&lt;BR /&gt;rest-api image disk0:/asa-restapi-132325-lfbff-k8.SPA&lt;BR /&gt;rest-api agent&lt;/P&gt;
&lt;P&gt;Using ASDM I can successfully create copy of ACE in ACL, I mean that I can in ACL create two absolutely equal ACEs.&lt;/P&gt;
&lt;P&gt;When I'm trying to create copy of existing ACE in the same ACL using REST API, I'm getting the following error:&lt;/P&gt;
&lt;P&gt;stdClass Object (&lt;/P&gt;
&lt;P&gt;[messages] =&amp;gt; Array (&lt;/P&gt;
&lt;P&gt;[0] =&amp;gt; stdClass Object ( [level] =&amp;gt; Error [code] =&amp;gt; DUPLICATE [context] =&amp;gt; objectId [details] =&amp;gt; 1178952304 ) )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;So, Is there any way to create two equal ACEs in one ACL using REST API?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 11:47:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807562#M78</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-02-22T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807573#M79</link>
      <description>&amp;gt;&amp;gt;&amp;gt; Using ASDM I can successfully create copy of ACE in ACL, I mean that I can in ACL create two absolutely equal ACEs.&lt;BR /&gt;&lt;BR /&gt;Hello, are you sure you could create duplicate ACE? As it should not allowed on command line.&lt;BR /&gt;&lt;BR /&gt;I guess ASDM was doing it by creating different object-groups; for example:&lt;BR /&gt;&lt;BR /&gt;object-group network DM_INLINE_NETWORK_1&lt;BR /&gt;network 8.8.8.8 255.255.255.255&lt;BR /&gt;&lt;BR /&gt;object-group network DM_INLINE_NETWORK_2&lt;BR /&gt;network 8.8.8.8 255.255.255.255&lt;BR /&gt;&lt;BR /&gt;access-list ACL permit ip extended host 192.168.0.2 object-group DM_INLINE_NETWORK_1&lt;BR /&gt;access-list ACL permit ip extended host 192.168.0.2 object-group DM_INLINE_NETWORK_2&lt;BR /&gt;&lt;BR /&gt;You may follow the same logic to do via REST API.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2019 11:57:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807573#M79</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2019-02-22T11:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807593#M80</link>
      <description>&lt;P&gt;Yes, now I try to create duplicate ACE using CLI and get following message:&lt;/P&gt;
&lt;P&gt;"WARNING: &amp;lt;anyconnect_test_api_acl&amp;gt; found duplicate element"&lt;/P&gt;
&lt;P&gt;So, using CLI I also cannot create copy of existing ACE in the same ACL.&lt;/P&gt;
&lt;P&gt;Now I try to explain why it so important for me.&lt;/P&gt;
&lt;P&gt;I develop Web-application for our security-team to alllow our security guys manage ACLs without deep knowledge of how doing this in ASA CLI.&lt;/P&gt;
&lt;P&gt;Security team ask me to develop feature, that allow them to reorder ACEs in ACL using web interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, in Cisco ASA REST-API documentation there is "PATCH" method for "/api/objects/extendedacls/{aclName}/aces", and documentation exaples says, that I can modify "position" of existing ACE in ACL.&lt;/P&gt;
&lt;P&gt;We start to use this method for ACE reordering, but faced with following problem: if ACE has different source and destination service defined (here I must to note that when I create ACE, I allways define destination service only), when I&amp;nbsp; try to use "PATCH" method for changing ACE position, I'm getting the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;string(155) "{"messages":[{"level":"Error","code":"ACCESS-SRC-DST-SERVICE-SAME-TYPE","details":"Destination Service and Source Service should have the same protocol"}]}"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Cisco &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;imposed such restriction on API?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;And is there any workaround?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;P.S. Why this message was marked as spam? I wrote about things that I want to understand.&amp;nbsp; And I am not writing a lie.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:39:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807593#M80</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-02-22T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807644#M81</link>
      <description>&lt;P&gt;Yes, now I try to create duplicate ACE using CLI and get following message:&lt;/P&gt;
&lt;P&gt;"WARNING: &amp;lt;anyconnect_test_api_acl&amp;gt; found duplicate element"&lt;/P&gt;
&lt;P&gt;So, using CLI I also cannot create copy of existing ACE in the same ACL.&lt;/P&gt;
&lt;P&gt;Now I try to explain why it so important for me.&lt;/P&gt;
&lt;P&gt;I develop Web-application for our security-team to alllow our security guys manage ACLs without deep knowledge of how doing this in ASA CLI.&lt;/P&gt;
&lt;P&gt;Security team ask me to develop feature, that allow them to reorder ACEs in ACL using web interface.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So, in Cisco ASA REST-API documentation there is "PATCH" method for "/api/objects/extendedacls/{aclName}/aces", and documentation exaples says, that I can modify "position" of existing ACE in ACL.&lt;/P&gt;
&lt;P&gt;We start to use this method for ACE reordering, but faced with following problem: if ACE has different source and destination service defined (here I must to note that when I create ACE, I allways define destination service only), when I try to use "PATCH" method for changing ACE position, I'm getting the following error:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;string(155) "{"messages":[{"level":"Error","code":"ACCESS-SRC-DST-SERVICE-SAME-TYPE","details":"Destination Service and Source Service should have the same protocol"}]}"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Why Cisco imposed such restriction on API?&lt;/P&gt;
&lt;P&gt;And is there any workaround?&lt;/P&gt;
&lt;P&gt;P.S. Why this message was marked as spam? I wrote about things that I want to understand. And I am not writing a lie.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:43:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807644#M81</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-02-22T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807654#M82</link>
      <description>&lt;P&gt;Yes, now I try to create duplicate ACE using CLI and get following message:&lt;/P&gt;
&lt;P&gt;"WARNING: &amp;lt;anyconnect_test_api_acl&amp;gt; found duplicate element"&lt;/P&gt;
&lt;P&gt;So, using CLI I also cannot create copy of existing ACE in the same ACL.&lt;/P&gt;
&lt;P&gt;Now I try to explain why it so important for me.&lt;/P&gt;
&lt;P&gt;I develop Web-application for our security-team to alllow our security guys manage ACLs without deep knowledge of how doing this in ASA CLI.&lt;/P&gt;
&lt;P&gt;Security team ask me to develop feature, that allow them to reorder ACEs in ACL using web interface.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So, in Cisco ASA REST-API documentation there is "PATCH" method for "/api/objects/extendedacls/{aclName}/aces", and documentation exaples says, that I can modify "position" of existing ACE in ACL.&lt;/P&gt;
&lt;P&gt;We start to use this method for ACE reordering, but faced with following problem: if ACE has different source and destination service defined (here I must to note that when I create ACE, I allways define destination service only), when I try to use "PATCH" method for changing ACE position, I'm getting the following error:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;"{"messages":[{"level":"Error","code":"ACCESS-SRC-DST-SERVICE-SAME-TYPE","details":"Destination Service and Source Service should have the same protocol"}]}"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Why Cisco imposed such restriction on API?&lt;/P&gt;
&lt;P&gt;And is there any workaround?&lt;/P&gt;
&lt;P&gt;P.S. Why this message was marked as spam? I wrote about things that I want to understand. And I am not writing a lie.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:48:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807654#M82</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-02-22T13:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807777#M83</link>
      <description>Would you mind to post your JSON POST Data? E.g. What JSON did you POST to REST API for moving the position of ACE?</description>
      <pubDate>Fri, 22 Feb 2019 16:19:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807777#M83</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2019-02-22T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807810#M84</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="before.PNG" style="width: 902px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30778i3B3973FD45C374B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="before.PNG" alt="before.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30777i8AA28A65C5C54F33/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.PNG" alt="a.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="after.PNG" style="width: 910px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30779i48B46D711C966776/image-size/large?v=v2&amp;amp;px=999" role="button" title="after.PNG" alt="after.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have did a quick lab, and it works well for me. using PATCH request to swap the position as show in the figure.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 17:01:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3807810#M84</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2019-02-22T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3808836#M85</link>
      <description>&lt;P&gt;Here is example of existing ACE JSON structure:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"kind":"object#ExtendedACE",&lt;/P&gt;
&lt;P&gt;"selfLink":"&lt;A href="https://x.x.x.x/api/access/in/TP/rules/556116732" target="_blank" rel="noopener"&gt;https://x.x.x.x/api/access/in/TP/rules/556116732&lt;/A&gt;",&lt;/P&gt;
&lt;P&gt;"permit":true,&lt;/P&gt;
&lt;P&gt;"sourceAddress":{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "kind":"objectRef#NetworkObj",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "refLink":"&lt;A href="https://x.x.x.x/api/objects/networkobjects/MA_TP" target="_blank" rel="noopener"&gt;https://x.x.x.x/api/objects/networkobjects/MA_TP&lt;/A&gt;",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "objectId":"MA_TP"&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;"destinationAddress":{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "kind":"objectRef#NetworkObjGroup",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "refLink":"&lt;A href="https://x.x.x.x/api/objects/networkobjectgroups/ma-vnc" target="_blank" rel="noopener"&gt;https://x.x.x.x/api/objects/networkobjectgroups/ma-vnc&lt;/A&gt;",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "objectId":"ma-vnc"&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;"sourceService":{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "kind":"NetworkProtocol",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value":"ip"&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;"destinationService":{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "kind":"objectRef#TcpUdpServiceObj",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "refLink":"&lt;A href="https://x.x.x.x/api/objects/networkservices/tcp-1024-65535" target="_blank" rel="noopener"&gt;https://x.x.x.x/api/objects/networkservices/tcp-1024-65535&lt;/A&gt;",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "objectId":"tcp-1024-65535"&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;"active":true,&lt;/P&gt;
&lt;P&gt;"remarks":[],&lt;/P&gt;
&lt;P&gt;"ruleLogging":{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "logStatus":"Default",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "logInterval":300&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;"position":2,&lt;/P&gt;
&lt;P&gt;"isAccessRule":true,&lt;/P&gt;
&lt;P&gt;"objectId":"556116732"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;Now I'm trying to PATCH this ACE to renumber it. And here I get this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error when PATCH" style="width: 644px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30867iC3293E172CF64EF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Error when PATCH" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error when PATCH&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/768449"&gt;@ngkin2010&lt;/a&gt; Can you reproduce this?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 08:42:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3808836#M85</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-02-25T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3808932#M86</link>
      <description>&lt;P&gt;I am trying to reproduce your error with the following ACE (in command line format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cli.PNG" style="width: 813px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30872iC23CAD0A2B015940/image-size/large?v=v2&amp;amp;px=999" role="button" title="cli.PNG" alt="cli.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I try to check on the GET result to see whether is look similar to yours.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="before.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30873i68F5657DEFACAAEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="before.PNG" alt="before.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It look similar! so I go ahead to reproduce your issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 969px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30874iF34A065236FED14F/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got your issue now. That's look like is the &lt;STRONG&gt;BUG&lt;/STRONG&gt;. Because if you are using "&lt;SPAN&gt;enhanced object groups" (wrapping services into object-group), the sourceService will be set to "&lt;STRONG&gt;ip&lt;/STRONG&gt;" while the destination is &lt;STRONG&gt;objectRef#TcpUdpServiceObj&lt;/STRONG&gt;. The mismatching protocol caused the error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, if your object-group (E.g. tcp-1024-65535) contains only TCP service, you could use the following method as a workaround. You also specify the protocol value at the first time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="after.PNG" style="width: 888px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30875iC93614214919BAC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="after.PNG" alt="after.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then it will work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="after2.PNG" style="width: 969px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/30876i79ADC35AB7D94294/image-size/large?v=v2&amp;amp;px=999" role="button" title="after2.PNG" alt="after2.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If your object contains multiple protocols (E.g. UDP + TCP), you &lt;STRONG&gt;can&lt;/STRONG&gt; still set the PATCH like below even through it contains both TCP/UDP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"position": 2,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"sourceService": {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"value": "tcp"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You are recommended&amp;nbsp;to open a TAC case to report this bug for a fix.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 11:25:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3808932#M86</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2019-02-25T11:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3808936#M87</link>
      <description>&lt;P&gt;Yes, you absolutely right.&lt;/P&gt;
&lt;P&gt;A must also note the following:&lt;/P&gt;
&lt;P&gt;1) If&amp;nbsp; I create such ACE (as in my example) using ASDM, then ACE is created with "IP" as SourceService.&lt;/P&gt;
&lt;P&gt;2) But if I create the same ACE using API, then ACE is created with "TCP" as SourceService&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, you can face with this BUG only if you created you ACE ins ASDM or CLI, and after that you trying to PATCH it using API.&lt;/P&gt;
&lt;P&gt;If you have created ACE using API all will be ok, because using API ASA modify sourceService accordinly.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 11:41:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api/m-p/3808936#M87</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-02-25T11:41:01Z</dc:date>
    </item>
  </channel>
</rss>

