catocli 2.0.1__py3-none-any.whl → 2.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of catocli might be problematic. Click here for more details.
- catocli/Utils/clidriver.py +37 -5
- catocli/__init__.py +1 -1
- catocli/parsers/custom/__init__.py +3 -2
- catocli/parsers/custom/customLib.py +252 -1
- catocli/parsers/custom/export_rules/__init__.py +5 -1
- catocli/parsers/custom/export_rules/export_rules.py +31 -182
- catocli/parsers/custom/export_sites/__init__.py +20 -0
- catocli/parsers/custom/export_sites/export_sites.py +233 -0
- catocli/parsers/custom/import_rules_to_tf/__init__.py +2 -2
- catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +19 -9
- catocli/parsers/mutation_accountManagement/__init__.py +15 -18
- catocli/parsers/mutation_admin/__init__.py +15 -18
- catocli/parsers/mutation_container/__init__.py +5 -6
- catocli/parsers/mutation_hardware/__init__.py +5 -6
- catocli/parsers/mutation_policy/__init__.py +582 -504
- catocli/parsers/mutation_policy_terminalServer/README.md +7 -0
- catocli/parsers/mutation_policy_terminalServer_addRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_addSection/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +18 -0
- catocli/parsers/mutation_sandbox/__init__.py +10 -12
- catocli/parsers/mutation_site/__init__.py +164 -150
- catocli/parsers/mutation_site_addSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_site_startSiteUpgrade/README.md +17 -0
- catocli/parsers/mutation_sites/__init__.py +164 -150
- catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_sites_startSiteUpgrade/README.md +17 -0
- catocli/parsers/mutation_xdr/__init__.py +15 -18
- catocli/parsers/query_accountBySubdomain/__init__.py +5 -6
- catocli/parsers/query_accountManagement/__init__.py +5 -6
- catocli/parsers/query_accountMetrics/__init__.py +5 -6
- catocli/parsers/query_accountRoles/__init__.py +5 -6
- catocli/parsers/query_accountSnapshot/__init__.py +5 -6
- catocli/parsers/query_admin/__init__.py +5 -6
- catocli/parsers/query_admins/__init__.py +5 -6
- catocli/parsers/query_appStats/__init__.py +5 -6
- catocli/parsers/query_appStatsTimeSeries/__init__.py +5 -6
- catocli/parsers/query_auditFeed/__init__.py +5 -6
- catocli/parsers/query_catalogs/__init__.py +5 -6
- catocli/parsers/query_container/__init__.py +5 -6
- catocli/parsers/query_devices/README.md +2 -1
- catocli/parsers/query_devices/__init__.py +5 -6
- catocli/parsers/query_entityLookup/__init__.py +5 -6
- catocli/parsers/query_events/__init__.py +5 -6
- catocli/parsers/query_eventsFeed/README.md +1 -1
- catocli/parsers/query_eventsFeed/__init__.py +5 -6
- catocli/parsers/query_eventsTimeSeries/__init__.py +5 -6
- catocli/parsers/query_hardware/__init__.py +5 -6
- catocli/parsers/query_hardwareManagement/__init__.py +5 -6
- catocli/parsers/query_licensing/__init__.py +5 -6
- catocli/parsers/query_policy/README.md +2 -1
- catocli/parsers/query_policy/__init__.py +5 -6
- catocli/parsers/query_sandbox/__init__.py +5 -6
- catocli/parsers/query_site/README.md +2 -1
- catocli/parsers/query_site/__init__.py +5 -6
- catocli/parsers/query_siteLocation/__init__.py +3 -7
- catocli/parsers/query_subDomains/__init__.py +5 -6
- catocli/parsers/query_xdr/__init__.py +10 -12
- catocli/parsers/raw/__init__.py +2 -0
- {catocli-2.0.1.dist-info → catocli-2.0.2.dist-info}/METADATA +1 -1
- {catocli-2.0.1.dist-info → catocli-2.0.2.dist-info}/RECORD +104 -65
- graphql_client/api/call_api.py +12 -6
- models/mutation.policy.remotePortFwd.updateRule.json +6 -6
- models/mutation.policy.terminalServer.addRule.json +2403 -0
- models/mutation.policy.terminalServer.addSection.json +1358 -0
- models/mutation.policy.terminalServer.createPolicyRevision.json +1873 -0
- models/mutation.policy.terminalServer.discardPolicyRevision.json +1807 -0
- models/mutation.policy.terminalServer.moveRule.json +1605 -0
- models/mutation.policy.terminalServer.moveSection.json +1259 -0
- models/mutation.policy.terminalServer.publishPolicyRevision.json +1864 -0
- models/mutation.policy.terminalServer.removeRule.json +1253 -0
- models/mutation.policy.terminalServer.removeSection.json +958 -0
- models/mutation.policy.terminalServer.updatePolicy.json +1883 -0
- models/mutation.policy.terminalServer.updateRule.json +2096 -0
- models/mutation.policy.terminalServer.updateSection.json +1111 -0
- models/mutation.site.addSocketAddOnCard.json +1050 -0
- models/mutation.site.removeSocketAddOnCard.json +786 -0
- models/mutation.site.startSiteUpgrade.json +802 -0
- models/mutation.sites.addSocketAddOnCard.json +1050 -0
- models/mutation.sites.removeSocketAddOnCard.json +786 -0
- models/mutation.sites.startSiteUpgrade.json +802 -0
- models/query.devices.json +311 -2
- models/query.events.json +48 -0
- models/query.eventsFeed.json +12 -0
- models/query.eventsTimeSeries.json +36 -0
- models/query.licensing.json +21815 -10093
- models/query.policy.json +1898 -305
- models/query.site.json +225 -0
- models/query.siteLocation.json +97190 -295396
- schema/catolib.py +52 -24
- {catocli-2.0.1.dist-info → catocli-2.0.2.dist-info}/LICENSE +0 -0
- {catocli-2.0.1.dist-info → catocli-2.0.2.dist-info}/WHEEL +0 -0
- {catocli-2.0.1.dist-info → catocli-2.0.2.dist-info}/entry_points.txt +0 -0
- {catocli-2.0.1.dist-info → catocli-2.0.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.addRule:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-addRule) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.addRule:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer addRule -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer addRule <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer addRule "$(cat < addRule.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer addRule '{"terminalServerAddRuleInput": {"policyRulePositionInput": {"position": {"position": "enum(PolicyRulePositionEnum)"}, "ref": {"ref": "ID"}}, "terminalServerAddRuleDataInput": {"allowedHostIP": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "enabled": {"enabled": "Boolean"}, "excludeTraffic": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "name": {"name": "String"}}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.addRule ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`terminalServerAddRuleInput` [TerminalServerAddRuleInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.addSection:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-addSection) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.addSection:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer addSection -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer addSection <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer addSection "$(cat < addSection.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer addSection '{"policyAddSectionInput": {"policyAddSectionInfoInput": {"name": {"name": "String"}}, "policySectionPositionInput": {"position": {"position": "enum(PolicySectionPositionEnum)"}, "ref": {"ref": "ID"}}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.addSection ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyAddSectionInput` [PolicyAddSectionInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.createPolicyRevision:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-createPolicyRevision) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.createPolicyRevision:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer createPolicyRevision -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer createPolicyRevision <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer createPolicyRevision "$(cat < createPolicyRevision.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer createPolicyRevision '{"policyCreateRevisionInput": {"description": {"description": "String"}, "name": {"name": "String"}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.createPolicyRevision ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyCreateRevisionInput` [PolicyCreateRevisionInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.discardPolicyRevision:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-discardPolicyRevision) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.discardPolicyRevision:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer discardPolicyRevision -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer discardPolicyRevision <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer discardPolicyRevision "$(cat < discardPolicyRevision.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer discardPolicyRevision '{"policyDiscardRevisionInput": {"id": {"id": "ID"}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.discardPolicyRevision ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyDiscardRevisionInput` [PolicyDiscardRevisionInput] - (optional) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.moveRule:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-moveRule) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.moveRule:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer moveRule -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer moveRule <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer moveRule "$(cat < moveRule.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer moveRule '{"policyMoveRuleInput": {"id": {"id": "ID"}, "policyRulePositionInput": {"position": {"position": "enum(PolicyRulePositionEnum)"}, "ref": {"ref": "ID"}}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.moveRule ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyMoveRuleInput` [PolicyMoveRuleInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.moveSection:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-moveSection) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.moveSection:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer moveSection -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer moveSection <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer moveSection "$(cat < moveSection.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer moveSection '{"policyMoveSectionInput": {"id": {"id": "ID"}, "policySectionPositionInput": {"position": {"position": "enum(PolicySectionPositionEnum)"}, "ref": {"ref": "ID"}}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.moveSection ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyMoveSectionInput` [PolicyMoveSectionInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.publishPolicyRevision:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-publishPolicyRevision) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.publishPolicyRevision:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer publishPolicyRevision -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer publishPolicyRevision <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer publishPolicyRevision "$(cat < publishPolicyRevision.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer publishPolicyRevision '{"policyPublishRevisionInput": {"description": {"description": "String"}, "name": {"name": "String"}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.publishPolicyRevision ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyPublishRevisionInput` [PolicyPublishRevisionInput] - (optional) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.removeRule:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeRule) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.removeRule:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer removeRule -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer removeRule <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer removeRule "$(cat < removeRule.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer removeRule '{"terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}, "terminalServerRemoveRuleInput": {"id": {"id": "ID"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.removeRule ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
18
|
+
`terminalServerRemoveRuleInput` [TerminalServerRemoveRuleInput] - (required) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.removeSection:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeSection) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.removeSection:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer removeSection -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer removeSection <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer removeSection "$(cat < removeSection.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer removeSection '{"policyRemoveSectionInput": {"id": {"id": "ID"}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.removeSection ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyRemoveSectionInput` [PolicyRemoveSectionInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.updatePolicy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updatePolicy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.updatePolicy:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer updatePolicy -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer updatePolicy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer updatePolicy "$(cat < updatePolicy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer updatePolicy '{"terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}, "terminalServerPolicyUpdateInput": {"state": {"state": "enum(PolicyToggleState)"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.updatePolicy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
18
|
+
`terminalServerPolicyUpdateInput` [TerminalServerPolicyUpdateInput] - (required) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.updateRule:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateRule) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.updateRule:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer updateRule -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer updateRule <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer updateRule "$(cat < updateRule.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer updateRule '{"terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}, "terminalServerUpdateRuleInput": {"id": {"id": "ID"}, "terminalServerUpdateRuleDataInput": {"allowedHostIP": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "enabled": {"enabled": "Boolean"}, "excludeTraffic": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "name": {"name": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.updateRule ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
18
|
+
`terminalServerUpdateRuleInput` [TerminalServerUpdateRuleInput] - (required) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.policy.terminalServer.updateSection:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSection) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.policy.terminalServer.updateSection:
|
|
6
|
+
|
|
7
|
+
`catocli mutation policy terminalServer updateSection -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation policy terminalServer updateSection <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation policy terminalServer updateSection "$(cat < updateSection.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation policy terminalServer updateSection '{"policyUpdateSectionInput": {"id": {"id": "ID"}, "policyUpdateSectionInfoInput": {"name": {"name": "String"}}}, "terminalServerPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.policy.terminalServer.updateSection ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`policyUpdateSectionInput` [PolicyUpdateSectionInput] - (required) N/A
|
|
18
|
+
`terminalServerPolicyMutationInput` [TerminalServerPolicyMutationInput] - (optional) N/A
|
|
@@ -14,12 +14,11 @@ def mutation_sandbox_parse(mutation_subparsers):
|
|
|
14
14
|
|
|
15
15
|
mutation_sandbox_deleteReport_parser.add_argument('json', help='Variables in JSON format.')
|
|
16
16
|
mutation_sandbox_deleteReport_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
17
|
-
mutation_sandbox_deleteReport_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
18
|
-
|
|
19
|
-
mutation_sandbox_deleteReport_parser.add_argument('-
|
|
20
|
-
|
|
21
|
-
mutation_sandbox_deleteReport_parser.add_argument('-
|
|
22
|
-
help='Pretty print')
|
|
17
|
+
mutation_sandbox_deleteReport_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
18
|
+
mutation_sandbox_deleteReport_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
19
|
+
mutation_sandbox_deleteReport_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
20
|
+
mutation_sandbox_deleteReport_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
|
+
mutation_sandbox_deleteReport_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
23
22
|
mutation_sandbox_deleteReport_parser.set_defaults(func=createRequest,operation_name='mutation.sandbox.deleteReport')
|
|
24
23
|
|
|
25
24
|
mutation_sandbox_uploadFile_parser = mutation_sandbox_subparsers.add_parser('uploadFile',
|
|
@@ -28,10 +27,9 @@ def mutation_sandbox_parse(mutation_subparsers):
|
|
|
28
27
|
|
|
29
28
|
mutation_sandbox_uploadFile_parser.add_argument('json', help='Variables in JSON format.')
|
|
30
29
|
mutation_sandbox_uploadFile_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
31
|
-
mutation_sandbox_uploadFile_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
32
|
-
|
|
33
|
-
mutation_sandbox_uploadFile_parser.add_argument('-
|
|
34
|
-
|
|
35
|
-
mutation_sandbox_uploadFile_parser.add_argument('-
|
|
36
|
-
help='Pretty print')
|
|
30
|
+
mutation_sandbox_uploadFile_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
31
|
+
mutation_sandbox_uploadFile_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
32
|
+
mutation_sandbox_uploadFile_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
33
|
+
mutation_sandbox_uploadFile_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
34
|
+
mutation_sandbox_uploadFile_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
37
35
|
mutation_sandbox_uploadFile_parser.set_defaults(func=createRequest,operation_name='mutation.sandbox.uploadFile')
|