<?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: Removing a Protocol from a Service Object? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169669#M7474</link>
    <description>&lt;P&gt;Wonder if you can use set generic-object to actually change the setting?&lt;BR /&gt;In any case, seems like a bug that this doesn't work correctly.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 20:06:01 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-01-30T20:06:01Z</dc:date>
    <item>
      <title>Removing a Protocol from a Service Object?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169539#M7467</link>
      <description>&lt;P&gt;I see you can 'set services-tcp uid &amp;lt;UUID&amp;gt; protocol &amp;lt;protocol&amp;gt;' to&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;add&lt;/STRONG&gt;&lt;/EM&gt; a protocol to a service, but is there a way to&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;remove&lt;/STRONG&gt;&lt;/EM&gt; a protocol from a service? In SmartConsole, you set the protocol to -. I tried "None", "none", and a dash with no luck:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# mgmt_cli -s session.txt -f json show service-tcp name testService
{
  "uid" : "a10d3006-d85c-46de-b585-0112eb64ea5a",
  "name" : "testService",
  "type" : "service-tcp",
  "domain" : {
    "uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
    "name" : "SMC User",
    "domain-type" : "domain"
  },
  "port" : "12345",
  "protocol" : "DNS_TCP",
  "match-by-protocol-signature" : false,
  "override-default-settings" : false,
  "session-timeout" : 3600,
  "use-default-session-timeout" : true,
  "match-for-any" : false,
  "sync-connections-on-cluster" : true,
  "aggressive-aging" : {
    "enable" : true,
    "timeout" : 600,
    "use-default-timeout" : true,
    "default-timeout" : 0
  },
  "keep-connections-open-after-policy-installation" : false,
  "groups" : [ ],
  "comments" : "",
  "color" : "black",
  "icon" : "Services/TCPService",
  "tags" : [ ],
  "meta-info" : {
    "lock" : "locked by current session",
    "validation-state" : "ok",
    "last-modify-time" : {
      "posix" : 1675031424431,
      "iso-8601" : "2023-01-29T22:30+0000"
    },
    "last-modifier" : "WEB_API",
    "creation-time" : {
      "posix" : 1675031424431,
      "iso-8601" : "2023-01-29T22:30+0000"
    },
    "creator" : "WEB_API"
  },
  "read-only" : false
}
[Expert@DallasSA]# mgmt_cli -s session.txt -f json set service-tcp uid a10d3006-d85c-46de-b585-0112eb64ea5a protocol "None"
{
  "code" : "generic_err_invalid_parameter",
  "message" : "Invalid parameter for [protocol]. No such protocol : [ None ]"
}
[Expert@DallasSA]# mgmt_cli -s session.txt -f json set service-tcp uid a10d3006-d85c-46de-b585-0112eb64ea5a protocol "none"
{
  "code" : "generic_err_invalid_parameter",
  "message" : "Invalid parameter for [protocol]. No such protocol : [ none ]"
}
[Expert@DallasSA]# mgmt_cli -s session.txt -f json set service-tcp uid a10d3006-d85c-46de-b585-0112eb64ea5a protocol "-"
{
  "code" : "generic_err_invalid_parameter",
  "message" : "Invalid parameter for [protocol]. No such protocol : [ - ]"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 29 Jan 2023 22:39:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169539#M7467</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-01-29T22:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a Protocol from a Service Object?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169544#M7468</link>
      <description>&lt;P&gt;Guessing that may not be something fully set table via the API.&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;what say you?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 01:48:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169544#M7468</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-01-30T01:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a Protocol from a Service Object?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169647#M7470</link>
      <description>&lt;P&gt;Just checked 'show generic-object', and it shows the protoType property changing from 'null' to a UUID when I set it. I tried "null", both in quotes and out of quotes, and quotes around an empty string. None of these threw errors, but they also didn't change the object's protocol (as expected).&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:43:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169647#M7470</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-01-30T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a Protocol from a Service Object?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169669#M7474</link>
      <description>&lt;P&gt;Wonder if you can use set generic-object to actually change the setting?&lt;BR /&gt;In any case, seems like a bug that this doesn't work correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 20:06:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/169669#M7474</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-01-30T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a Protocol from a Service Object?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/171217#M7489</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We will add the option to remove a protocol by providing "none" in&amp;nbsp;in the next release and in future HFA of previous versions (PMTR-90609).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Omer&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 11:22:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/171217#M7489</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2023-02-13T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a Protocol from a Service Object?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/171246#M7490</link>
      <description>&lt;P&gt;Thank you! I'll monitor and update this thread when the option appears.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 14:31:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-a-Protocol-from-a-Service-Object/m-p/171246#M7490</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-02-13T14:31:27Z</dc:date>
    </item>
  </channel>
</rss>

