Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ImportFrom alias Assign NameStore ListLoad AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Assign NameStore DictComp NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryExcept body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If BoolOpOr NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str NameLoad If BoolOpAnd NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Str Raise NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore BinOpAdd NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad keyword NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Expr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Num handlers ExceptHandler type NameLoad name NameStore body If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Num ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad NameLoad Str Num Expr Call NameLoad BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad BinOpMod Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call NameLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareLt BinOpSub NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd CompareNotEq NameLoad NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Dict attr NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore CompareIn Str NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults SubscriptLoad AttributeLoad NameLoad attr Slice Num body Expr Call NameLoad NameLoad Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A N/A 
Command-line interface to StackStorm.
 __future__ print_function __future__ absolute_import N/A os N/A sys N/A json N/A time N/A argparse N/A calendar N/A logging N/A traceback N/A six N/A requests st2client __version__ st2client models st2client.client Client st2client.commands auth st2client.commands action st2client.commands action_alias st2client.commands keyvalue st2client.commands policy st2client.commands resource st2client.commands sensor st2client.commands trace st2client.commands trigger st2client.commands triggerinstance st2client.commands webhook st2client.commands rule st2client.commands rule_enforcement st2client.config_parser CLIConfigParser st2client.config_parser ST2_CONFIG_DIRECTORY st2client.config_parser ST2_CONFIG_PATH st2client.config set_config st2client.config get_config st2client.exceptions.operations OperationFailureException st2client.utils.date parse parse_isotime st2client.utils.misc merge_dicts st2client.utils.logging LogLevelFilter set_log_level_for_all_loggers N/A __all__ N/A Shell N/A LOG N/A N/A logging getLogger __name__ N/A CLI_DESCRIPTION CLI for StackStorm event-driven automation platform. https://stackstorm.com N/A TOKEN_EXPIRATION_GRACE_PERIOD_SECONDS 15 N/A CONFIG_OPTION_TO_CLIENT_KWARGS_MAP N/A base_url auth_url api_url api_version cacert debug N/A general base_url N/A auth url N/A api url N/A general api_version N/A general cacert N/A cli debug st2client.commands.auth TokenCreateCommand N/A SKIP_AUTH_CLASSES N/A N/A TokenCreateCommand __name__ Shell N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self client None N/A N/A self parser N/A N/A argparse ArgumentParser description CLI_DESCRIPTION N/A N/A N/A N/A self parser add_argument --version action version version N/A N/A %(prog)s {version} format version __version__ N/A N/A N/A N/A self parser add_argument --url action store dest base_url default None help Base URL for the API servers. Assumes all servers use the same base URL and default ports are used. Get ST2_BASE_URLfrom the environment variables by default. N/A N/A N/A N/A self parser add_argument --auth-url action store dest auth_url default None help URL for the authentication service. Get ST2_AUTH_URLfrom the environment variables by default. N/A N/A N/A N/A self parser add_argument --api-url action store dest api_url default None help URL for the API server. Get ST2_API_URLfrom the environment variables by default. N/A N/A N/A N/A self parser add_argument --api-version action store dest api_version default None help API version to use. Get ST2_API_VERSIONfrom the environment variables by default. N/A N/A N/A N/A self parser add_argument --cacert action store dest cacert default None help Path to the CA cert bundle for the SSL endpoints. Get ST2_CACERT from the environment variables by default. If this is not provided, then SSL cert will not be verified. N/A N/A N/A N/A self parser add_argument --config-file action store dest config_file default None help Path to the CLI config file N/A N/A N/A N/A self parser add_argument --print-config action store_true dest print_config default False help Parse the config file and print the values N/A N/A N/A N/A self parser add_argument --skip-config action store_true dest skip_config default False help Don't parse and use the CLI config file N/A N/A N/A N/A self parser add_argument --debug action store_true dest debug default False help Enable debug mode N/A N/A self subparsers N/A N/A N/A self parser add_subparsers N/A N/A self commands N/A dict N/A N/A N/A self commands N/A action N/A N/A action ActionBranch An activity that happens as a response to the external event. self N/A self subparsers N/A N/A N/A self commands N/A action-alias N/A N/A action_alias ActionAliasBranch Action aliases. self N/A self subparsers N/A N/A N/A self commands N/A auth N/A N/A auth TokenCreateCommand N/A models Token self N/A self subparsers name auth N/A N/A N/A self commands N/A api-key N/A N/A auth ApiKeyBranch API Keys. self N/A self subparsers N/A N/A N/A self commands N/A execution N/A N/A action ActionExecutionBranch An invocation of an action. self N/A self subparsers N/A N/A N/A self commands N/A key N/A N/A keyvalue KeyValuePairBranch Key value pair is used to store commonly used configuration for reuse in sensors, actions, and rules. self N/A self subparsers N/A N/A N/A self commands N/A policy N/A N/A policy PolicyBranch Policy that is enforced on a resource. self N/A self subparsers N/A N/A N/A self commands N/A policy-type N/A N/A policy PolicyTypeBranch Type of policy that can be applied to resources. self N/A self subparsers N/A N/A N/A self commands N/A rule N/A N/A rule RuleBranch A specification to invoke an "action" on a "trigger" selectively based on some criteria. self N/A self subparsers N/A N/A N/A self commands N/A run N/A N/A action ActionRunCommand N/A models Action self N/A self subparsers name run add_help False N/A N/A N/A self commands N/A runner N/A N/A resource ResourceBranch N/A models RunnerType Runner is a type of handler for a specific class of actions. self N/A self subparsers read_only True N/A N/A N/A self commands N/A sensor N/A N/A sensor SensorBranch An adapter which allows you to integrate StackStorm with external system  self N/A self subparsers N/A N/A N/A self commands N/A trace N/A N/A trace TraceBranch A group of executions, rules and triggerinstances that are related. self N/A self subparsers N/A N/A N/A self commands N/A trigger N/A N/A trigger TriggerTypeBranch An external event that is mapped to a st2 input. It is the st2 invocation point. self N/A self subparsers N/A N/A N/A self commands N/A trigger-instance N/A N/A triggerinstance TriggerInstanceBranch Actual instances of triggers received by st2. self N/A self subparsers N/A N/A N/A self commands N/A webhook N/A N/A webhook WebhookBranch Webhooks. self N/A self subparsers N/A N/A N/A self commands N/A rule-enforcement N/A N/A rule_enforcement RuleEnforcementBranch Models that represent enforcement of rules. self N/A self subparsers N/A get_client N/A N/A self args debug N/A False N/A N/A ST2_CLI_SKIP_CONFIG N/A N/A N/A os environ get ST2_CLI_SKIP_CONFIG 0 N/A ST2_CLI_SKIP_CONFIG N/A int ST2_CLI_SKIP_CONFIG N/A skip_config N/A args skip_config N/A skip_config N/A skip_config ST2_CLI_SKIP_CONFIG N/A cli_options N/A base_url auth_url api_url api_version cacert N/A cli_options N/A opt N/A getattr args opt N/A opt cli_options N/A config_file_options N/A N/A self _get_config_file_options args args N/A kwargs N/A N/A N/A skip_config N/A N/A kwargs N/A merge_dicts kwargs config_file_options N/A kwargs N/A merge_dicts kwargs cli_options N/A N/A kwargs N/A debug debug N/A client N/A Client kwargs N/A skip_config N/A N/A N/A N/A LOG info Skipping parsing CLI config N/A client N/A rc_config N/A get_config N/A silence_ssl_warnings N/A N/A N/A N/A rc_config get general N/A get silence_ssl_warnings False N/A silence_ssl_warnings N/A N/A N/A N/A N/A N/A requests packages urllib3 disable_warnings N/A N/A N/A command_class_name N/A N/A N/A args func im_class __name__ N/A N/A N/A Exception N/A N/A command_class_name None N/A N/A command_class_name SKIP_AUTH_CLASSES N/A N/A client N/A env_var_token N/A N/A N/A os environ get ST2_AUTH_TOKEN None N/A cli_argument_token N/A getattr args token None N/A N/A env_var_token cli_argument_token N/A N/A client N/A credentials N/A N/A rc_config get credentials N/A N/A username N/A N/A credentials get username None N/A password N/A N/A credentials get password None N/A cache_token N/A N/A N/A N/A rc_config get cli N/A get cache_token False N/A N/A username password N/A N/A N/A N/A token N/A N/A self _get_auth_token client client username username password password cache_token cache_token N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A e N/A N/A N/A N/A LOG warn Auth API server is not available, skipping authentication. N/A N/A N/A LOG exception e N/A client N/A N/A Exception N/A e N/A N/A N/A print Failed to authenticate with credentials provided in the config. N/A e N/A N/A client token token N/A N/A N/A os environ N/A ST2_AUTH_TOKEN token N/A client N/A run N/A N/A self argv N/A N/A N/A debug False N/A N/A --print-config argv N/A N/A argv N/A argv N/A action list N/A args N/A N/A N/A self parser parse_args args argv N/A print_config N/A args print_config N/A print_config N/A N/A N/A N/A self _print_config args args N/A 3 N/A config N/A N/A self _parse_config_file args args N/A N/A set_config config config N/A N/A N/A debug N/A getattr args debug False N/A debug N/A N/A N/A set_log_level_for_all_loggers level N/A logging DEBUG N/A N/A self client N/A N/A self get_client args args debug debug N/A N/A N/A args func args N/A 0 N/A N/A N/A OperationFailureException N/A e N/A N/A debug N/A N/A N/A N/A self _print_debug_info args args N/A 2 N/A N/A Exception N/A e N/A N/A exit_code N/A getattr e exit_code 1 N/A N/A print N/A ERROR: %s
 e N/A debug N/A N/A N/A N/A self _print_debug_info args args N/A exit_code N/A _print_config N/A N/A self args N/A N/A N/A config N/A N/A self _parse_config_file args args N/A N/A section options N/A N/A six iteritems config N/A N/A N/A print N/A [%s] section N/A N/A name value N/A N/A six iteritems options N/A N/A N/A print N/A %s = %s N/A name value N/A _print_debug_info N/A N/A self args N/A N/A N/A N/A N/A self _print_client_settings args args N/A N/A N/A traceback print_exc N/A _print_client_settings N/A N/A self args N/A N/A N/A client N/A self client N/A N/A client N/A N/A N/A config_file_path N/A N/A self _get_config_file_path args args N/A N/A print CLI settings: N/A N/A print ---------------- N/A N/A print N/A Config file path: %s config_file_path N/A N/A print Client settings: N/A N/A print ---------------- N/A N/A print N/A ST2_BASE_URL: %s N/A N/A client endpoints N/A base N/A N/A print N/A ST2_AUTH_URL: %s N/A N/A client endpoints N/A auth N/A N/A print N/A ST2_API_URL: %s N/A N/A client endpoints N/A api N/A N/A print N/A ST2_AUTH_TOKEN: %s N/A N/A N/A os environ get ST2_AUTH_TOKEN N/A N/A print N/A N/A print Proxy settings: N/A N/A print --------------- N/A N/A print N/A HTTP_PROXY: %s N/A N/A N/A os environ get HTTP_PROXY N/A N/A print N/A HTTPS_PROXY: %s N/A N/A N/A os environ get HTTPS_PROXY N/A N/A print N/A _get_auth_token N/A N/A self client username password cache_token N/A N/A N/A 
        Retrieve a valid auth token.

        If caching is enabled, we will first try to retrieve cached token from a
        file system. If cached token is expired or not available, we will try to
        authenticate using the provided credentials and retrieve a new auth
        token.

        :rtype: ``str``
         N/A cache_token N/A N/A token N/A N/A self _get_cached_auth_token client client username username password password N/A N/A token None N/A N/A token N/A N/A token_obj N/A N/A self _authenticate_and_retrieve_auth_token client client username username password password N/A N/A N/A self _cache_auth_token token_obj token_obj N/A token N/A token_obj token N/A token N/A _get_cached_auth_token N/A N/A self client username password N/A N/A N/A 
        Retrieve cached auth token from the file in the config directory.

        :rtype: ``str``
         N/A N/A N/A N/A N/A os path isdir ST2_CONFIG_DIRECTORY N/A N/A N/A N/A os makedirs ST2_CONFIG_DIRECTORY N/A cached_token_path N/A N/A self _get_cached_token_path_for_user username username N/A N/A N/A N/A N/A os path isfile cached_token_path N/A N/A None N/A N/A N/A N/A os access ST2_CONFIG_DIRECTORY N/A os R_OK N/A N/A message N/A Unable to retrieve cached token from "%s" (user %s doesn't have read access to the parent directory). Subsequent requests won't use a cached token meaning they may be slower. N/A cached_token_path N/A N/A os getlogin N/A N/A N/A LOG warn message N/A None N/A N/A N/A N/A os access cached_token_path N/A os R_OK N/A N/A message N/A Unable to retrieve cached token from "%s" (user %s doesn't have read access to this file). Subsequent requests won't use a cached token meaning they may be slower. N/A cached_token_path N/A N/A os getlogin N/A N/A N/A LOG warn message N/A None N/A N/A open cached_token_path fp N/A N/A data N/A N/A fp read N/A N/A N/A data N/A N/A json loads data N/A token N/A data N/A token N/A expire_timestamp N/A data N/A expire_timestamp N/A N/A N/A Exception N/A e N/A N/A msg N/A File "%s" with cached token is corrupted or invalid (%s). Please delete  this file N/A cached_token_path N/A str e N/A N/A ValueError msg N/A now N/A int N/A N/A time time N/A N/A N/A expire_timestamp TOKEN_EXPIRATION_GRACE_PERIOD_SECONDS now N/A N/A N/A N/A LOG debug N/A Cached token from file "%s" has expired cached_token_path N/A None N/A N/A N/A LOG debug N/A Using cached token from file "%s" cached_token_path N/A token N/A _cache_auth_token N/A N/A self token_obj N/A N/A N/A 
        Cache auth token in the config directory.

        :param token_obj: Token object.
        :type token_obj: ``object``
         N/A N/A N/A N/A N/A os path isdir ST2_CONFIG_DIRECTORY N/A N/A N/A N/A os makedirs ST2_CONFIG_DIRECTORY N/A username N/A token_obj user N/A cached_token_path N/A N/A self _get_cached_token_path_for_user username username N/A N/A N/A N/A os access ST2_CONFIG_DIRECTORY N/A os W_OK N/A N/A message N/A Unable to write token to "%s" (user %s doesn't have writeaccess to the parent directory). Subsequent requests won't use a cached token meaning they may be slower. N/A cached_token_path N/A N/A os getlogin N/A N/A N/A LOG warn message N/A None N/A N/A N/A N/A N/A os path isfile cached_token_path N/A N/A N/A os access cached_token_path N/A os W_OK N/A N/A message N/A Unable to write token to "%s" (user %s doesn't have writeaccess to this file). Subsequent requests won't use a cached token meaning they may be slower. N/A cached_token_path N/A N/A os getlogin N/A N/A N/A LOG warn message N/A None N/A token N/A token_obj token N/A expire_timestamp N/A parse_isotime N/A token_obj expiry N/A expire_timestamp N/A N/A calendar timegm N/A N/A expire_timestamp timetuple N/A data N/A N/A N/A data N/A token token N/A N/A data N/A expire_timestamp expire_timestamp N/A data N/A N/A json dumps data N/A fd N/A N/A os open cached_token_path N/A N/A os O_WRONLY N/A os O_CREAT 384 N/A N/A N/A os fdopen fd w fp N/A N/A N/A N/A fp write data N/A N/A N/A LOG debug N/A Token has been cached in "%s" cached_token_path N/A True N/A _authenticate_and_retrieve_auth_token N/A N/A self client username password N/A N/A N/A manager N/A N/A models ResourceManager N/A models Token N/A N/A client endpoints N/A auth cacert N/A client cacert debug N/A client debug N/A instance N/A N/A models Token N/A instance N/A N/A manager create instance auth N/A username password N/A instance N/A _get_cached_token_path_for_user N/A N/A self username N/A N/A N/A 
        Retrieve cached token path for the provided username.
         N/A file_name N/A token-%s username N/A result N/A N/A N/A os path abspath N/A N/A N/A os path join ST2_CONFIG_DIRECTORY file_name N/A result N/A _get_config_file_path N/A N/A self args N/A N/A N/A 
        Retrieve path to the CLI configuration file.

        :rtype: ``str``
         N/A path N/A N/A N/A os environ get ST2_CONFIG_FILE ST2_CONFIG_PATH N/A N/A args config_file N/A N/A path N/A args config_file N/A path N/A N/A N/A os path abspath path N/A N/A N/A path ST2_CONFIG_PATH N/A N/A N/A N/A os path isfile path N/A N/A N/A ValueError N/A Config "%s" not found path N/A path N/A _parse_config_file N/A N/A self args N/A N/A N/A config_file_path N/A N/A self _get_config_file_path args args N/A parser N/A CLIConfigParser config_file_path config_file_path validate_config_exists False N/A result N/A N/A parser parse N/A result N/A _get_config_file_options N/A N/A self args N/A N/A N/A 
        Parse the config and return kwargs which can be passed to the Client
        constructor.

        :rtype: ``dict``
         N/A rc_options N/A N/A self _parse_config_file args args N/A result N/A N/A N/A kwarg_name N/A section option N/A N/A six iteritems CONFIG_OPTION_TO_CLIENT_KWARGS_MAP N/A N/A N/A result N/A kwarg_name N/A N/A N/A N/A rc_options get section N/A get option None N/A result N/A N/A setup_logging N/A N/A argv N/A N/A N/A debug N/A --debug argv N/A root LOG N/A N/A N/A root setLevel N/A logging WARNING N/A handler N/A N/A logging StreamHandler N/A sys stderr N/A N/A N/A handler setLevel N/A logging WARNING N/A formatter N/A N/A logging Formatter %(asctime)s  %(levelname)s - %(message)s N/A N/A N/A handler setFormatter formatter N/A N/A debug N/A N/A N/A N/A handler addFilter N/A LogLevelFilter log_levels N/A N/A logging ERROR N/A N/A N/A root addHandler handler N/A main N/A N/A argv N/A N/A N/A sys argv N/A 1 N/A N/A N/A setup_logging argv N/A N/A N/A N/A Shell run argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main N/A N/A sys argv N/A 1