Skip to content

D4C Registration

The D4C Registration service collection provides operations for registering AWS, Azure, and GCP cloud accounts. This service collection has been superseded by the CSPM Registration service collection and is now deprecated. Developers should move code over to use the new operations available within the updated collection.

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

This service collection has been superseded by the CSPMRegistration service collection and is now deprecated. Developers should move code over to use the new operations available within the updated collection.



OperationDescription
ConnectD4CGCPAccount
connect_gcp_account
Creates a new GCP account with newly-uploaded service account or connects with existing service account with only the following fields: parent_id, parent_type and service_account_id
CreateD4CAwsAccount
create_aws_account
Creates a new account in our system for a customer and generates a script for them to run in their AWS cloud environment to grant us access.
CreateD4CGCPAccount
create_gcp_account
Creates a new account in our system for a customer and generates a new service account for them to add access to in their GCP environment to grant us access.
CreateDiscoverCloudAzureAccount
create_azure_account
Creates a new account in our system for a customer and generates a script for them to run in their cloud environment to grant us access.
DeleteD4CAwsAccount
delete_aws_account
Deletes an existing AWS account or organization in our system.
DeleteD4CGCPAccount
delete_gcp_account
Deletes a GCP account from the system.
GetD4CAwsAccount
get_aws_account
Returns information about the current status of an AWS account.
GetD4CAWSAccountScriptsAttachment
get_aws_account_scripts
Return a script for customer to run in their cloud environment to grant us access to their AWS environment as a downloadable attachment.
GetD4CAwsConsoleSetupURLs
get_aws_console_setup
Return a URL for customer to visit in their cloud environment to grant us access to their AWS environment.
GetD4CCGPAccount
get_gcp_account
Returns information about the current status of an GCP account.
GetD4CGCPServiceAccountsExt
get_gcp_service_account
Returns the service account id and client email for external clients.
GetD4CGCPUserScripts
get_gcp_user_scripts
Return a script for customer to run in their cloud environment to grant us access to their GCP environment
GetD4CGCPUserScriptsAttachment
get_gcp_user_scripts_attachment_v2
Return a script for customer to run in their cloud environment to grant us access to their GCP environment as a downloadable attachment
GetDiscoverCloudAzureAccount
get_azure_account
Return information about Azure account registration
GetDiscoverCloudAzureTenantIDs
get_azure_tenant_ids
Return available tenant ids for discover for cloud
GetDiscoverCloudAzureUserScripts
get_azure_user_scripts
Return a script for customer to run in their cloud environment to grant us access to their Azure environment
GetDiscoverCloudAzureUserScriptsAttachment
get_azure_user_scripts_attachment
Return a script for customer to run in their cloud environment to grant us access to their Azure environment as a downloadable attachment
GetHorizonD4CScripts
get_aws_horizon_scripts
Returns static install scripts for Horizon.
UpdateD4CGCPServiceAccountsExt
update_gcp_service_account
Patches the service account key for external clients.
UpdateDiscoverCloudAzureAccountClientID
update_azure_account_client_id
Update an Azure service account in our system by with the user-created client_id created with the public key we’ve provided

Creates a new GCP account with newly-uploaded service account or connects with existing service account with only the following fields: parent_id, parent_type and service_account_id

Method POST
Route /cloud-connect-gcp/entities/account/v2
Scope D4C registration: WRITE
PEP 8 connect_gcp_account
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
client_email body · string
GCP account email.
client_id body · string
GCP account client ID.
parent_id body · string
GCP parent ID.
parent_type body · string
GCP parent type.
private_key body · string
GCP private key.
private_key_id body · string
GCP private key ID.
project_id body · string
GCP project ID.
service_account_id body · integer
GCP service account ID.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.connect_gcp_account(client_email="string",
client_id="string",
parent_id="string",
parent_type="string",
private_key="string",
private_key_id="string",
project_id="string",
service_account_id=integer)
print(response)
[
{
"client_email": "string",
"client_id": "string",
"parent_id": "string",
"parent_type": "string",
"project_id": "string",
"service_account_conditions": [],
"service_account_id": 0
}
]


Creates a new account in our system for a customer and generates a script for them to run in their AWS cloud environment to grant us access.

Method POST
Route /cloud-connect-aws/entities/account/v2
Scope D4C registration: WRITE
PEP 8 create_aws_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.
cloudtrail_region body · string
AWS region for CloudTrail log access.
iam_role_arn body · string
AWS IAM role ARN.
is_master body · boolean
Flag indicating if this is the master account.
organization_id body · string
AWS organization ID.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_aws_account(account_id="string",
account_type="string",
cloudtrail_region="string",
iam_role_arn="string",
is_master=boolean,
organization_id="string")
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_id": "string",
"account_name": "string",
"account_type": "string",
"active_regions": [],
"aws_cloudtrail_bucket_name": "string",
"aws_cloudtrail_region": "string",
"aws_eventbus_arn": "string",
"aws_permissions_status": [],
"behavior_assessment_enabled": false,
"cid": "string",
"cloud_registration_enabled": false,
"cloud_scopes": [],
"cloudformation_root_stack_arn": "string",
"cloudformation_update_url": "string",
"cloudformation_url": "string",
"conditions": [],
"cspm_enabled": false,
"d4c": {},
"d4c_migrated": false,
"dspm_enabled": false,
"dspm_host_account_id": "string",
"dspm_role_arn": "string",
"environment": "string",
"eventbus_name": "string",
"external_id": "string",
"falcon_client_id": "string",
"features": [],
"iam_role_arn": "string",
"intermediate_role_arn": "string",
"inventory_filter": [],
"is_cloud_registration": false,
"is_cspm_lite": false,
"is_custom_rolename": false,
"is_delegated_admin": false,
"is_master": false,
"ngsiem_enabled": false,
"organization_id": "string",
"remediation_cloudformation_url": "string",
"remediation_region": "string",
"remediation_tou_accepted": "string",
"resource_name_prefix": "string",
"resource_name_suffix": "string",
"root_account_id": "string",
"root_iam_role": false,
"s3_url": "string",
"secondary_role_arn": "string",
"sensor_management_enabled": false,
"settings": {},
"status": "string",
"target_ous": [],
"template_source_region": "string",
"use_existing_cloudtrail": false,
"valid": false,
"vulnerability_scanning_enabled": false,
"vulnerability_scanning_host_account_id": "string",
"vulnerability_scanning_role_arn": "string"
}
]


Creates a new account in our system for a customer and generates a new service account for them to add access to in their GCP environment to grant us access.

Method POST
Route /cloud-connect-gcp/entities/account/v1
Scope D4C registration: WRITE
PEP 8 create_gcp_account
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
parent_id body · string
GCP parent ID.
parent_type body · string
GCP parent type.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_gcp_account(parent_id="string", parent_type="string")
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"cid": "string",
"cloud_registration_enabled": false,
"cloud_scopes": [],
"conditions": [],
"cspm_enabled": false,
"display_name": "string",
"environment": "string",
"folder_id": "string",
"folder_name": "string",
"gcp_permissions_status": [],
"organization_id": "string",
"organization_name": "string",
"parent_id": "string",
"parent_type": "string",
"project_id": "string",
"service_account_client_email": "string",
"service_account_client_id": "string",
"service_account_conditions": [],
"service_account_id": 0,
"service_account_private_key_id": "string",
"service_account_project_id": "string",
"status": "string"
}
]


Creates a new account in our system for a customer and generates a script for them to run in their cloud environment to grant us access.

Method POST
Route /cloud-connect-azure/entities/account/v1
Scope D4C registration: WRITE
PEP 8 create_azure_account
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
account_type body · string
Azure Account type.
client_id body · string
Azure Client ID.
default_subscription body · boolean
Is this the default subscription?
subscription_id body · string
Azure subscription ID.
tenant_id body · string
Azure tenant ID.
years_valid body · integer
Years valid.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_azure_account(account_type="string",
client_id="string",
default_subscription=boolean,
subscription_id="string",
tenant_id="string",
years_valid=integer)
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_type": "string",
"azure_permissions_status": [],
"cid": "string",
"client_id": "string",
"cloud_scopes": [],
"conditions": [],
"credentials_end_date": "string",
"credentials_type": "string",
"default_subscription_id": "string",
"environment": "string",
"ioa_status": "string",
"iom_status": "string",
"is_cspm_lite": false,
"object_id": "string",
"parent_management_group_id": "string",
"parent_management_group_name": "string",
"primary_domain": "string",
"public_certificate": "string",
"public_certificate_raw": "string",
"role_assignments": [],
"show_modal": false,
"status": "string",
"subscription_id": "string",
"subscription_name": "string",
"tenant_id": "string",
"tenant_name": "string",
"years_valid": 0
}
]


Deletes an existing AWS account or organization in our system.

Method DELETE
Route /cloud-connect-aws/entities/account/v2
Scope D4C registration: WRITE
PEP 8 delete_aws_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
List of AWS Organization IDs to retrieve.
from falconpy import D4CRegistration
falcon = D4CRegistration(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_aws_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
}
}
}


Deletes a GCP account from the system.

Method DELETE
Route /cloud-connect-gcp/entities/account/v1
Scope D4C registration: WRITE
PEP 8 delete_gcp_account
ids query · string or list of strings
Hierarchical Resource IDs of accounts
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import D4CRegistration
falcon = D4CRegistration(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_gcp_account(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
}
}
}


Returns information about the current status of an AWS account.

Method GET
Route /cloud-connect-aws/entities/account/v2
Scope D4C registration: READ
PEP 8 get_aws_account
scan-type query · string
Type of scan, dry or full, to perform on selected accounts
ids query · string or list of strings
AWS account IDs
organization-ids query · string or list of strings
AWS organization IDs
status query · string
Account status to filter results by.
limit query · integer
The maximum records to return. Defaults to 100.
offset query · integer
The offset to start retrieving records from
migrated query · string
Only return migrated d4c accounts
Available values (2)
truefalse
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
List of AWS Organization IDs to retrieve.
scan_type body · string
Type of scan, dry or full, to perform on selected accounts.
from falconpy import D4CRegistration
falcon = D4CRegistration(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_aws_account(ids=id_list,
limit=integer,
migrated="string",
offset=integer,
organization_ids=id_list,
scan_type="string",
status="string")
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_id": "string",
"account_name": "string",
"account_type": "string",
"active_regions": [],
"aws_cloudtrail_bucket_name": "string",
"aws_cloudtrail_region": "string",
"aws_eventbus_arn": "string",
"aws_permissions_status": [],
"behavior_assessment_enabled": false,
"cid": "string",
"cloud_registration_enabled": false,
"cloud_scopes": [],
"cloudformation_root_stack_arn": "string",
"cloudformation_update_url": "string",
"cloudformation_url": "string",
"conditions": [],
"cspm_enabled": false,
"d4c": {},
"d4c_migrated": false,
"dspm_enabled": false,
"dspm_host_account_id": "string",
"dspm_role_arn": "string",
"environment": "string",
"eventbus_name": "string",
"external_id": "string",
"falcon_client_id": "string",
"features": [],
"iam_role_arn": "string",
"intermediate_role_arn": "string",
"inventory_filter": [],
"is_cloud_registration": false,
"is_cspm_lite": false,
"is_custom_rolename": false,
"is_delegated_admin": false,
"is_master": false,
"ngsiem_enabled": false,
"organization_id": "string",
"remediation_cloudformation_url": "string",
"remediation_region": "string",
"remediation_tou_accepted": "string",
"resource_name_prefix": "string",
"resource_name_suffix": "string",
"root_account_id": "string",
"root_iam_role": false,
"s3_url": "string",
"secondary_role_arn": "string",
"sensor_management_enabled": false,
"settings": {},
"status": "string",
"target_ous": [],
"template_source_region": "string",
"use_existing_cloudtrail": false,
"valid": false,
"vulnerability_scanning_enabled": false,
"vulnerability_scanning_host_account_id": "string",
"vulnerability_scanning_role_arn": "string"
}
]


Return a script for customer to run in their cloud environment to grant us access to their AWS environment as a downloadable attachment.

Method GET
Route /cloud-connect-aws/entities/user-scripts-download/v1
Scope D4C registration: READ
PEP 8 get_aws_account_scripts
ids query · string or list of strings
AWS account IDs
template query · string
Template to be rendered
Available values (1)
aws-bash
accounts query · string or list of strings
The list of accounts to register
behavior_assessment_enabled query · string
Available values:
Available values (2)
truefalse
sensor_management_enabled query · string
Available values:
Available values (2)
truefalse
dspm_enabled query · string
Available values:
Available values (2)
truefalse
dspm_regions query · string or list of strings
DSPM Regions.
dspm_host_account_id query · string
DSPM Host Account ID.
dspm_host_integration_role_name query · string
DSPM Host Integration Role Name.
dspm_host_scanner_role_name query · string
DSPM Host Scanner Role Name.
dspm_role query · string
DSPM Role.
vulnerability_scanning_enabled query · string
Enabled. Available values:
Available values (2)
truefalse
vulnerability_scanning_regions query · string or list of strings
Regions.
vulnerability_scanning_host_account_id query · string
Account ID.
vulnerability_scanning_host_integration_role_name query · string
Host Integration Role Name.
vulnerability_scanning_host_scanner_role_name query · string
Host Scanner Role Name.
vulnerability_scanning_role query · string
Role.
use_existing_cloudtrail query · string
Use Existing CloudTrail. Available values:
Available values (2)
truefalse
organization_id query · string
The AWS organization ID to be registered
organizational_unit_ids query · string or list of strings
The AWS Organizational Unit IDs to be registered
aws_profile query · string
The AWS profile to be used during registration
aws_region query · string
The AWS region to be used during registration
iam_role_arn query · string
The custom IAM role to be used during registration
falcon_client_id query · string
The Falcon client ID used during registration
idp_enabled query · string
Set to true to enable Identity Protection feature
tags query · string
Base64 encoded JSON string to be used as AWS tags
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
with open("output_file", "wb") as save_file:
response = falcon.get_aws_account_scripts(ids=id_list,
template="string",
accounts=id_list,
behavior_assessment_enabled="string",
sensor_management_enabled="string",
dspm_enabled="string",
dspm_regions=id_list,
dspm_host_account_id="string",
dspm_host_integration_role_name="string",
dspm_host_scanner_role_name="string",
dspm_role="string",
vulnerability_scanning_enabled="string",
vulnerability_scanning_regions=id_list,
vulnerability_scanning_host_account_id="string",
vulnerability_scanning_host_integration_role_name="string",
vulnerability_scanning_host_scanner_role_name="string",
vulnerability_scanning_role="string",
use_existing_cloudtrail="string",
organization_id="string",
organizational_unit_ids=id_list,
aws_profile="string",
aws_region="string",
iam_role_arn="string",
falcon_client_id="string",
idp_enabled="string",
tags="string",
stream=boolean)
save_file.write(response)
[
{
"bash": "string"
}
]


Return a URL for customer to visit in their cloud environment to grant us access to their AWS environment.

Method GET
Route /cloud-connect-aws/entities/console-setup-urls/v1
Scope D4C registration: READ
PEP 8 get_aws_console_setup
region query · string
Region
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_aws_console_setup(region="string")
print(response)
[
{
"account_id": "string",
"url": "string"
}
]


Returns information about the current status of an GCP account.

Method GET
Route /cloud-connect-gcp/entities/account/v1
Scope D4C registration: READ
PEP 8 get_gcp_account
parent_type query · string
GCP Hierarchy Parent Type, organization/folder/project
Available values (3)
FolderOrganizationProject
ids query · string or list of strings
Hierarchical Resource IDs of accounts
scan-type query · string
Type of scan, dry or full, to perform on selected accounts
Available values (2)
dryfull
status query · string
Account status to filter results by.
Available values (2)
operationalprovisioned
limit query · integer
The maximum records to return. Defaults to 100.
offset query · integer
The offset to start retrieving records from
sort query · string
asc.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
scan_type body · string
Type of scan, dry or full, to perform on selected accounts.
from falconpy import D4CRegistration
falcon = D4CRegistration(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_gcp_account(ids=id_list,
limit=integer,
offset=integer,
parent_type="string",
scan_type="string",
sort="string",
status="string")
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"cid": "string",
"cloud_registration_enabled": false,
"cloud_scopes": [],
"conditions": [],
"cspm_enabled": false,
"display_name": "string",
"environment": "string",
"folder_id": "string",
"folder_name": "string",
"gcp_permissions_status": [],
"organization_id": "string",
"organization_name": "string",
"parent_id": "string",
"parent_type": "string",
"project_id": "string",
"service_account_client_email": "string",
"service_account_client_id": "string",
"service_account_conditions": [],
"service_account_id": 0,
"service_account_private_key_id": "string",
"service_account_project_id": "string",
"status": "string"
}
]


Returns the service account id and client email for external clients.

Method GET
Route /cloud-connect-gcp/entities/service-accounts/v1
Scope D4C registration: READ
PEP 8 get_gcp_service_account
id query · string
Service Account ID
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_gcp_service_account(id="string")
print(response)
[
{
"client_email": "string",
"client_id": "string",
"project_id": "string",
"service_account_conditions": [],
"service_account_id": 0
}
]


Return a script for customer to run in their cloud environment to grant us access to their GCP environment

Method GET
Route /cloud-connect-gcp/entities/user-scripts/v1
Scope D4C registration: READ
PEP 8 get_gcp_user_scripts
parent_type query · string
GCP Hierarchy Parent Type, organization/folder/project
Available values (3)
FolderOrganizationProject
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_gcp_user_scripts(parent_type="string")
print(response)
[
{
"bash": "string",
"service_account_emails": []
}
]


Return a script for customer to run in their cloud environment to grant us access to their GCP environment as a downloadable attachment

Method GET
Route /cloud-connect-gcp/entities/user-scripts-download/v1
Scope D4C registration: READ
PEP 8 get_gcp_user_scripts_attachment_v2
parent_type query · string
GCP Hierarchy Parent Type, organization/folder/project
Available values (3)
FolderOrganizationProject
ids query · string or list of strings
Hierarchical Resource IDs of accounts
status query · string
Account status to filter results by.
Available values (2)
operationalprovisioned
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
with open("output_file", "wb") as save_file:
response = falcon.get_gcp_user_scripts_attachment_v2(ids=id_list,
parent_type="string",
status="string",
stream=boolean)
save_file.write(response)
[
{
"bash": "string",
"service_account_emails": []
}
]


Return information about Azure account registration

Method GET
Route /cloud-connect-azure/entities/account/v1
Scope D4C registration: READ
PEP 8 get_azure_account
ids query · string or list of strings
SubscriptionIDs of accounts to select for this status operation. If this is empty then all accounts are returned.
tenant_ids query · string or list of strings
Tenant ids to filter azure accounts
scan-type query · string
Type of scan, dry or full, to perform on selected accounts
status query · string
Account status to filter results by.
limit query · integer
The maximum records to return. Defaults to 100.
offset query · integer
The offset to start retrieving records from
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
scan_type body · string
Type of scan, dry or full, to perform on selected accounts.
from falconpy import D4CRegistration
falcon = D4CRegistration(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_azure_account(ids=id_list,
limit=integer,
offset=integer,
scan_type="string",
status="string",
tenant_ids=id_list)
print(response)
[
{
"CreatedAt": "string",
"DeletedAt": "string",
"ID": 0,
"UpdatedAt": "string",
"account_type": "string",
"azure_permissions_status": [],
"cid": "string",
"client_id": "string",
"cloud_scopes": [],
"conditions": [],
"credentials_end_date": "string",
"credentials_type": "string",
"default_subscription_id": "string",
"environment": "string",
"ioa_status": "string",
"iom_status": "string",
"is_cspm_lite": false,
"object_id": "string",
"parent_management_group_id": "string",
"parent_management_group_name": "string",
"primary_domain": "string",
"public_certificate": "string",
"public_certificate_raw": "string",
"role_assignments": [],
"show_modal": false,
"status": "string",
"subscription_id": "string",
"subscription_name": "string",
"tenant_id": "string",
"tenant_name": "string",
"years_valid": 0
}
]


Return available tenant ids for discover for cloud

Method GET
Route /cloud-connect-azure/entities/tenant-id/v1
Scope D4C registration: READ
PEP 8 get_azure_tenant_ids
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_azure_tenant_ids()
print(response)
[
{
"subscription_ids": [],
"tenant_id": "string"
}
]


Return a script for customer to run in their cloud environment to grant us access to their Azure environment

Method GET
Route /cloud-connect-azure/entities/user-scripts/v1
Scope D4C registration: READ
PEP 8 get_azure_user_scripts
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_azure_user_scripts()
print(response)
[
{
"bash": "string",
"service_account_public_keys": []
}
]


GetDiscoverCloudAzureUserScriptsAttachment

Section titled “GetDiscoverCloudAzureUserScriptsAttachment”

Return a script for customer to run in their cloud environment to grant us access to their Azure environment as a downloadable attachment

Method GET
Route /cloud-connect-azure/entities/user-scripts-download/v1
Scope D4C registration: READ
PEP 8 get_azure_user_scripts_attachment
tenant-id query · string or list of strings
Azure Tenant ID
subscription_ids query · string or list of strings
Azure Subscription ID
template query · string
Template to be rendered
azure_management_group query · boolean
Use Azure Management Group
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
tenant_id body · string
Azure tenant ID.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
with open("output_file", "wb") as save_file:
response = falcon.get_azure_user_scripts_attachment(azure_management_group=boolean,
subscription_ids=id_list,
template="string",
tenant_id="string",
stream=boolean)
save_file.write(response)
[
{
"bash": "string",
"service_account_public_keys": []
}
]


Returns static install scripts for Horizon.

Method GET
Route /settings-discover/entities/gen/scripts/v1
Scope D4C registration: READ
PEP 8 get_aws_horizon_scripts
single_account query · string
Get static script for single account
Available values (2)
falsetrue
organization-id query · string
AWS organization ID
delete query · string
Generate a delete script.
Available values (2)
falsetrue
account_type query · string
Account type (e.g.: commercial,gov) Only applicable when registering AWS commercial account in a Gov environment
Available values (2)
commercialgov
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
organization_id body · string
AWS organization ID.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_aws_horizon_scripts(account_type="string",
delete="string",
organization_id="string",
single_account="string")
print(response)
[
{}
]


Patches the service account key for external clients.

Method PATCH
Route /cloud-connect-gcp/entities/service-accounts/v1
Scope D4C registration: WRITE
PEP 8 update_gcp_service_account
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
List of GCP service accounts to validate. Overrides other keywords except for body.
client_email body · string
Client email associated with the service account.
client_id body · string
GCP Client ID.
private_key body · string
GCP private key.
private_key_id body · string
GCP private key ID.
project_id body · string
GCP project ID.
service_account_conditions body · list of dictionaries
GCP service account conditions.
service_account_id body · integer
GCP service account ID.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
service_account_conditions = [
{
"feature": "string",
"is_visible": "boolean",
"last_transition": "UTC date string",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
]
response = falcon.update_gcp_service_account(client_email="string",
client_id="string",
private_key="string",
private_key_id="string",
project_id="string",
resources="string",
service_account_conditions=service_account_conditions,
service_account_id=integer)
print(response)
[
{
"client_email": "string",
"client_id": "string",
"project_id": "string",
"service_account_conditions": [],
"service_account_id": 0
}
]


Update an Azure service account in our system by with the user-created client_id created with the public key we’ve provided

Method PATCH
Route /cloud-connect-azure/entities/client-id/v1
Scope D4C registration: WRITE
PEP 8 update_azure_account_client_id
id query · string
ClientID to use for the Service Principal associated with the customer’s Azure account
object_id query · string
Object ID to use for the Service Principal associated with the customer’s Azure account
tenant-id query · string
Tenant ID to update client ID for. Required if multiple tenants are registered.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
tenant_id body · string
Tenant ID to update client ID for. Required if multiple tenants are registered.
from falconpy import D4CRegistration
falcon = D4CRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_azure_account_client_id(id="string",
object_id="string",
tenant_id="string")
print(response)
[
{
"account_type": "string",
"behavior_assessment_override": false,
"cid": "string",
"client_id": "string",
"cloud_registration_enabled": false,
"conditions": [],
"cspm_enabled": false,
"default_subscription_id": "string",
"encrypted_private_key": "string",
"is_shared_client": false,
"object_id": "string",
"public_certificate": "string",
"resource_permissions": [],
"tenant_id": "string",
"x5t": "string"
}
]