libtaxii.constants
Module
Version: 1.1.119
Constants¶
Version IDs¶
The following constants can be used as TAXII Version IDs
- libtaxii.constants.VID_TAXII_SERVICES_10 = 'urn:taxii.mitre.org:services:1.0'¶
Version ID for the TAXII Services Specification 1.0
- libtaxii.constants.VID_TAXII_SERVICES_11 = 'urn:taxii.mitre.org:services:1.1'¶
Version ID for the TAXII Services Specification 1.1
- libtaxii.constants.VID_TAXII_XML_10 = 'urn:taxii.mitre.org:message:xml:1.0'¶
Version ID for the TAXII XML Message Binding Specification 1.0
- libtaxii.constants.VID_TAXII_XML_11 = 'urn:taxii.mitre.org:message:xml:1.1'¶
Version ID for the TAXII XML Message Binding Specification 1.1
- libtaxii.constants.VID_TAXII_HTTP_10 = 'urn:taxii.mitre.org:protocol:http:1.0'¶
Version ID for the TAXII HTTP Protocol Binding Specification 1.0
- libtaxii.constants.VID_TAXII_HTTPS_10 = 'urn:taxii.mitre.org:protocol:https:1.0'¶
Version ID for the TAXII HTTPS Protocol Binding Specification 1.0
The following are third-party Version IDs included in libtaxii for convenience.
- libtaxii.constants.VID_CERT_EU_JSON_10 = 'urn:cert.europa.eu:message:json:1.0'¶
Version ID for the CERT EU JSON Message Binding
Content Binding IDs¶
The following constants should be used as the Content Binding ID for STIX XML.
- libtaxii.constants.CB_STIX_XML_10 = 'urn:stix.mitre.org:xml:1.0'¶
Content Binding ID for STIX XML 1.0
- libtaxii.constants.CB_STIX_XML_101 = 'urn:stix.mitre.org:xml:1.0.1'¶
Content Binding ID for STIX XML 1.0.1
- libtaxii.constants.CB_STIX_XML_11 = 'urn:stix.mitre.org:xml:1.1'¶
Content Binding ID for STIX XML 1.1
- libtaxii.constants.CB_STIX_XML_111 = 'urn:stix.mitre.org:xml:1.1.1'¶
Content Binding ID for STIX XML 1.1.1
- libtaxii.constants.CB_STIX_XML_12 = 'urn:stix.mitre.org:xml:1.2'¶
Content Binding ID for STIX XML 1.2
These other Content Binding IDs are included for convenience as well.
- libtaxii.constants.CB_CAP_11 = 'urn:oasis:names:tc:emergency:cap:1.1'¶
Content Binding ID for CAP 1.1
- libtaxii.constants.CB_XENC_122002 = 'http://www.w3.org/2001/04/xmlenc#'¶
Content Binding ID for XML Encryption
- libtaxii.constants.CB_SMIME = 'application/x-pkcs7-mime'¶
Content Binding ID for SMIME
Namespace Map¶
This constant contains commonly namespaces and aliases in TAXII.
- libtaxii.constants.NS_MAP = {'taxii': 'http://taxii.mitre.org/messages/taxii_xml_binding-1', 'taxii_11': 'http://taxii.mitre.org/messages/taxii_xml_binding-1.1', 'tdq': 'http://taxii.mitre.org/query/taxii_default_query-1'}¶
Namespace map of namespaces libtaxii knows about
Message Types¶
- libtaxii.constants.MSG_STATUS_MESSAGE = 'Status_Message'¶
Constant identifying a Status Message
- libtaxii.constants.MSG_DISCOVERY_REQUEST = 'Discovery_Request'¶
Constant identifying a Discovery Request Message
- libtaxii.constants.MSG_DISCOVERY_RESPONSE = 'Discovery_Response'¶
Constant identifying a Discovery Response Message
- libtaxii.constants.MSG_FEED_INFORMATION_REQUEST = 'Feed_Information_Request'¶
Constant identifying a Feed Information Request Message
- libtaxii.constants.MSG_FEED_INFORMATION_RESPONSE = 'Feed_Information_Response'¶
Constant identifying a Feed Information Response Message
- libtaxii.constants.MSG_MANAGE_FEED_SUBSCRIPTION_REQUEST = 'Subscription_Management_Request'¶
Constant identifying a Subscription Management Request Message
- libtaxii.constants.MSG_MANAGE_FEED_SUBSCRIPTION_RESPONSE = 'Subscription_Management_Response'¶
Constant identifying a Subscription Management Response Message
- libtaxii.constants.MSG_POLL_REQUEST = 'Poll_Request'¶
Constant identifying a Poll Request Message
- libtaxii.constants.MSG_POLL_RESPONSE = 'Poll_Response'¶
Constant identifying a Poll Response Message
- libtaxii.constants.MSG_INBOX_MESSAGE = 'Inbox_Message'¶
Constant identifying a Inbox Message
- libtaxii.constants.MSG_TYPES_10 = ('Status_Message', 'Discovery_Request', 'Discovery_Response', 'Feed_Information_Request', 'Feed_Information_Response', 'Subscription_Management_Request', 'Subscription_Management_Response', 'Poll_Request', 'Poll_Response', 'Inbox_Message')¶
TAXII 1.0 Message Types
- libtaxii.constants.MSG_POLL_FULFILLMENT_REQUEST = 'Poll_Fulfillment'¶
Constant identifying a Status Message
- libtaxii.constants.MSG_COLLECTION_INFORMATION_REQUEST = 'Collection_Information_Request'¶
Constant identifying a Collection Information Request
- libtaxii.constants.MSG_COLLECTION_INFORMATION_RESPONSE = 'Collection_Information_Response'¶
Constant identifying a Collection Information Response
- libtaxii.constants.MSG_MANAGE_COLLECTION_SUBSCRIPTION_REQUEST = 'Subscription_Management_Request'¶
Constant identifying a Subscription Request
- libtaxii.constants.MSG_MANAGE_COLLECTION_SUBSCRIPTION_RESPONSE = 'Subscription_Management_Response'¶
Constant identifying a Subscription Response
- libtaxii.constants.MSG_TYPES_11 = ('Status_Message', 'Discovery_Request', 'Discovery_Response', 'Collection_Information_Request', 'Collection_Information_Response', 'Subscription_Management_Request', 'Subscription_Management_Response', 'Poll_Request', 'Poll_Response', 'Inbox_Message', 'Poll_Fulfillment')¶
Tuple of all TAXII 1.1 Message Types
Status Types¶
These constants are used in StatusMessage
.
- libtaxii.constants.ST_BAD_MESSAGE = 'BAD_MESSAGE'¶
Constant identifying a Status Type of Bad Message
- libtaxii.constants.ST_DENIED = 'DENIED'¶
Constant identifying a Status Type of Denied
- libtaxii.constants.ST_FAILURE = 'FAILURE'¶
Constant identifying a Status Type of Failure
- libtaxii.constants.ST_NOT_FOUND = 'NOT_FOUND'¶
Constant identifying a Status Type of Not Found
- libtaxii.constants.ST_POLLING_UNSUPPORTED = 'POLLING_UNSUPPORTED'¶
Constant identifying a Status Type of Polling Unsupported
- libtaxii.constants.ST_RETRY = 'RETRY'¶
Constant identifying a Status Type of Retry
- libtaxii.constants.ST_SUCCESS = 'SUCCESS'¶
Constant identifying a Status Type of Success
- libtaxii.constants.ST_UNAUTHORIZED = 'UNAUTHORIZED'¶
Constant identifying a Status Type of Unauthorized
- libtaxii.constants.ST_UNSUPPORTED_MESSAGE_BINDING = 'UNSUPPORTED_MESSAGE'¶
Constant identifying a Status Type of Unsupported Message Binding
- libtaxii.constants.ST_UNSUPPORTED_CONTENT_BINDING = 'UNSUPPORTED_CONTENT'¶
Constant identifying a Status Type of Unsupported Content Binding
- libtaxii.constants.ST_UNSUPPORTED_PROTOCOL = 'UNSUPPORTED_PROTOCOL'¶
Constant identifying a Status Type of Unsupported Protocol Binding
- libtaxii.constants.ST_TYPES_10 = ('BAD_MESSAGE', 'DENIED', 'FAILURE', 'NOT_FOUND', 'POLLING_UNSUPPORTED', 'RETRY', 'SUCCESS', 'UNAUTHORIZED', 'UNSUPPORTED_MESSAGE', 'UNSUPPORTED_CONTENT', 'UNSUPPORTED_PROTOCOL')¶
Tuple of all TAXII 1.0 Status Types
- libtaxii.constants.ST_ASYNCHRONOUS_POLL_ERROR = 'ASYNCHRONOUS_POLL_ERROR'¶
Constant identifying a Status Type of Asynchronous Poll Error
- libtaxii.constants.ST_DESTINATION_COLLECTION_ERROR = 'DESTINATION_COLLECTION_ERROR'¶
Constant identifying a Status Type of Destination Collection Error
- libtaxii.constants.ST_INVALID_RESPONSE_PART = 'INVALID_RESPONSE_PART'¶
Constant identifying a Status Type of Invalid Response Part
- libtaxii.constants.ST_NETWORK_ERROR = 'NETWORK_ERROR'¶
Constant identifying a Status Type of Network Error
- libtaxii.constants.ST_PENDING = 'PENDING'¶
Constant identifying a Status Type of Pending
- libtaxii.constants.ST_UNSUPPORTED_QUERY = 'UNSUPPORTED_QUERY'¶
Constant identifying a Status Type of Unsupported Query Format
- libtaxii.constants.ST_TYPES_11 = ('ASYNCHRONOUS_POLL_ERROR', 'BAD_MESSAGE', 'DENIED', 'DESTINATION_COLLECTION_ERROR', 'FAILURE', 'INVALID_RESPONSE_PART', 'NETWORK_ERROR', 'NOT_FOUND', 'PENDING', 'POLLING_UNSUPPORTED', 'RETRY', 'SUCCESS', 'UNAUTHORIZED', 'UNSUPPORTED_MESSAGE', 'UNSUPPORTED_CONTENT', 'UNSUPPORTED_PROTOCOL', 'UNSUPPORTED_QUERY')¶
Tuple of all TAXII 1.1 Status types
Subscription Actions¶
These constants are used in ManageFeedSubscriptionRequest
- libtaxii.constants.ACT_SUBSCRIBE = 'SUBSCRIBE'¶
Constant identifying an Action of Subscribe
- libtaxii.constants.ACT_UNSUBSCRIBE = 'UNSUBSCRIBE'¶
Constant identifying an Action of Unsubscribe
- libtaxii.constants.ACT_STATUS = 'STATUS'¶
Constant identifying an Action of Status
- libtaxii.constants.ACT_TYPES_10 = ('SUBSCRIBE', 'UNSUBSCRIBE', 'STATUS')¶
Tuple of all TAXII 1.0 Action Types
- libtaxii.constants.ACT_PAUSE = 'PAUSE'¶
Constant identifying an Action of Pause
- libtaxii.constants.ACT_RESUME = 'RESUME'¶
Constant identifying an Action of Resume
- libtaxii.constants.ACT_TYPES_11 = ('SUBSCRIBE', 'PAUSE', 'RESUME', 'UNSUBSCRIBE', 'STATUS')¶
Tuple of all TAXII 1.1 Action types
Service Types¶
These constants are used to indicate the type of service.
- libtaxii.constants.SVC_INBOX = 'INBOX'¶
Constant identifying a Service Type of Inbox
- libtaxii.constants.SVC_POLL = 'POLL'¶
Constant identifying a Service Type of Poll
- libtaxii.constants.SVC_FEED_MANAGEMENT = 'FEED_MANAGEMENT'¶
Constant identifying a Service Type of Feed Management
- libtaxii.constants.SVC_DISCOVERY = 'DISCOVERY'¶
Constant identifying a Service Type of Discovery
- libtaxii.constants.SVC_TYPES_10 = ('INBOX', 'POLL', 'FEED_MANAGEMENT', 'DISCOVERY')¶
Tuple of all TAXII 1.0 Service Types
- libtaxii.constants.SVC_COLLECTION_MANAGEMENT = 'COLLECTION_MANAGEMENT'¶
Constant identifying a Service Type of Collection Management. “Feed Management” was renamed to “Collection Management” in TAXII 1.1.
- libtaxii.constants.SVC_TYPES_11 = ('INBOX', 'POLL', 'COLLECTION_MANAGEMENT', 'DISCOVERY')¶
Tuple of all TAXII 1.1 Service Types
Subscription Statuses¶
These constants are used in ManageCollectionSubscriptionResponse
- libtaxii.constants.SS_ACTIVE = 'ACTIVE'¶
Subscription Status of Active
- libtaxii.constants.SS_PAUSED = 'PAUSED'¶
Subscription Status of Paused
- libtaxii.constants.SS_UNSUBSCRIBED = 'UNSUBSCRIBED'¶
Subscription Status of Unsubscribed
- libtaxii.constants.SS_TYPES_11 = ('ACTIVE', 'PAUSED', 'UNSUBSCRIBED')¶
Tuple of all TAXII 1.1 Subscription Statues
Response Types¶
These constants are used to indicate the type of response returned.
- libtaxii.constants.RT_FULL = 'FULL'¶
Constant identifying a response type of Full
- libtaxii.constants.RT_COUNT_ONLY = 'COUNT_ONLY'¶
Constant identifying a response type of Count only
- libtaxii.constants.RT_TYPES_11 = ('FULL', 'COUNT_ONLY')¶
Tuple of all TAXII 1.1 Response Types
Collection Types¶
These constants are used to indicate the type of collection.
- libtaxii.constants.CT_DATA_FEED = 'DATA_FEED'¶
Constant identifying a collection type of Data Feed
- libtaxii.constants.CT_DATA_SET = 'DATA_SET'¶
Constant identifying a collection type of Data Set
- libtaxii.constants.CT_TYPES_11 = ('DATA_FEED', 'DATA_SET')¶
Tuple of all TAXII 1.1 Collection Types
Status Details¶
These constants are used in StatusMessage
.
- libtaxii.constants.SD_ACCEPTABLE_DESTINATION = 'ACCEPTABLE_DESTINATION'¶
Constant Identifying the Acceptable Destination Status Detail
- libtaxii.constants.SD_MAX_PART_NUMBER = 'MAX_PART_NUMBER'¶
Constant Identifying the Max Part Number Status Detail
- libtaxii.constants.SD_ITEM = 'ITEM'¶
Constant Identifying the Item Status Detail
- libtaxii.constants.SD_ESTIMATED_WAIT = 'ESTIMATED_WAIT'¶
Constant Identifying the Estimated Wait Status Detail
- libtaxii.constants.SD_RESULT_ID = 'RESULT_ID'¶
Constant Identifying the Result ID Status Detail
- libtaxii.constants.SD_WILL_PUSH = 'WILL_PUSH'¶
Constant Identifying the Will Push Status Detail
- libtaxii.constants.SD_SUPPORTED_BINDING = 'SUPPORTED_BINDING'¶
Constant Identifying the Supported Binding Status Detail
- libtaxii.constants.SD_SUPPORTED_CONTENT = 'SUPPORTED_CONTENT'¶
Constant Identifying the Supported Content Status Detail
- libtaxii.constants.SD_SUPPORTED_PROTOCOL = 'SUPPORTED_PROTOCOL'¶
Constant Identifying the Supported Protocol Status Detail
- libtaxii.constants.SD_SUPPORTED_QUERY = 'SUPPORTED_QUERY'¶
Constant Identifying the Supported Query Status Detail
- libtaxii.constants.SD_TYPES_11 = ('ACCEPTABLE_DESTINATION', 'MAX_PART_NUMBER', 'ITEM', 'ESTIMATED_WAIT', 'RESULT_ID', 'WILL_PUSH', 'SUPPORTED_BINDING', 'SUPPORTED_CONTENT', 'SUPPORTED_PROTOCOL', 'SUPPORTED_QUERY')¶
Tuple of all TAXII 1.1 Status Detail Keys
- libtaxii.constants.SD_CAPABILITY_MODULE = 'CAPABILITY_MODULE'¶
(For TAXII Default Query) Constant identifying supported Capability Modules
- libtaxii.constants.SD_PREFERRED_SCOPE = 'PREFERRED_SCOPE'¶
(For TAXII Default Query) Constant identifying Preferred Scopes
- libtaxii.constants.SD_ALLOWED_SCOPE = 'ALLOWED_SCOPE'¶
(For TAXII Default Query) Constant identifying Allowed Scopes
- libtaxii.constants.SD_TARGETING_EXPRESSION_ID = 'TARGETING_EXPRESSION_ID'¶
(For TAXII Default Query) Constant identifying supported Targeting Expression IDs
Query Formats¶
These constants are used to indicate query format.
..autodata:: FID_TAXII_DEFAULT_QUERY_10
Query Capability Modules¶
These constants are used to indicate TAXII Default Query Capability Modules
- libtaxii.constants.CM_CORE = 'urn:taxii.mitre.org:query:capability:core-1'¶
Capability Module ID for Core
- libtaxii.constants.CM_REGEX = 'urn:taxii.mitre.org:query:capability:regex-1'¶
Capability Module ID for Regex
- libtaxii.constants.CM_TIMESTAMP = 'urn:taxii.mitre.org:query:capability:timestamp-1'¶
Capability Module ID for Timestamp
- libtaxii.constants.CM_IDS = ('urn:taxii.mitre.org:query:capability:core-1', 'urn:taxii.mitre.org:query:capability:regex-1', 'urn:taxii.mitre.org:query:capability:timestamp-1')¶
Tuple of all capability modules defined in TAXII Default Query 1.0
Query Operators¶
These constants are used to identify the operator in :py:class`Criteria`
- libtaxii.constants.OP_OR = 'OR'¶
Operator OR
- libtaxii.constants.OP_AND = 'AND'¶
Operator AND
- libtaxii.constants.OP_TYPES = ('OR', 'AND')¶
Tuple of all operators
Query Status Types¶
TAXII Default Query 1.0 identifies three additional Status Types:
- libtaxii.constants.ST_UNSUPPORTED_CAPABILITY_MODULE = 'UNSUPPORTED_CAPABILITY_MODULE'¶
Status Type indicating an unsupported capability module
- libtaxii.constants.ST_UNSUPPORTED_TARGETING_EXPRESSION = 'UNSUPPORTED_TARGETING_EXPRESSION'¶
Status Type indicating an unsupported targeting expression
- libtaxii.constants.ST_UNSUPPORTED_TARGETING_EXPRESSION_ID = 'UNSUPPORTED_TARGETING_EXPRESSION_ID'¶
Status Type indicating an unsupported targeting expression id
Query Parameters¶
These constants are used to identify parameters.
- libtaxii.constants.P_VALUE = 'value'¶
value
- Type:
Parameter name
- libtaxii.constants.P_MATCH_TYPE = 'match_type'¶
match_type
- Type:
Parameter name
- libtaxii.constants.P_CASE_SENSITIVE = 'case_sensitive'¶
case_sensitive
- Type:
Parameter name
- libtaxii.constants.P_NAMES = ('value', 'match_type', 'case_sensitive')¶
Tuple of all parameter names
Query Relationships¶
These constants are used to identify relationships
- libtaxii.constants.R_EQUALS = 'equals'¶
equals
- Type:
Relationship name
- libtaxii.constants.R_NOT_EQUALS = 'not_equals'¶
not_requals
- Type:
Relationship name
- libtaxii.constants.R_GREATER_THAN = 'greater_than'¶
greater_than
- Type:
Relationship name
- libtaxii.constants.R_GREATER_THAN_OR_EQUAL = 'greater_than_or_equal'¶
greater_than_or_equal
- Type:
Relationship name
- libtaxii.constants.R_LESS_THAN = 'less_than'¶
less_than
- Type:
Relationship name
- libtaxii.constants.R_LESS_THAN_OR_EQUAL = 'less_than_or_equal'¶
less_than_or_equal
- Type:
Relationship name
- libtaxii.constants.R_DOES_NOT_EXIST = 'does_not_exist'¶
does_not_exist
- Type:
Relationship name
- libtaxii.constants.R_EXISTS = 'exists'¶
exists
- Type:
Relationship name
- libtaxii.constants.R_BEGINS_WITH = 'begins_with'¶
begins_with
- Type:
Relationship name
- libtaxii.constants.R_ENDS_WITH = 'ends_with'¶
ends_with
- Type:
Relationship name
- libtaxii.constants.R_CONTAINS = 'contains'¶
contains
- Type:
Relationship name
- libtaxii.constants.R_MATCHES = 'matches'¶
matches
- Type:
Relationship name
- libtaxii.constants.R_NAMES = ('equals', 'not_equals', 'greater_than', 'greater_than_or_equal', 'less_than', 'less_than_or_equal', 'does_not_exist', 'exists', 'begins_with', 'ends_with', 'contains', 'matches')¶
Tuple of all relationship names