Network Containment
Operations for the Network Containment service collection.
| Language | Last Update |
|---|---|
| Python | v1.6.6 |
| PowerShell | |
| Go | |
| TypeScript | |
| Rust | |
| Ruby |
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
CreateContainmentAllowlistRulescreate_allowlist_rules | Add new network containment allowlist rules |
DeleteContainmentAllowlistRulesdelete_allowlist_rules | Delete network containment allowlist rules by ID |
GetContainmentAllowlistRulesget_allowlist_rules | Get network containment allowlist rules for the specified IDs |
QueryContainmentAllowlistRulesquery_allowlist_rules | Search for network containment allowlist rules by context |
UpdateContainmentAllowlistRulesupdate_allowlist_rules | Update network containment allowlist rules |
CreateContainmentAllowlistRules
Section titled “CreateContainmentAllowlistRules”Add new network containment allowlist rules
create_allowlist_rulesParameters
Section titled “Parameters”from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
rules = [ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": { "allow_subdomain": True }, "rule": "string", "type": "string" }]
response = falcon.create_allowlist_rules(rules=rules)print(response)from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
rules = [ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": { "allow_subdomain": True }, "rule": "string", "type": "string" }]
response = falcon.CreateContainmentAllowlistRules(rules=rules)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "rules": [ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": { "allow_subdomain": boolean }, "rule": "string", "type": "string" } ]}
response = falcon.command("CreateContainmentAllowlistRules", body=body_payload)print(response)Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
[ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": {}, "rule": "string", "type": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}DeleteContainmentAllowlistRules
Section titled “DeleteContainmentAllowlistRules”Delete network containment allowlist rules by ID
delete_allowlist_rulesParameters
Section titled “Parameters”from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_allowlist_rules(ids=id_list)print(response)from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.DeleteContainmentAllowlistRules(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("DeleteContainmentAllowlistRules", ids="string")print(response)Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
[ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": {}, "rule": "string", "type": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetContainmentAllowlistRules
Section titled “GetContainmentAllowlistRules”Get network containment allowlist rules for the specified IDs
get_allowlist_rulesParameters
Section titled “Parameters”from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_allowlist_rules(ids=id_list)print(response)from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetContainmentAllowlistRules(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetContainmentAllowlistRules", ids=id_list)print(response)Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
[ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": {}, "rule": "string", "type": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}QueryContainmentAllowlistRules
Section titled “QueryContainmentAllowlistRules”Search for network containment allowlist rules by context
query_allowlist_rulesParameters
Section titled “Parameters”from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_allowlist_rules(filter="string")print(response)from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.QueryContainmentAllowlistRules(filter="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("QueryContainmentAllowlistRules", filter="string")print(response)Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}UpdateContainmentAllowlistRules
Section titled “UpdateContainmentAllowlistRules”Update network containment allowlist rules
update_allowlist_rulesParameters
Section titled “Parameters”from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
rules = [ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": { "allow_subdomain": True }, "rule": "string", "type": "string" }]
response = falcon.update_allowlist_rules(rules=rules)print(response)from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
rules = [ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": { "allow_subdomain": True }, "rule": "string", "type": "string" }]
response = falcon.UpdateContainmentAllowlistRules(rules=rules)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "rules": [ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": { "allow_subdomain": boolean }, "rule": "string", "type": "string" } ]}
response = falcon.command("UpdateContainmentAllowlistRules", body=body_payload)print(response)Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
[ { "cid": "string", "context": "string", "created_by": "string", "created_on": "string", "id": "string", "label": "string", "options": {}, "rule": "string", "type": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}