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

Small naming issues in Cortex4py usage.md examples #16

Closed
simonspgn opened this issue Jun 3, 2019 · 0 comments
Closed

Small naming issues in Cortex4py usage.md examples #16

simonspgn opened this issue Jun 3, 2019 · 0 comments
Labels

Comments

@simonspgn
Copy link

simonspgn commented Jun 3, 2019

Just to note that I have noticed two small typing errors while going through Cortex4py documentation.

  1. In the example showing how to manipulate organizations as orgadmin change 'status','Active' to 'status','Ok':

From

users = api.organizations.get_users(org.id, Eq('status', 'Active'), range='0-5', sort='-createdAt')

To

users = api.organizations.get_users(org.id, Eq('status', 'Ok'), range='0-5', sort='-createdAt')

Otherwise active users won't be shown.

  1. In the example showing how to manipulate analyzers, to enable an analyzer change
    Change the "api_key" parameter in configuration to "key":

From

analyzer = api.analyzers.enable('Test_1_0', {
  "configuration": {
    "api_key": "XXXXXXXXXXXXXx",
    "proxy_http": "http://localhost:9999",
    "proxy_https": "http://localhost:9999",
    "auto_extract_artifacts": False,
    "check_tlp": True,
    "max_tlp": 2
  }

To

analyzer = api.analyzers.enable('Test_1_0', {
  "configuration": {
    "key": "XXXXXXXXXXXXXx",
    "proxy_http": "http://localhost:9999",
    "proxy_https": "http://localhost:9999",
    "auto_extract_artifacts": False,
    "check_tlp": True,
    "max_tlp": 2
  }

Otherwise "Invalid input Excetion" will be returned.

Nothing big at all, just small little typing errors which might not necessarily be easy to notice for everyone as they took me quite some time to figure out! Hope this helps :)

@simonspgn simonspgn changed the title Small naming issues in Cortex4py usade.md examples Small naming issues in Cortex4py usage.md examples Jun 3, 2019
nadouani added a commit that referenced this issue Jun 23, 2021
@nadouani nadouani added the docs label Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants