def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), description=dict(type='str',), intelligent_autoscale=dict(type='bool',), intelligent_scalein_margin=dict(type='int',), intelligent_scaleout_margin=dict(type='int',), max_scalein_adjustment_step=dict(type='int',), max_scaleout_adjustment_step=dict(type='int',), max_size=dict(type='int',), min_size=dict(type='int',), name=dict(type='str', required=True), scalein_alertconfig_refs=dict(type='list',), scalein_cooldown=dict(type='int',), scaleout_alertconfig_refs=dict(type='list',), scaleout_cooldown=dict(type='int',), tenant_ref=dict(type='str',), url=dict(type='str',), use_predicted_load=dict(type='bool',), uuid=dict(type='str',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'serverautoscalepolicy', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), cloud_config_cksum=dict(type='str', ), cloud_ref=dict(type='str', ), created_by=dict(type='str', ), deployment_policy_ref=dict(type='str', ), description=dict(type='str', ), fail_action=dict(type='dict', ), implicit_priority_labels=dict(type='bool', ), members=dict(type='list', ), min_servers=dict(type='int', ), name=dict(type='str', required=True), priority_labels_ref=dict(type='str', ), service_metadata=dict(type='str', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'poolgroup', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), backup_config_ref=dict(type='str', ), enabled=dict(type='bool', ), end_date_time=dict(type='str', ), frequency=dict(type='int', ), frequency_unit=dict(type='str', ), name=dict(type='str', required=True), run_mode=dict(type='str', ), run_script_ref=dict(type='str', ), scheduler_action=dict(type='str', ), start_date_time=dict(type='str', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json( msg=('Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'scheduler', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), app_cookie_persistence_profile=dict(type='dict', ), description=dict(type='str', ), hdr_persistence_profile=dict(type='dict', ), http_cookie_persistence_profile=dict(type='dict', ), ip_persistence_profile=dict(type='dict', ), is_federated=dict(type='bool', ), name=dict(type='str', required=True), persistence_type=dict(type='str', required=True), server_hm_down_recovery=dict(type='str', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'applicationpersistenceprofile', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), algorithm=dict(type='str', ), cname=dict(type='dict', ), delegated=dict(type='bool', ), description=dict(type='str', ), dns_vs_uuid=dict(type='str', ), fqdn=dict(type='str', ), ip6_address=dict(type='list', ), ip_address=dict(type='list', ), metadata=dict(type='str', ), mx_records=dict(type='list', ), name=dict(type='str', ), ns=dict(type='list', ), num_records_in_response=dict(type='int', ), service_locators=dict(type='list', ), tenant_ref=dict(type='str', ), ttl=dict(type='int', ), txt_records=dict(type='list', ), type=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), wildcard_match=dict(type='bool', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'dynamicdnsrecord', set())
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), action_script_output=dict(type='str', ), alert_config_ref=dict(type='str', required=True), app_events=dict(type='list', ), conn_events=dict(type='list', ), description=dict(type='str', ), event_pages=dict(type='list', ), events=dict(type='list', ), last_throttle_timestamp=dict(type='float', ), level=dict(type='str', required=True), metric_info=dict(type='list', ), name=dict(type='str', required=True), obj_key=dict(type='str', required=True), obj_name=dict(type='str', ), obj_uuid=dict(type='str', required=True), reason=dict(type='str', required=True), related_uuids=dict(type='list', ), summary=dict(type='str', required=True), tenant_ref=dict(type='str', ), threshold=dict(type='int', ), throttle_count=dict(type='int', ), timestamp=dict(type='float', required=True), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json( msg=('Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'alert', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), application_persistence_profile_ref=dict(type='str',), controller_health_status_enabled=dict(type='bool',), created_by=dict(type='str',), description=dict(type='str',), domain_names=dict(type='list',), down_response=dict(type='dict',), enabled=dict(type='bool',), groups=dict(type='list',), health_monitor_refs=dict(type='list',), health_monitor_scope=dict(type='str',), is_federated=dict(type='bool',), name=dict(type='str', required=True), num_dns_ip=dict(type='int',), site_persistence_enabled=dict(type='bool',), tenant_ref=dict(type='str',), ttl=dict(type='int',), url=dict(type='str',), use_edns_client_subnet=dict(type='bool',), uuid=dict(type='str',), wildcard_match=dict(type='bool',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'gslbservice', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), created_by=dict(type='str', ), datascript=dict(type='list', ), description=dict(type='str', ), ip_reputation_db_ref=dict(type='str', ), ipgroup_refs=dict(type='list', ), labels=dict(type='list', ), markers=dict(type='list', ), name=dict(type='str', required=True), pool_group_refs=dict(type='list', ), pool_refs=dict(type='list', ), protocol_parser_refs=dict(type='list', ), rate_limiters=dict(type='list', ), string_group_refs=dict(type='list', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'vsdatascriptset', set())
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), allow_204=dict(type='bool', ), buffer_size=dict(type='int', ), buffer_size_exceed_action=dict(type='str', ), cloud_ref=dict(type='str', ), description=dict(type='str', ), enable_preview=dict(type='bool', ), fail_action=dict(type='str', ), name=dict(type='str', required=True), pool_group_ref=dict(type='str', required=True), preview_size=dict(type='int', ), response_timeout=dict(type='int', ), service_uri=dict(type='str', required=True), slow_response_warning_threshold=dict(type='int', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), vendor=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'icapprofile', set())
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), crs_groups=dict(type='list',), description=dict(type='str',), mode=dict(type='str',), name=dict(type='str', required=True), paranoia_level=dict(type='str',), post_crs_groups=dict(type='list',), pre_crs_groups=dict(type='list',), tenant_ref=dict(type='str',), url=dict(type='str',), uuid=dict(type='str',), waf_profile_ref=dict(type='str',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'wafpolicy', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), action_group_ref=dict(type='str', ), alert_rule=dict(type='dict', required=True), autoscale_alert=dict(type='bool', ), category=dict(type='str', required=True), description=dict(type='str', ), enabled=dict(type='bool', ), expiry_time=dict(type='int', ), name=dict(type='str', required=True), obj_uuid=dict(type='str', ), object_type=dict(type='str', ), recommendation=dict(type='str', ), rolling_window=dict(type='int', ), source=dict(type='str', required=True), summary=dict(type='str', ), tenant_ref=dict(type='str', ), threshold=dict(type='int', ), throttle=dict(type='int', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'alertconfig', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), created_by=dict(type='str',), description=dict(type='str',), is_internal_policy=dict(type='bool',), l4_connection_policy=dict(type='dict',), name=dict(type='str', required=True), tenant_ref=dict(type='str',), url=dict(type='str',), uuid=dict(type='str',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'l4policyset', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), account_lock_timeout=dict(type='int',), credentials_timeout_threshold=dict(type='int',), max_concurrent_sessions=dict(type='int',), max_login_failure_count=dict(type='int',), max_password_history_count=dict(type='int',), name=dict(type='str', required=True), url=dict(type='str',), uuid=dict(type='str',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'useraccountprofile', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), description=dict(type='str', ), dns_monitor=dict(type='dict', ), external_monitor=dict(type='dict', ), failed_checks=dict(type='int', ), http_monitor=dict(type='dict', ), https_monitor=dict(type='dict', ), monitor_port=dict(type='int', ), name=dict(type='str', required=True), receive_timeout=dict(type='int', ), send_interval=dict(type='int', ), successful_checks=dict(type='int', ), tcp_monitor=dict(type='dict', ), tenant_ref=dict(type='str', ), type=dict(type='str', required=True), udp_monitor=dict(type='dict', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json( msg=('Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'gslbhealthmonitor', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), allow_mode_delegation=dict(type='bool', ), created_by=dict(type='str', ), crs_groups=dict(type='list', ), description=dict(type='str', ), enable_app_learning=dict(type='bool', ), failure_mode=dict(type='str', ), learning=dict(type='dict', ), mode=dict(type='str', required=True), name=dict(type='str', required=True), paranoia_level=dict(type='str', ), positive_security_model=dict(type='dict', ), post_crs_groups=dict(type='list', ), pre_crs_groups=dict(type='list', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), waf_crs_ref=dict(type='str', ), waf_profile_ref=dict(type='str', required=True), whitelist=dict(type='dict', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json( msg=('Avi python API SDK (avisdk>=17.1) is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'wafpolicy', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), cloud_info_values=dict(type='list', ), controller_info=dict(type='dict', ), controller_patch_name=dict(type='str', ), controller_patch_uuid=dict(type='str', ), migrations=dict(type='dict', ), name=dict(type='str', required=True), se_info=dict(type='dict', ), se_patch_name=dict(type='str', ), se_patch_uuid=dict(type='str', ), status=dict(type='str', ), tenant_ref=dict(type='str', ), type=dict(type='str', ), uber_bundle=dict(type='bool', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'image', set())
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), azure_serviceprincipal=dict(type='dict',), azure_userpass=dict(type='dict',), gcp_credentials=dict(type='dict',), name=dict(type='str', required=True), nsxt_credentials=dict(type='dict',), obj_password=dict(type='str',), oci_credentials=dict(type='dict',), private_key=dict(type='str', no_log=True,), public_key=dict(type='str',), tenant_ref=dict(type='str',), tencent_credentials=dict(type='dict',), url=dict(type='str',), uuid=dict(type='str',), vcenter_credentials=dict(type='dict',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'cloudconnectoruser', {'password', 'private_key'})
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), available_applications=dict(type='list',), last_check_for_updates_error=dict(type='str',), last_failed_check_for_updates=dict(type='dict',), last_successful_check_for_updates=dict(type='dict',), name=dict(type='str',), ruleset_version=dict(type='str',), service_status=dict(type='dict',), signatures=dict(type='list',), tenant_ref=dict(type='str',), url=dict(type='str',), uuid=dict(type='str',), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule( argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'wafapplicationsignatureprovider', set())
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), ca_certs=dict(type='list', ), created_by=dict(type='str', ), crl_check=dict(type='bool', ), crls=dict(type='list', ), ignore_peer_chain=dict(type='bool', ), is_federated=dict(type='bool', ), name=dict(type='str', required=True), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), validate_only_leaf_crl=dict(type='bool', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'pkiprofile', set([]))
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), avi_api_update_method=dict(default='put', choices=['put', 'patch']), avi_api_patch_op=dict(choices=['add', 'replace', 'delete']), bgp_profile=dict(type='dict', ), cloud_ref=dict(type='str', ), debugvrfcontext=dict(type='dict', ), description=dict(type='str', ), gateway_mon=dict(type='list', ), internal_gateway_monitor=dict(type='dict', ), name=dict(type='str', required=True), static_routes=dict(type='list', ), system_default=dict(type='bool', ), tenant_ref=dict(type='str', ), url=dict(type='str', ), uuid=dict(type='str', ), ) argument_specs.update(avi_common_argument_spec()) module = AnsibleModule(argument_spec=argument_specs, supports_check_mode=True) if not HAS_AVI: return module.fail_json(msg=( 'Avi python API SDK (avisdk>=17.1) or requests is not installed. ' 'For more details visit https://github.com/avinetworks/sdk.')) return avi_ansible_api(module, 'vrfcontext', set([]))