forked from splunk-soar-connectors/archer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharcher_consts.py
More file actions
48 lines (43 loc) · 2.75 KB
/
archer_consts.py
File metadata and controls
48 lines (43 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File: archer_consts.py
#
# Copyright (c) 2016-2022 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
ARCHER_ACTION_CREATE_TICKET = "create_ticket"
ARCHER_ACTION_UPDATE_TICKET = "update_ticket"
ARCHER_ACTION_GET_TICKET = "get_ticket"
ARCHER_ACTION_LIST_TICKET = "list_tickets"
ARCHER_ACTION_ON_POLL = "on_poll"
ARCHER_SUCC_CONFIGURATION = "Archer configuration test SUCCESS"
ARCHER_SORT_TYPE_ASCENDING = "Ascending"
ARCHER_SORT_TYPE_DESCENDING = "Descending"
ARCHER_LAST_RECORD_FILE = "last_record_{}.txt"
ARCHER_ERR_PYTHON_MAJOR_VERSION = "Error occurred while getting the Phantom server's Python major version"
ARCHER_ERR_CODE_UNAVAILABLE = "Error code unavailable"
ARCHER_ERR_CHECK_ASSET_CONFIG = "Error message unavailable. Please check the asset configuration and|or action parameters"
ARCHER_UNICODE_DAMMIT_TYPE_ERR_MESSAGE = "Error occurred while connecting to the Archer Server. " \
"Please check the asset configuration and|or the action parameters"
ARCHER_ERR_CEF_MAPPING_REQUIRED = "CEF Mapping is required for ingestion. Please add CEF mapping to the asset config"
ARCHER_ERR_APPLICATION_NOT_PROVIDED = 'Application is not provided in CEF Mapping (use key: "application")'
ARCHER_ERR_TRACKING_ID_NOT_PROVIDED = 'Tracking ID Field name not provided in CEF Mapping (use key: "tracking")'
ARCHER_ERR_VALID_JSON = "JSON field does not contain a valid JSON value"
ARCHER_ERR_MESSAGE = "Error Message: {0}"
ARCHER_ERR_CODE_MESSAGE = "Error Code: {0}, Error Message: {1}"
ARCHER_ERR_RECORD_NOT_FOUND = "Record Name not found"
ARCHER_ERR_NON_DICT = "Non-dict map: {}"
ARCHER_ERR_ACTION_EXECUTION = "Exception during execution of archer action: {} and the error is: {}"
ARCHER_ERR_VALID_INTEGER = "Please provide a valid integer value in the {}"
ARCHER_ERR_NON_NEGATIVE = "Please provide a valid non-negative integer value in the {}"
ARCHER_XPATH_AUTH = '/soap:Envelope/soap:Body/dummy:CreateUserSessionFromInstanceResponse/dummy:CreateUserSessionFromInstanceResult'
ARCHER_XPATH_DOMAIN_USER_AUTH = \
'/soap:Envelope/soap:Body/dummy:CreateDomainUserSessionFromInstanceResponse/dummy:CreateDomainUserSessionFromInstanceResult'
ARCHER_XPATH_GROUP = '/soap:Envelope/soap:Body/dummy:LookupGroupResponse/dummy:LookupGroupResult/dummy:Groups/dummy:/Group/dummy:Name'