def main():
    module_args = oci_common_utils.get_common_arg_spec()
    module_args.update(dict(ipsc_id=dict(aliases=['id'], type='str', required=True)))
    module = AnsibleModule(argument_spec=module_args)
    if (not HAS_OCI_PY_SDK):
        module.fail_json(msg='oci python sdk required for this module.')
    resource_facts_helper = ResourceFactsHelper(module=module, resource_type='ip_sec_connection_device_status', service_client_class=VirtualNetworkClient, namespace='core')
    result = []
    if resource_facts_helper.is_get():
        result = resource_facts_helper.get()
    elif resource_facts_helper.is_list():
        result = resource_facts_helper.list()
    else:
        resource_facts_helper.fail()
    module.exit_json(ip_sec_connection_device_status=result)
def main():
    module_args = oci_common_utils.get_common_arg_spec()
    module_args.update(dict(ipsc_id=dict(aliases=['id'], type='str', required=True)))
    module = AnsibleModule(argument_spec=module_args)
    if (not HAS_OCI_PY_SDK):
        module.fail_json(msg='oci python sdk required for this module.')
    resource_facts_helper = ResourceFactsHelper(module=module, resource_type='ip_sec_connection_device_status', service_client_class=VirtualNetworkClient, namespace='core')
    result = []
    if resource_facts_helper.is_get():
        result = resource_facts_helper.get()
    elif resource_facts_helper.is_list():
        result = resource_facts_helper.list()
    else:
        resource_facts_helper.fail()
    module.exit_json(ip_sec_connection_device_status=result)