Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileVantage's createScheduledExclusions missing Keyword Argumment for timezone #1231

Open
crowdstrikedcs opened this issue Sep 23, 2024 Discussed in #1229 · 0 comments
Open
Labels
API usage General API usage issues and questions FileVantage FileVantage issues or questions

Comments

@crowdstrikedcs
Copy link
Member

Discussed in https://github.com/CrowdStrike/falconpy/discussions/1229\

Confirmed with debug logging that timezone is not being sent in request body. Using body_payload adressed the issue.

Originally posted by security-roberts September 16, 2024
I'm using https://www.falconpy.io/Service-Collections/FileVantage.html#createscheduledexclusions, but I keep getting: "field 'timezone' must be provided and be a valid timezone name. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones". I've tried pretty much every variation I can imagine to try and specify my timezone, and it's just not accepting it. What is the actual "valid timezone name" format I need for this? Thanks!

  • Also, I tried using #getScheduledExclusions to see if the timezone was some unique format, but it's just (in this case) Etc/UTC. I tried that exact string, and it still throws the same error.
  • Also, also, yes, I tried it without the 'timezone' field first, because it wasn't listed in the falconpy.io page. The query errored saying the field was required, and that has lead me to this issue.

Test code that's not working:

response = falcon.createScheduledExclusions(policy_id="Test123",
name="Test1",
users="Test*",
processes="**\Test.exe",
schedule_start="2024-09-17T13:00:00-07:00",
schedule_end="2024-09-17T14:00:00-07:00",
timezone="Etc/UTC"
)
```</div>
@crowdstrikedcs crowdstrikedcs added API usage General API usage issues and questions FileVantage FileVantage issues or questions labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API usage General API usage issues and questions FileVantage FileVantage issues or questions
Projects
None yet
Development

No branches or pull requests

1 participant