def METHOD_NAME():
    if request.method == 'GET':
        config_profile = request.args.get('profile', default='DEFAULT')
        compartment_id = request.args.get('compartment_id')
        region = request.args.get('region')
        stack_id = request.args.get('stack_id', '')
        config = {'region': region}
        oci_resourcemanager = OCIResourceManagers(config=config, profile=config_profile, compartment_id=compartment_id)
        import_json = oci_resourcemanager.getState(stack_id)
        logJson(import_json)
        # Import State
        response_json = {}
        parser = OkitTfStateFileParser()
        response_json = parser.parse(import_json)
        logJson(response_json)
        return jsonToFormattedString(response_json)
    else:
        return '404'