Skip to content

Cloud AWS Registration

The Cloud AWS Registration service collection provides operations for registering and managing AWS accounts in the CrowdStrike Falcon platform. Create, delete, update, and validate AWS account registrations for cloud security monitoring.

LanguageLast Update
Pythonv1.6.5
PowerShell
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0


OperationDescription
cloud-registration-aws-create-account
create_account
Creates a new account in our system for a customer.
cloud-registration-aws-delete-account
delete_account
Deletes an existing AWS account or organization in our system.
cloud-registration-aws-get-accounts
get_accounts
Retrieve existing AWS accounts by account IDs or organization IDs
cloud-registration-aws-query-accounts
query_accounts
Retrieve existing AWS accounts by account IDs
cloud-registration-aws-trigger-health-check
trigger_health_check
Trigger health check scan for AWS accounts
cloud-registration-aws-update-account
update_account
Patches a existing account in our system for a customer.
cloud-registration-aws-validate-accounts
validate_accounts
Validates the AWS account registration status, and discover organization child accounts if organization is specified

Creates a new account in our system for a customer.

Method POST
Route /cloud-security-registration-aws/entities/account/v1
Scope Cloud Security AWS Registration: WRITE
PEP 8 create_account
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
account_id body · string
AWS account ID.
account_type body · string
AWS account type.
csp_events body · boolean
Flag indicating if CSP events should be included.
is_master body · boolean
Flag indicating if this is a master account.
organization_id body · string
AWS organization ID.
products body · list of dictionaries
List of included products and features.
from falconpy import CloudAWSRegistration
falcon = CloudAWSRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
products = [
{
"features": [
"string"
],
"product": "string"
}
]
response = falcon.create_account(account_id="string",
account_type="string",
csp_events=boolean,
is_master=boolean,
organization_id="string",
products=products)
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_id": "string",
"account_name": "string",
"account_type": "string",
"active_regions": [],
"cid": "string",
"cloud_registration_enabled": false,
"cloudformation_stack_arn": "string",
"cloudformation_update_url": "string",
"cloudformation_url": "string",
"conditions": [],
"csp_events": false,
"cspm_enabled": false,
"environment": "string",
"falcon_client_id": "string",
"iam_service_permissions_status": [],
"inventory_filter": [],
"is_cspm_lite": false,
"is_custom_rolename": false,
"is_delegated_admin": false,
"is_master": false,
"ngsiem_enabled": false,
"organization_id": "string",
"products": [],
"registration_id": "string",
"registration_status": "string",
"remediation_cloudformation_url": "string",
"resource_metadata": {},
"resource_name_prefix": "string",
"resource_name_suffix": "string",
"root_account_id": "string",
"root_iam_role": false,
"s3_url": "string",
"settings": {},
"status": [],
"target_ous": [],
"template_source_region": "string",
"use_existing_cloudtrail": false
}
]


Deletes an existing AWS account or organization in our system.

Method DELETE
Route /cloud-security-registration-aws/entities/account/v1
Scope Cloud Security AWS Registration: WRITE
PEP 8 delete_account
ids query · string or list of strings
AWS account IDs to remove
organization-ids query · string or list of strings
AWS organization IDs to remove
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
organization_ids body · string or list of strings
AWS organization IDs to remove.
from falconpy import CloudAWSRegistration
falcon = 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.delete_account(ids=id_list, organization_ids=id_list)
print(response)
{
"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
}
}
}


Retrieve existing AWS accounts by account IDs or organization IDs

Method GET
Route /cloud-security-registration-aws/entities/account/v1
Scope Cloud Security AWS Registration: READ
PEP 8 get_accounts
ids query · string or list of strings
AWS account IDs to filter
organization-ids query · string or list of strings
AWS organization IDs to filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
organization_ids body · string or list of strings
AWS organization IDs to filter.
from falconpy import CloudAWSRegistration
falcon = 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, organization_ids=id_list)
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_id": "string",
"account_name": "string",
"account_type": "string",
"active_regions": [],
"cid": "string",
"cloud_registration_enabled": false,
"cloudformation_stack_arn": "string",
"cloudformation_update_url": "string",
"cloudformation_url": "string",
"conditions": [],
"csp_events": false,
"cspm_enabled": false,
"environment": "string",
"falcon_client_id": "string",
"iam_service_permissions_status": [],
"inventory_filter": [],
"is_cspm_lite": false,
"is_custom_rolename": false,
"is_delegated_admin": false,
"is_master": false,
"ngsiem_enabled": false,
"organization_id": "string",
"products": [],
"registration_id": "string",
"registration_status": "string",
"remediation_cloudformation_url": "string",
"resource_metadata": {},
"resource_name_prefix": "string",
"resource_name_suffix": "string",
"root_account_id": "string",
"root_iam_role": false,
"s3_url": "string",
"settings": {},
"status": [],
"target_ous": [],
"template_source_region": "string",
"use_existing_cloudtrail": false
}
]


Retrieve existing AWS accounts by account IDs

Method GET
Route /cloud-security-registration-aws/queries/account/v1
Scope Cloud Security AWS Registration: READ
PEP 8 query_accounts
organization-ids query · string or list of strings
Organization IDs used to filter accounts
products query · string or list of strings
Products registered for an account
features query · string or list of strings
Features registered for an account
account-status query · string
Account status to filter results by.
Available values (2)
provisionedoperational
limit query · integer
The maximum number of items to return. When not specified or 0, 100 is used. When larger than 500, 500 is used.
offset query · integer
The offset to start retrieving records from.
group_by query · string
Field to group by.
Available values (1)
organization
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
organization_ids body · string or list of strings
Organization IDs used to filter accounts.
account_status body · string
Account status to filter results by.
from falconpy import CloudAWSRegistration
falcon = 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.query_accounts(organization_ids=id_list,
products=id_list,
features=id_list,
account_status="string",
limit=integer,
offset=integer,
group_by="string")
print(response)
[
"string"
]


cloud-registration-aws-trigger-health-check

Section titled “cloud-registration-aws-trigger-health-check”

Trigger health check scan for AWS accounts

Method POST
Route /cloud-security-registration-aws/entities/account-scans/v1
Scope Cloud Security AWS Registration: READ
PEP 8 trigger_health_check
account-ids query · string or list of strings
AWS Account IDs.
organization-ids query · string or list of strings
Organization IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
account_ids body · string or list of strings
AWS Account IDs.
organization_ids body · string or list of strings
Organization IDs.
from falconpy import CloudAWSRegistration
falcon = 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.trigger_health_check(account_ids=id_list,
organization_ids=id_list)
print(response)
[
{
"fail": 0,
"success": 0
}
]


Patches a existing account in our system for a customer.

Method PATCH
Route /cloud-security-registration-aws/entities/account/v1
Scope Cloud Security AWS Registration: WRITE
PEP 8 update_account
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
account_id body · string
AWS account ID.
account_type body · string
AWS account type.
csp_events body · boolean
Flag indicating if CSP events should be included.
is_master body · boolean
Flag indicating if this is a master account.
organization_id body · string
AWS organization ID.
products body · list of dictionaries
List of included products and features.
from falconpy import CloudAWSRegistration
falcon = CloudAWSRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
products = [
{
"features": [
"string"
],
"product": "string"
}
]
response = falcon.update_account(account_id="string",
account_type="string",
csp_events=boolean,
is_master=boolean,
organization_id="string",
products=products)
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_id": "string",
"account_name": "string",
"account_type": "string",
"active_regions": [],
"cid": "string",
"cloud_registration_enabled": false,
"cloudformation_stack_arn": "string",
"cloudformation_update_url": "string",
"cloudformation_url": "string",
"conditions": [],
"csp_events": false,
"cspm_enabled": false,
"environment": "string",
"falcon_client_id": "string",
"iam_service_permissions_status": [],
"inventory_filter": [],
"is_cspm_lite": false,
"is_custom_rolename": false,
"is_delegated_admin": false,
"is_master": false,
"ngsiem_enabled": false,
"organization_id": "string",
"products": [],
"registration_id": "string",
"registration_status": "string",
"remediation_cloudformation_url": "string",
"resource_metadata": {},
"resource_name_prefix": "string",
"resource_name_suffix": "string",
"root_account_id": "string",
"root_iam_role": false,
"s3_url": "string",
"settings": {},
"status": [],
"target_ous": [],
"template_source_region": "string",
"use_existing_cloudtrail": false
}
]


Validates the AWS account registration status, and discover organization child accounts if organization is specified

Method POST
Route /cloud-security-registration-aws/entities/account/validate/v1
Scope Cloud Security AWS Registration: READ
PEP 8 validate_accounts
account-id query · string
AWS Account ID. organization-id shouldn’t be specified if this is specified
iam-role-arn query · string
IAM Role ARN
organization-id query · string
AWS organization ID to validate master account. account-id shouldn’t be specified if this is specified
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
account_id body · string
AWS Account ID. organization-id shouldn’t be specified if this is specified.
iam_role_arn body · string
IAM Role ARN.
organization_id body · string
AWS organization ID to validate master account. account_id shouldn’t be specified if this is specified.
from falconpy import CloudAWSRegistration
falcon = CloudAWSRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.validate_accounts(account_id="string",
iam_role_arn="string",
organization_id="string")
print(response)
[
{
"account_id": "string",
"conditions": [],
"iam_service_permissions_status": [],
"status": []
}
]