client_id and client_secret are keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)
CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.
Full query string parameters payload in JSON format.
Usage
Service class example (PEP8 syntax)
fromfalconpyimportCloudAWSRegistrationfalcon=CloudAWSRegistration(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_accounts(ids=id_list)
print(response)
Service class example (Operation ID syntax)
fromfalconpyimportCloudAWSRegistrationfalcon=CloudAWSRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list='ID1,ID2,ID3'# Can also pass a list here: ['ID1', 'ID2', 'ID3']response=falcon.cloud_registration_aws_get_accounts(ids=id_list)
print(response)
Uber class example
fromfalconpyimportAPIHarnessV2falcon=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("cloud_registration_aws_get_accounts", ids=id_list)
print(response)
cloud_registration_aws_create_account
Creates a new account in our system for a customer.
Full query string parameters payload in JSON format.
Usage
Service class example (PEP8 syntax)
fromfalconpyimportCloudAWSRegistrationfalcon=CloudAWSRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
organization_id_list='ORG_ID1,ORG_ID2,ORG_ID3'# Can also pass a list here: ['ORG_ID1', 'ORG_ID2', 'ORG_ID3']id_list='ID1,ID2,ID3'# Can also pass a list here: ['ID1', 'ID2', 'ID3']response=falcon.delete_account(organization_ids=organization_id_list, ids=id_list)
print(response)
Service class example (Operation ID syntax)
fromfalconpyimportCloudAWSRegistrationfalcon=CloudAWSRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
organization_id_list='ORG_ID1,ORG_ID2,ORG_ID3'# Can also pass a list here: ['ORG_ID1', 'ORG_ID2', 'ORG_ID3']id_list='ID1,ID2,ID3'# Can also pass a list here: ['ID1', 'ID2', 'ID3']response=falcon.cloud_registration_aws_delete_account(organization_ids=organization_id_list, ids=id_list)
print(response)
Uber class example
fromfalconpyimportAPIHarnessV2falcon=APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
organization_id_list='ORG_ID1,ORG_ID2,ORG_ID3'# Can also pass a list here: ['ORG_ID1', 'ORG_ID2', 'ORG_ID3']id_list='ID1,ID2,ID3'# Can also pass a list here: ['ID1', 'ID2', 'ID3']response=falcon.command("cloud_registration_aws_delete_account", organization_ids=organization_id_list, ids=id_list)
print(response)
cloud_registration_aws_update_account
Patches a existing account in our system for a customer.