Пример #1
0
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_microsoft_o365_email_add_on_for_splunk_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_jira_issues_collector_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_thehive_cortex_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #4
0
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_proofpoint_vap_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #5
0
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_dmarc_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
        validator=validator.String(
            min_len=1, 
            max_len=200, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            min_len=1, 
            max_len=8192, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_puppet_alert_actions_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #7
0
                    )),
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_github_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
        required=False,
        encrypted=False,
        default=None,
        validator=validator.String(
            min_len=1,
            max_len=500,
        )
    ),
    field.RestField(
        'verify_cert',
        required=False,
        encrypted=False,
        default=True,
        validator=None
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_opnsense_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #9
0
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        max_len=200,
                        min_len=1,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        max_len=8192,
                        min_len=1,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_zscaler_cim_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #10
0
        validator=validator.String(
            max_len=200, 
            min_len=1, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            max_len=8192, 
            min_len=1, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'splunk_ta_paloalto_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
        validator=validator.String(
            max_len=200, 
            min_len=1, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            max_len=8192, 
            min_len=1, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_azure_devops_release_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
        'instance_url',
        required=False,
        encrypted=False,
        default=None,
        validator=None
    ), 
    field.RestField(
        'auth_type',
        required=False,
        encrypted=False,
        default=None,
        validator=None
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'splunk_ta_uccexample_account',
    model,
    config_name='account'
)


if __name__ == '__main__':
    logging.getLogger().addHandler(logging.NullHandler())
    admin_external.handle(
        endpoint,
        handler=AdminExternalHandler,
    )
Пример #13
0
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=AccountValidator()),
    field.RestField('jira_url',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_jira_add_on_for_splunk_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_chainkit_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_bigfix_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #16
0
                    required=False,
                    encrypted=False,
                    default=None,
                    validator=None),
    field.RestField('client_use_cert',
                    required=False,
                    encrypted=False,
                    default=None,
                    validator=None),
    field.RestField('client_cert_full_path',
                    required=False,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        max_len=8192,
                        min_len=0,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'misp42splunk_instances',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #17
0
        'refresh_token',
        required=False,
        encrypted=True,
        default=None,
        validator=None
    ), 
    field.RestField(
        'instance_url',
        required=False,
        encrypted=False,
        default=None,
        validator=None
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_lansweeper_add_on_for_splunk_account',
    model,
    config_name='account'
)


if __name__ == '__main__':
    logging.getLogger().addHandler(logging.NullHandler())
    admin_external.handle(
        endpoint,
        handler=AdminExternalHandler,
    )
Пример #18
0
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'rapid7_insightconnect_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
        validator=validator.String(
            min_len=1, 
            max_len=200, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            min_len=1, 
            max_len=8192, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_dell_emc_networker_add_on_for_splunk_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
                    encrypted=False,
                    default=600,
                    validator=validator.Number(
                        max_val=31536000,
                        min_val=0,
                    )),
    field.RestField('sourcetype',
                    required=False,
                    encrypted=False,
                    default='aws:cloudwatchlogs',
                    validator=None),
    field.RestField('index',
                    required=True,
                    encrypted=False,
                    default='default',
                    validator=None),
    field.RestField('disabled', required=False, validator=None)
]
model = RestModel(fields, name=None)

endpoint = SingleModel('aws_cloudwatch_logs_tasks',
                       model,
                       config_name='aws_cloudwatch_logs')

if __name__ == '__main__':
    logging.getLogger().addHandler(logging.NullHandler())
    admin_external.handle(
        endpoint,
        handler=AdminExternalHandler,
    )
        validator=validator.String(
            max_len=200, 
            min_len=1, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            max_len=8192, 
            min_len=1, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_synckvstore_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
        validator=validator.String(
            min_len=1, 
            max_len=200, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            min_len=1, 
            max_len=8192, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_mts_federal_reserve_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #23
0
                    validator=None),
    field.RestField('apis',
                    required=False,
                    encrypted=False,
                    default=None,
                    validator=None),
    field.RestField('sourcetype',
                    required=False,
                    encrypted=False,
                    default='aws:description',
                    validator=None),
    field.RestField('index',
                    required=True,
                    encrypted=False,
                    default='default',
                    validator=None),
    field.RestField('disabled', required=False, validator=None)
]
model = RestModel(fields, name=None)

endpoint = SingleModel('aws_description_tasks',
                       model,
                       config_name='aws_description')

if __name__ == '__main__':
    logging.getLogger().addHandler(logging.NullHandler())
    admin_external.handle(
        endpoint,
        handler=AdminExternalHandler,
    )
Пример #24
0
        validator=validator.String(
            max_len=200, 
            min_len=1, 
        )
    ), 
    field.RestField(
        'password',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            max_len=8192, 
            min_len=1, 
        )
    )
]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_jpython_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_cb_defense_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #26
0
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        max_len=200,
                        min_len=1,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        max_len=8192,
                        min_len=1,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_apppulse_active_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
fields = [
    field.RestField('username',
                    required=True,
                    encrypted=False,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=200,
                    )),
    field.RestField('password',
                    required=True,
                    encrypted=True,
                    default=None,
                    validator=validator.String(
                        min_len=1,
                        max_len=8192,
                    ))
]
model = RestModel(fields, name=None)

endpoint = SingleModel(
    'ta_defender_atp_hunting_account',
    model,
)

if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )
Пример #28
0
                    encrypted=False,
                    default='',
                    validator=None),
    field.RestField('format',
                    required=False,
                    encrypted=False,
                    default='',
                    validator=None),
    field.RestField('sourcetype',
                    required=False,
                    encrypted=False,
                    default='aws:kinesis',
                    validator=None),
    field.RestField('index',
                    required=True,
                    encrypted=False,
                    default='default',
                    validator=None),
    field.RestField('disabled', required=False, validator=None)
]
model = RestModel(fields, name=None)

endpoint = SingleModel('aws_kinesis_tasks', model, config_name='aws_kinesis')

if __name__ == '__main__':
    logging.getLogger().addHandler(logging.NullHandler())
    admin_external.handle(
        endpoint,
        handler=AdminExternalHandler,
    )
    field.RestField('interval',
                    required=True,
                    encrypted=False,
                    default=30,
                    validator=validator.Number(
                        max_val=31536000,
                        min_val=0,
                    )),
    field.RestField('sourcetype',
                    required=True,
                    encrypted=False,
                    default='aws:sqs',
                    validator=None),
    field.RestField('index',
                    required=True,
                    encrypted=False,
                    default='default',
                    validator=None),
    field.RestField('disabled', required=False, validator=None)
]
model = RestModel(fields, name=None)

endpoint = SingleModel('aws_sqs_tasks', model, config_name='splunk_ta_aws_sqs')

if __name__ == '__main__':
    logging.getLogger().addHandler(logging.NullHandler())
    admin_external.handle(
        endpoint,
        handler=AdminExternalHandler,
    )
Пример #30
0
            min_len=1,
            max_len=200,
        )
    ),
    field.RestField(
        'api_key',
        required=True,
        encrypted=True,
        default=None,
        validator=validator.String(
            min_len=1,
            max_len=8192,
        )
    )

]
model = RestModel(fields, name=None)


endpoint = SingleModel(
    'ta_pihole_dns_account',
    model,
)


if __name__ == '__main__':
    admin_external.handle(
        endpoint,
        handler=ConfigMigrationHandler,
    )