Mobile Enrollment - CrowdStrike/falconpy GitHub Wiki
| Operation ID | Description | ||||
|---|---|---|---|---|---|
|
Gets the registry credentials | ||||
|
Gets the registry credentials | ||||
WARNING
client_idandclient_secretare 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.
Trigger on-boarding process for a mobile device.
device_enroll
| Method | Route |
|---|---|
/enrollments/entities/details/v3 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| action_name |
|
|
query | string | Action to perform. Allowed values: enroll, re-enroll. |
| body |
|
|
body | dictionary | Full body payload as a dictionary, not required when using other keywords. |
| email_addresses |
|
|
body | string or list of strings | User IDs to apply actions to. Supports comma-delimited strings. Must be provided as a keyword or as part of the body payload. |
| expires_at |
|
|
body | string | Expiration date for the enrollment. UTC date format. |
| filter |
|
|
query | string | FQL formatted filter. |
| parameters |
|
|
query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import MobileEnrollment
# Do not hardcode API credentials!
falcon = MobileEnrollment(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
emails = "[email protected],[email protected]"
response = falcon.device_enroll(action_name="string",
email_addresses=emails,
expires_at="string",
filter="string"
)
print(response)from falconpy import MobileEnrollment
# Do not hardcode API credentials!
falcon = MobileEnrollment(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
emails = "[email protected],[email protected]"
response = falcon.RequestDeviceEnrollmentV3(action_name="string",
email_addresses=emails,
expires_at="string",
filter="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
emails = ["[email protected]", "[email protected]"]
body_payload = {
"email_address": emails,
"expires_at": "string"
}
response = falcon.command("RequestDeviceEnrollmentV3",
action_name="string",
filter="string",
body=body_payload
)
print(response)Trigger on-boarding process for a mobile device.
device_enroll_v4
| Method | Route |
|---|---|
/enrollments/entities/details/v3 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| action_name |
|
|
query | string | Action to perform. Allowed values: enroll, re-enroll. |
| body |
|
|
body | dictionary | Full body payload as a dictionary, not required when using other keywords. |
| email_addresses |
|
|
body | string or list of strings | User IDs to apply actions to. Supports comma-delimited strings. Must be provided as a keyword or as part of the body payload. |
| enrollment_type |
|
|
body | string | Type of mobile enrollment. |
| expires_at |
|
|
body | string | Expiration date for the enrollment. UTC date format. |
| filter |
|
|
query | string | FQL formatted filter. |
| parameters |
|
|
query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import MobileEnrollment
# Do not hardcode API credentials!
falcon = MobileEnrollment(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
emails = "[email protected],[email protected]"
response = falcon.device_enroll(action_name="string",
email_addresses=emails,
enrollment_type="string",
expires_at="string",
filter="string"
)
print(response)from falconpy import MobileEnrollment
# Do not hardcode API credentials!
falcon = MobileEnrollment(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
emails = "[email protected],[email protected]"
response = falcon.RequestDeviceEnrollmentV3(action_name="string",
email_addresses=emails,
enrollment_type="string",
expires_at="string",
filter="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
emails = ["[email protected]", "[email protected]"]
body_payload = {
"email_address": emails,
"enrollment_type": "string"
"expires_at": "string"
}
response = falcon.command("RequestDeviceEnrollmentV3",
action_name="string",
filter="string",
body=body_payload
)
print(response)
