I see you can 'set services-tcp uid <UUID> protocol <protocol>' to add a protocol to a service, but is there a way to remove a protocol from a service? In SmartConsole, you set the protocol to -. I tried "None", "none", and a dash with no luck:
[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 : [ - ]"
}