Skip to content

Network Containment

Operations for the Network Containment service collection.

LanguageLast Update
Pythonv1.6.6
PowerShell
Go
TypeScript
Rust
Ruby

OperationDescription
CreateContainmentAllowlistRules
create_allowlist_rules
Add new network containment allowlist rules
DeleteContainmentAllowlistRules
delete_allowlist_rules
Delete network containment allowlist rules by ID
GetContainmentAllowlistRules
get_allowlist_rules
Get network containment allowlist rules for the specified IDs
QueryContainmentAllowlistRules
query_allowlist_rules
Search for network containment allowlist rules by context
UpdateContainmentAllowlistRules
update_allowlist_rules
Update network containment allowlist rules

Add new network containment allowlist rules

Method POST
Route /customers/entities/containment-allowlist-rules/v1
Scope Network Containment Allowlist: WRITE
PEP 8 create_allowlist_rules
body body · dictionary
Full body payload as JSON formatted dictionary.
rules body · array
The rules value.
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)
[
{
"cid": "string",
"context": "string",
"created_by": "string",
"created_on": "string",
"id": "string",
"label": "string",
"options": {},
"rule": "string",
"type": "string"
}
]


Delete network containment allowlist rules by ID

Method DELETE
Route /customers/entities/containment-allowlist-rules/v1
Scope Network Containment Allowlist: WRITE
PEP 8 delete_allowlist_rules
ids query · string
Containment allowlist rule ID
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
{
"cid": "string",
"context": "string",
"created_by": "string",
"created_on": "string",
"id": "string",
"label": "string",
"options": {},
"rule": "string",
"type": "string"
}
]


Get network containment allowlist rules for the specified IDs

Method GET
Route /customers/entities/containment-allowlist-rules/v1
Scope Network Containment Allowlist: READ
PEP 8 get_allowlist_rules
ids query · string or list of strings
Containment allowlist rule ID
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
{
"cid": "string",
"context": "string",
"created_by": "string",
"created_on": "string",
"id": "string",
"label": "string",
"options": {},
"rule": "string",
"type": "string"
}
]


Search for network containment allowlist rules by context

Method GET
Route /customers/queries/containment-allowlist-rules/v1
Scope Network Containment Allowlist: READ
PEP 8 query_allowlist_rules
filter query · string
Allowlist FQL filter. Can only filter based on the context parameter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkContainment
falcon = NetworkContainment(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_allowlist_rules(filter="string")
print(response)
[
"string"
]


Update network containment allowlist rules

Method PATCH
Route /customers/entities/containment-allowlist-rules/v1
Scope Network Containment Allowlist: WRITE
PEP 8 update_allowlist_rules
body body · dictionary
Full body payload as JSON formatted dictionary.
rules body · array
The rules value.
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)
[
{
"cid": "string",
"context": "string",
"created_by": "string",
"created_on": "string",
"id": "string",
"label": "string",
"options": {},
"rule": "string",
"type": "string"
}
]